30 #include "../core/ContextItem.h" 
   31 #include "../../geometry/Envelope.h" 
   32 #include "../../color/RGBAColor.h" 
   33 #include "../../maptools/Canvas.h" 
   34 #include "../core/enum/Enums.h" 
   35 #include "../../geometry/Point.h" 
   36 #include "../core/pattern/singleton/Context.h" 
   37 #include "../core/Utils.h" 
   38 #include "../core/pattern/mvc/ItemObserver.h" 
   39 #include "../core/property/Property.h" 
   40 #include "../core/property/Properties.h" 
   58     std::vector<te::gm::Point*>::iterator ito;
 
   60     for(ito = m_coords.begin() ; ito != m_coords.end() ; ++ito)
 
   81   int sizeMCoords = m_coords.size();
 
   85   for(
int i = 0; i < sizeMCoords ; ++i)
 
  108   double x = m_box.getLowerLeftX();
 
  109   double y = m_box.getLowerLeftY();
 
  137   pro_linecolor.
setName(
"line_color");
 
  138   pro_linecolor.
setLabel(
"line color");
 
  141   m_properties->addProperty(pro_linecolor);
 
  153   if(!pro_linecolor.
isNull())
 
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
 
Variant getValue()
Returns stored value. 
 
virtual EnumDataType * getEnumDataType()
Returns data type enumeration. 
 
virtual void setCoords(std::vector< te::gm::Point * > coords)
 
bool isNull()
Returns true if no value has been set, false otherwise. 
 
bool m_border
true if should be drawn border, false otherwise 
 
const double & getUpperRightX() const 
It returns a constant refernce to the x coordinate of the upper right corner. 
 
const double & getLowerLeftY() const 
It returns a constant refernce to the y coordinate of the lower left corner. 
 
The Properties class represents a persistent set of properties. The Properties can be saved to a file...
 
An utility struct for representing 2D coordinates. 
 
const double & getUpperRightY() const 
It returns a constant refernce to the x coordinate of the upper right corner. 
 
EnumType * m_type
type of the MVC component 
 
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable. 
 
void setPos(te::gm::Coord2D pos)
 
A LinearRing is a LineString that is both closed and simple. 
 
static Enums & getInstance()
It returns a reference to the singleton instance. 
 
A point with x and y coordinate values. 
 
An Envelope defines a 2D rectangular region. 
 
virtual te::color::RGBAColor getLineColor()
 
Class to represent a data type enumeration. Ex.: int, double, bool, te::color::RGBAColor (color)...
 
te::gm::Envelope m_box
bounding rectangle 
 
void setChangePos(bool change)
 
virtual EnumType * getDataTypeColor() const 
Returns value that represents type te::color::RGBAColor** (color) belonging to enumeration. 
 
virtual void updateProperties(te::layout::Properties *properties)
Reimplemented from Observable. 
 
virtual Properties * getProperties() const 
Reimplemented from Observable. 
 
void setValue(ValueType value, EnumType *type)
Stores a copy of value. 
 
const double & getLowerLeftX() const 
It returns a constant reference to the x coordinate of the lower left corner. 
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
void setName(std::string name)
Sets the name of this property. 
 
void setPointN(std::size_t i, const Point &p)
It sets the value of the specified point to this new one. 
 
virtual void setMenu(bool menu)
Sets true if property will be used in a menu, false otherwise. 
 
te::color::RGBAColor toColor()
Returns the value of te::color::RGBAColor type. (The setValue method received a te::color::RGBAColor)...
 
te::color::RGBAColor m_borderColor
border color 
 
virtual std::vector< te::gm::Point * > getCoords()
 
virtual te::layout::Properties * getProperties() const 
Reimplemented from Observable. 
 
virtual void setLabel(std::string label)
Sets the label of this property. 
 
const Envelope * getMBR() const 
It returns the minimum bounding rectangle for the geometry in an internal representation. 
 
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. 
 
te::color::RGBAColor m_lineColor
line color