The Gnome Chemistry Utils 0.13.3
|
#include <gcp/mesomery-arrow.h>
Public Member Functions | |
MesomeryArrow (Mesomery *mesomery) | |
virtual | ~MesomeryArrow () |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr node) |
void | AddItem () |
void | UpdateItem () |
void | SetStartMesomer (Mesomer *mesomer) |
Mesomer * | GetStartMesomer () |
void | SetEndMesomer (Mesomer *mesomer) |
Mesomer * | GetEndMesomer () |
void | Reverse () |
std::string | Name () |
Arrow class for double headed arrows used in mesomery relationships.
Definition at line 38 of file mesomery-arrow.h.
gcp::MesomeryArrow::MesomeryArrow | ( | Mesomery * | mesomery | ) |
mesomery | the parent mesomery relationship if any. |
Constructs a mesomery arrow. If mesomery is not NULL, the arrow becomes is added to its children list.
virtual gcp::MesomeryArrow::~MesomeryArrow | ( | ) | [virtual] |
The destructor.
void gcp::MesomeryArrow::AddItem | ( | ) | [virtual] |
Used to add a representation of the arrow in the view.
Reimplemented from gccv::ItemClient.
Mesomer* gcp::MesomeryArrow::GetEndMesomer | ( | ) | [inline] |
Definition at line 96 of file mesomery-arrow.h.
Mesomer* gcp::MesomeryArrow::GetStartMesomer | ( | ) | [inline] |
Definition at line 85 of file mesomery-arrow.h.
bool gcp::MesomeryArrow::Load | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized arrow. |
Used to load an arrow in memory.
Reimplemented from gcp::Arrow.
std::string gcp::MesomeryArrow::Name | ( | ) | [virtual] |
Reimplemented from gcp::Arrow.
void gcp::MesomeryArrow::Reverse | ( | ) |
Exchange both ends or the arrow and their associated mesomers.
xmlNodePtr gcp::MesomeryArrow::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
Used to save the arrow to the xmlDoc.
Reimplemented from gcu::Object.
void gcp::MesomeryArrow::SetEndMesomer | ( | Mesomer * | mesomer | ) | [inline] |
mesomer | a mesomer |
Sets mesomer at last end of the arrow. This does not affect coordinates, alignment is dealt with elsewhere.
Definition at line 92 of file mesomery-arrow.h.
void gcp::MesomeryArrow::SetStartMesomer | ( | Mesomer * | mesomer | ) | [inline] |
mesomer | a mesomer |
Sets mesomer at first end of the arrow. This does not affect coordinates, alignment is dealt with elsewhere.
Definition at line 81 of file mesomery-arrow.h.
void gcp::MesomeryArrow::UpdateItem | ( | ) | [virtual] |
Used to update the representation of the arrow in the view.
Reimplemented from gccv::ItemClient.