Abstract class for build graphics MVC components. More...
#include <AbstractBuildGraphicsItem.h>
Public Member Functions | |
AbstractBuildGraphicsItem () | |
Constructor. More... | |
virtual void | clear () |
Clear all configuration for create or build a graphic object. More... | |
virtual | ~AbstractBuildGraphicsItem () |
Destructor. More... | |
Protected Member Functions | |
virtual te::gm::Coord2D | findCoordinate (te::layout::Properties *props) |
Search for property of a graphic object that represent the x,y coordinate. More... | |
virtual int | findZValue (te::layout::Properties *props) |
Search for property of a graphic object that represent Z Value. More... | |
virtual std::string | nameItem (te::layout::EnumType *type)=0 |
Creates the name of the new graphic object. Adds the number that corresponds to how many objects of this type have already been created. More... | |
Protected Attributes | |
te::gm::Coord2D | m_coord |
Coordinate of a graphic object. More... | |
int | m_id |
Id of a graphic object. More... | |
te::layout::Properties * | m_props |
Properties of a graphic object. More... | |
SharedProperties * | m_sharedProps |
Default properties of all graphics objects. More... | |
int | m_zValue |
Z Value of a graphic object. More... | |
Abstract class for build graphics MVC components.
Definition at line 55 of file AbstractBuildGraphicsItem.h.
te::layout::AbstractBuildGraphicsItem::AbstractBuildGraphicsItem | ( | ) |
|
virtual |
Destructor.
Definition at line 43 of file AbstractBuildGraphicsItem.cpp.
|
virtual |
Clear all configuration for create or build a graphic object.
Definition at line 91 of file AbstractBuildGraphicsItem.cpp.
|
protectedvirtual |
Search for property of a graphic object that represent the x,y coordinate.
props | properties |
Definition at line 52 of file AbstractBuildGraphicsItem.cpp.
References te::layout::Properties::contains(), te::layout::Property::getValue(), te::layout::Property::isNull(), and te::layout::Variant::toDouble().
|
protectedvirtual |
Search for property of a graphic object that represent Z Value.
props | properties |
Definition at line 77 of file AbstractBuildGraphicsItem.cpp.
References te::layout::Properties::contains(), te::layout::Property::getValue(), te::layout::Property::isNull(), and te::layout::Variant::toInt().
|
protectedpure virtual |
Creates the name of the new graphic object. Adds the number that corresponds to how many objects of this type have already been created.
name | name of the class type of the graphic object |
type | type of the object |
Implemented in te::layout::BuildGraphicsItem.
|
protected |
Coordinate of a graphic object.
Definition at line 108 of file AbstractBuildGraphicsItem.h.
|
protected |
Id of a graphic object.
Definition at line 110 of file AbstractBuildGraphicsItem.h.
|
protected |
Properties of a graphic object.
Definition at line 107 of file AbstractBuildGraphicsItem.h.
|
protected |
Default properties of all graphics objects.
Definition at line 106 of file AbstractBuildGraphicsItem.h.
Referenced by AbstractBuildGraphicsItem().
|
protected |
Z Value of a graphic object.
Definition at line 109 of file AbstractBuildGraphicsItem.h.