30 #include "../core/ContextItem.h" 
   31 #include "../../geometry/Envelope.h" 
   32 #include "../../color/RGBAColor.h" 
   33 #include "../../maptools/Canvas.h" 
   34 #include "../core/property/Property.h" 
   35 #include "../core/pattern/mvc/ItemModelObservable.h" 
   36 #include "../core/property/Properties.h" 
   37 #include "../core/enum/Enums.h" 
   38 #include "../core/pattern/singleton/Context.h" 
   42   m_imgType(te::map::
JPEG)
 
   63   m_fileName = fileName;
 
   78   pro_fileName.
setName(
"fileName");
 
   81   m_properties->addProperty(pro_fileName);
 
  102   return m_fileExtension;
 
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from ItemModelObservable. 
ImageType
This enum specifies the possible input and output image formats supported by the canvas API...
Variant getValue()
Returns stored value. 
virtual EnumDataType * getEnumDataType()
Returns data type enumeration. 
virtual te::map::ImageType getFileType()
Returns the type of the image. 
virtual void setFileName(std::string fileName)
Change file name. 
bool isNull()
Returns true if no value has been set, false otherwise. 
bool m_border
true if should be drawn border, false otherwise 
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
EnumType * m_type
type of the MVC component 
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable. 
virtual std::string getFileExtension()
Returns the file extension. 
static Enums & getInstance()
It returns a reference to the singleton instance. 
An Envelope defines a 2D rectangular region. 
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
te::gm::Envelope m_box
bounding rectangle 
virtual te::layout::Properties * getProperties() const 
Reimplemented from ItemModelObservable. 
te::color::RGBAColor m_backgroundColor
background color 
Class that represents a "Model" part of Image MVC component. Its coordinate system is the same of sce...
Properties * m_properties
properties 
virtual Properties * getProperties() const 
Reimplemented from Observable. 
void setValue(ValueType value, EnumType *type)
Stores a copy of value. 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
std::string toString()
Returns the value of string type. (The setValue method received a string) 
virtual std::string getFileName()
Change file name. 
void setName(std::string name)
Sets the name of this property. 
virtual void setMenu(bool menu)
Sets true if property will be used in a menu, false otherwise. 
te::color::RGBAColor m_borderColor
border color 
virtual void setHasWindows(bool windows)
virtual EnumType * getDataTypeImage() const 
Returns value that represents type image (string) belonging to enumeration. 
virtual bool contains(Property property)
Checks if the property is contained within the set of properties. 
A property acts like a attribute member of a object and stores the state of this attribute. A set of properties stores the state of an object. Any data type, not included in the convertValue method in the class te::layout::Variant, it will be by default "std::string" value. 
virtual ~ImageModel()
Destructor.