Public Member Functions | |
virtual bool | Load (xmlNodePtr) |
virtual bool | OnSignal (SignalId Signal, Object *Child) |
virtual double | GetYAlign () |
bool | Validate () |
map< Mesomer *, MesomeryArrow * > * | GetArrows () |
Molecule * | GetMolecule () |
Definition at line 42 of file mesomer.h.
virtual bool gcp::Mesomer::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::Mesomer::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::Mesomer::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.
Molecule* gcp::Mesomer::GetMolecule | ( | ) | [inline] |
Used to get the Molecule in the Object instances ancestors.
Reimplemented from gcu::Object.