All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
te::layout::AbstractBuildGraphicsItem Class Referenceabstract

Abstract class for build graphics MVC components. More...

#include <AbstractBuildGraphicsItem.h>

Inheritance diagram for te::layout::AbstractBuildGraphicsItem:
te::layout::BuildGraphicsItem

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::Propertiesm_props
 Properties of a graphic object. More...
 
SharedPropertiesm_sharedProps
 Default properties of all graphics objects. More...
 
int m_zValue
 Z Value of a graphic object. More...
 

Detailed Description

Abstract class for build graphics MVC components.

Definition at line 55 of file AbstractBuildGraphicsItem.h.

Constructor & Destructor Documentation

te::layout::AbstractBuildGraphicsItem::AbstractBuildGraphicsItem ( )

Constructor.

Definition at line 34 of file AbstractBuildGraphicsItem.cpp.

References m_sharedProps.

te::layout::AbstractBuildGraphicsItem::~AbstractBuildGraphicsItem ( )
virtual

Destructor.

Definition at line 43 of file AbstractBuildGraphicsItem.cpp.

Member Function Documentation

void te::layout::AbstractBuildGraphicsItem::clear ( )
virtual

Clear all configuration for create or build a graphic object.

Definition at line 91 of file AbstractBuildGraphicsItem.cpp.

te::gm::Coord2D te::layout::AbstractBuildGraphicsItem::findCoordinate ( te::layout::Properties props)
protectedvirtual

Search for property of a graphic object that represent the x,y coordinate.

Parameters
propsproperties
Returns
coordinate

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().

int te::layout::AbstractBuildGraphicsItem::findZValue ( te::layout::Properties props)
protectedvirtual

Search for property of a graphic object that represent Z Value.

Parameters
propsproperties
Returns
z value

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().

virtual std::string te::layout::AbstractBuildGraphicsItem::nameItem ( te::layout::EnumType type)
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.

Parameters
namename of the class type of the graphic object
typetype of the object
Returns
name

Implemented in te::layout::BuildGraphicsItem.

Member Data Documentation

te::gm::Coord2D te::layout::AbstractBuildGraphicsItem::m_coord
protected

Coordinate of a graphic object.

Definition at line 108 of file AbstractBuildGraphicsItem.h.

int te::layout::AbstractBuildGraphicsItem::m_id
protected

Id of a graphic object.

Definition at line 110 of file AbstractBuildGraphicsItem.h.

te::layout::Properties* te::layout::AbstractBuildGraphicsItem::m_props
protected

Properties of a graphic object.

Definition at line 107 of file AbstractBuildGraphicsItem.h.

SharedProperties* te::layout::AbstractBuildGraphicsItem::m_sharedProps
protected

Default properties of all graphics objects.

Definition at line 106 of file AbstractBuildGraphicsItem.h.

Referenced by AbstractBuildGraphicsItem().

int te::layout::AbstractBuildGraphicsItem::m_zValue
protected

Z Value of a graphic object.

Definition at line 109 of file AbstractBuildGraphicsItem.h.


The documentation for this class was generated from the following files: