The Gnome Chemistry Utils 0.13.3
|
Mechanism step. More...
#include <mechanism-step.h>
Public Member Functions | |
MechanismStep (gcu::TypeId type=MechanismStepType) | |
virtual | ~MechanismStep () |
double | GetYAlign () |
bool | OnSignal (gcu::SignalId Signal, gcu::Object *Child) |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr node) |
std::string | Name () |
void | NotifyEmpty () |
Mechanism step.
One or several molecules with mechanism arrows joining them.
Definition at line 41 of file mechanism-step.h.
gcp::MechanismStep::MechanismStep | ( | gcu::TypeId | type = MechanismStepType | ) |
Constructs a new MechanismStep.
virtual gcp::MechanismStep::~MechanismStep | ( | ) | [virtual] |
The destructor.
double gcp::MechanismStep::GetYAlign | ( | ) | [virtual] |
Reimplemented from gcu::Object.
Reimplemented in gcp::Mesomer, and gcp::ReactionStep.
bool gcp::MechanismStep::Load | ( | xmlNodePtr | node | ) | [virtual] |
node | a pointer to the xmlNode containing the serialized step. |
Used to load a mechanism step in memory. The MechanismStep must already exist.
Reimplemented from gcu::Object.
Reimplemented in gcp::Mesomer, and gcp::ReactionStep.
std::string gcp::MechanismStep::Name | ( | ) | [virtual] |
Reimplemented from gcu::Object.
Reimplemented in gcp::Mesomer, and gcp::ReactionStep.
void gcp::MechanismStep::NotifyEmpty | ( | ) | [virtual] |
Destroys the MechanismStep when empty.
Reimplemented from gcu::Object.
bool gcp::MechanismStep::OnSignal | ( | gcu::SignalId | Signal, |
gcu::Object * | Child | ||
) | [virtual] |
Signal | the appropriate SignalId |
Child | the child which emitted the signal or NULL |
This function is called by the framework one of the molecules or arrows has changed. Might destroy the MechanismStep if there is not anymore an arrow.
Reimplemented from gcu::Object.
Reimplemented in gcp::Mesomer, and gcp::ReactionStep.
xmlNodePtr gcp::MechanismStep::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
Used to save the reaction step to the xmlDoc.
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionStep.