Public Member Functions | |
virtual bool | Load (xmlNodePtr) |
virtual bool | Build (list< Object * > &Children) throw (invalid_argument) |
virtual void | Transform2D (Matrix2D &m, double x, double y) |
virtual bool | BuildContextualMenu (GtkUIManager *UIManager, Object *object, double x, double y) |
virtual bool | OnSignal (SignalId Signal, Object *Child) |
virtual double | GetYAlign () |
Definition at line 36 of file mesomery.h.
virtual bool gcp::Mesomery::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized object. |
Example:
std::string str = (const char*)node->name; Object* pObject = Object::CreateObject(str, this); if (pObject) { if (!pObject->Load(node)) delete Object; } else cerr << "Warning: unknown object: " << str << endl;
Reimplemented from gcu::Object.
virtual bool gcp::Mesomery::Build | ( | list< Object * > & | Children | ) | throw (invalid_argument) [virtual] |
Children,: | the list of objects used as children to build the object |
Reimplemented from gcu::Object.
virtual void gcp::Mesomery::Transform2D | ( | Matrix2D & | m, | |
double | x, | |||
double | y | |||
) | [virtual] |
m,: | the 2D Matrix of the transformation. | |
x,: | the x component of the center of the transformation. | |
y,: | the y component of the center of the transformation. |
Reimplemented from gcu::Object.
virtual bool gcp::Mesomery::BuildContextualMenu | ( | GtkUIManager * | UIManager, | |
Object * | object, | |||
double | x, | |||
double | y | |||
) | [virtual] |
UIManager,: | the GtkUIanager to populate. | |
object,: | the Object on which occured the mouse click. | |
x,: | x coordinate of the mouse click. | |
y,: | y coordinate of the mouse click. |
Reimplemented from gcu::Object.
virtual bool gcp::Mesomery::OnSignal | ( | SignalId | Signal, | |
Object * | Child | |||
) | [virtual] |
Signal,: | the appropriate SignalId | |
Child,: | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.
virtual double gcp::Mesomery::GetYAlign | ( | ) | [virtual] |
Used to retreive the y coordinate for alignment. The default implementation returns 0.0 and every derived class for which alignment has a meaning should implement this method.
Reimplemented from gcu::Object.