#include <gcp/reaction-arrow.h>
Public Member Functions | |
virtual | ~ReactionArrow () |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr node) |
void | AddItem () |
void | UpdateItem () |
void | SetStartStep (ReactionStep *Step) |
ReactionStep * | GetStartStep () |
void | SetEndStep (ReactionStep *Step) |
ReactionStep * | GetEndStep () |
void | RemoveStep (ReactionStep *Step) |
bool | BuildContextualMenu (GtkUIManager *UIManager, gcu::Object *object, double x, double y) |
void | Move (double x, double y, double z=0) |
void | SetSelected (int state) |
void | AddProp (gcu::Object *object) |
void | PositionChild (ReactionProp *prop) |
bool | OnSignal (gcu::SignalId Signal, gcu::Object *Child) |
bool | SetProperty (unsigned property, char const *value) |
std::string | Name () |
Definition at line 40 of file reaction-arrow.h.
virtual gcp::ReactionArrow::~ReactionArrow | ( | ) | [virtual] |
The destructor.
void gcp::ReactionArrow::AddItem | ( | ) | [virtual] |
Used to add a representation of the arrow in the view.
Reimplemented from gccv::ItemClient.
void gcp::ReactionArrow::AddProp | ( | gcu::Object * | object | ) |
object | the object to attach to the arrow. |
bool gcp::ReactionArrow::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.
ReactionStep* gcp::ReactionArrow::GetEndStep | ( | ) | [inline] |
ReactionStep* gcp::ReactionArrow::GetStartStep | ( | ) | [inline] |
bool gcp::ReactionArrow::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized arrow. |
Reimplemented from gcp::Arrow.
void gcp::ReactionArrow::Move | ( | double | x, | |
double | y, | |||
double | z = 0 | |||
) | [virtual] |
x | the x component of the transation vector. | |
y | the y component of the transation vector. | |
z | the z component of the transation vector. |
Reimplemented from gcp::Arrow.
std::string gcp::ReactionArrow::Name | ( | ) | [virtual] |
bool gcp::ReactionArrow::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::ReactionArrow::PositionChild | ( | ReactionProp * | prop | ) |
prop | the attached property to position. |
void gcp::ReactionArrow::RemoveStep | ( | ReactionStep * | Step | ) |
Step | the reaction step to remove from the reaction |
xmlNodePtr gcp::ReactionArrow::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
void gcp::ReactionArrow::SetEndStep | ( | ReactionStep * | Step | ) | [inline] |
Step | the reaction step after the reaction |
Definition at line 88 of file reaction-arrow.h.
bool gcp::ReactionArrow::SetProperty | ( | unsigned | property, | |
char const * | value | |||
) | [virtual] |
property | the property id as defined in objprops.h | |
value | the property value as a string |
Reimplemented from gcp::Arrow.
void gcp::ReactionArrow::SetSelected | ( | int | state | ) | [virtual] |
state,: | the selection state of the arrow. |
Reimplemented from gcp::Arrow.
void gcp::ReactionArrow::SetStartStep | ( | ReactionStep * | Step | ) | [inline] |
Step | the reaction step before the reaction |
Definition at line 78 of file reaction-arrow.h.
void gcp::ReactionArrow::UpdateItem | ( | ) | [virtual] |
Used to update the representation of the arrow in the view.
Reimplemented from gccv::ItemClient.