
Public Member Functions | |
| virtual xmlNodePtr | Save (xmlDocPtr xml) |
| virtual bool | Load (xmlNodePtr) |
| unsigned | GetStoich () |
| void | SetStoich (unsigned Stoich) |
| unsigned | GetStoichiometry () |
| void | SetStoichiometry (unsigned coef) |
| virtual double | GetYAlign () |
| virtual bool | BuildContextualMenu (GtkUIManager *UIManager, Object *object, double x, double y) |
| virtual bool | OnSignal (SignalId Signal, Object *Child) |
| Object * | GetChild () |
| Object * | GetStoichChild () |
Definition at line 36 of file reactant.h.
| virtual xmlNodePtr gcp::Reactant::Save | ( | xmlDocPtr | xml | ) | [virtual] |
| xml,: | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
| virtual bool gcp::Reactant::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 double gcp::Reactant::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.
| virtual bool gcp::Reactant::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::Reactant::OnSignal | ( | SignalId | Signal, | |
| Object * | Child | |||
| ) | [virtual] |
| Signal,: | the appropriate SignalId | |
| Child,: | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.
1.5.3