#include <gcp/reaction.h>
Public Member Functions | |
Reaction () | |
virtual | ~Reaction () |
bool | Build (std::list< gcu::Object * > &Children) throw (std::invalid_argument) |
void | Transform2D (gcu::Matrix2D &m, double x, double y) |
bool | BuildContextualMenu (GtkUIManager *UIManager, gcu::Object *object, double x, double y) |
bool | OnSignal (gcu::SignalId Signal, gcu::Object *Child) |
bool | Load (xmlNodePtr node) |
double | GetYAlign () |
std::string | Name () |
This class is used for chemical reactions in GChemPaint. It can represent a whole reactions scheme with several steps, although only one step is currently really supported. Acceptable children for an instance of this class are instances of ReactionArrow and ReactionStep.
Definition at line 42 of file reaction.h.
gcp::Reaction::Reaction | ( | ) |
Constructs a new empty Reaction instance.
virtual gcp::Reaction::~Reaction | ( | ) | [virtual] |
The destructor.
bool gcp::Reaction::Build | ( | std::list< gcu::Object * > & | Children | ) | throw (std::invalid_argument) [virtual] |
Children | the list of objects used as children to build the reaction |
Reimplemented from gcu::Object.
bool gcp::Reaction::BuildContextualMenu | ( | GtkUIManager * | UIManager, | |
gcu::Object * | object, | |||
double | x, | |||
double | y | |||
) | [virtual] |
UIManager | the GtkUIManager 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.
double gcp::Reaction::GetYAlign | ( | ) | [virtual] |
Used to retrieve the y coordinate for alignment.
Reimplemented from gcu::Object.
bool gcp::Reaction::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized reaction. |
Reimplemented from gcu::Object.
std::string gcp::Reaction::Name | ( | ) | [virtual] |
bool gcp::Reaction::OnSignal | ( | gcu::SignalId | Signal, | |
gcu::Object * | Child | |||
) | [virtual] |
Signal | the appropriate SignalId | |
Child | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.
void gcp::Reaction::Transform2D | ( | gcu::Matrix2D & | m, | |
double | x, | |||
double | y | |||
) | [virtual] |
m | the Matrix2D 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.