28 #ifndef __TERRALIB_LAYOUT_INTERNAL_ITEM_OBSERVER_H
29 #define __TERRALIB_LAYOUT_INTERNAL_ITEM_OBSERVER_H
33 #include "../../../../geometry/Coord2D.h"
34 #include "../../../../color/RGBAColor.h"
35 #include "../../Config.h"
72 virtual void updateObserver(
ContextItem context) = 0;
79 virtual std::string getNameClass();
92 virtual void redraw(
bool bRefresh =
true);
99 virtual void setPrintable(
bool print);
106 virtual bool isPrintable();
113 virtual void setCanChangeGraphicOrder(
bool canChange);
120 virtual bool isCanChangeGraphicOrder();
141 virtual void refresh(
bool pos =
true);
148 virtual bool isInvertedMatrix();
167 virtual void changeZoomFactor(
double currentZoomFactor);
172 virtual void recalculateBoundingRect();
181 virtual void setZValueItem(
int z);
189 virtual int getZValueItem() = 0;
195 virtual void applyRotation() = 0;
Abstract class to represent an observable. "Model" part of MVC component.
Class responsible for maintaining the drawing context of a MVC component. It is always used by the "M...
te::layout::Observable * m_model
"Model" part of MVC component.
#define TELAYOUTEXPORT
You can use this macro in order to export/import classes and functions from this module.
bool m_printable
State of the graphic component to be or not printable.
Abstract class to represent an observer. "View" part of MVC component.
te::layout::ItemController * m_controller
"Controller" part of MVC component.
bool m_invertedMatrix
true if inverted, false otherwise the matrix scene
Abstract class to represent an observer. "View" part of MVC component. All classes representing the g...
An utility struct for representing 2D coordinates.
Abstract class to represent a controller. "Controller" part of MVC component. All classes representin...
Abstract class to represent an observer. "View" part of MVC component.
bool m_canChangeGraphicOrder
Define if item can send to back or bring to front.
std::string m_nameClass
Class name.
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color.