30 #include "../../item/NorthModel.h" 
   35   m_nameClass = std::string(this->metaObject()->className());
 
   58   drawBackground(painter);
 
   60   drawRectangle(painter);
 
   65   if (option->state & QStyle::State_Selected)
 
   67     drawSelection(painter);
 
   81   QPainterPath rect_path;
 
   82   rect_path.addRect(boundingRect());
 
   91   cbrush.setRed(clrBack.
getRed());
 
   93   cbrush.setBlue(clrBack.
getBlue());
 
   96   painter->setBrush(cbrush);
 
   97   painter->drawPath(rect_path);
 
Abstract class to represent an observable. "Model" part of MVC component. 
 
int getRed() const 
It returns the red component color value (a value from 0 to 255). 
 
virtual ~NorthItem()
Destructor. 
 
virtual void drawRectangle(QPainter *painter)
 
int getBlue() const 
It returns the blue component color value (a value from 0 to 255). 
 
int getGreen() const 
It returns the green component color value (a value from 0 to 255). 
 
Abstract class to represent a controller. "Controller" part of MVC component. All classes representin...
 
Abstract class that represents a graphic item. This object is of type QGraphicsObject. 
 
int getAlpha() const 
It returns the alpha component color value (a value from 0 to 255). 
 
std::string m_nameClass
Class name. 
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Reimplemented from QGraphicsItem. 
 
NorthItem(ItemController *controller, Observable *o)
Constructor. 
 
Class that represents a "Model" part of Rectangle MVC component. Its coordinate system is the same of...
 
virtual void paint(QPainter *painter, const QStyleOptionGraphicsItem *option, QWidget *widget=0)
Reimplemented from QGraphicsItem. 
 
virtual te::color::RGBAColor getBackgroundColor()
Returns the background color of the MVC component. 
 
A helper class for 32-bit RGBA (Red-Green-Blue-Alpha channel) color. 
 
Class that represents a graphic Rectangle. Its coordinate system is the same of scene (millimeters)...