
Public Member Functions | |
| virtual bool | Load (xmlNodePtr) |
| virtual void | SetSelected (GtkWidget *w, int state) |
| virtual void | Move (double x, double y, double z=0) |
| virtual void | Transform2D (Matrix2D &m, double x, double y) |
| virtual double | GetYAlign () |
Protected Attributes | |
| double | m_x |
| double | m_y |
| double | m_width |
| double | m_height |
Definition at line 41 of file arrow.h.
| virtual bool gcp::Arrow::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.
Reimplemented in gcp::MesomeryArrow, and gcp::ReactionArrow.
| virtual void gcp::Arrow::SetSelected | ( | GtkWidget * | w, | |
| int | state | |||
| ) | [virtual] |
| w,: | the GtkWidget inside which the Object is displayed. | |
| state,: | the selection state of the Object. |
Reimplemented from gcu::Object.
Reimplemented in gcp::ReactionArrow.
| virtual void gcp::Arrow::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 gcu::Object.
Reimplemented in gcp::ReactionArrow.
| virtual void gcp::Arrow::Transform2D | ( | Matrix2D & | m, | |
| double | x, | |||
| double | y | |||
| ) | [virtual] |
| m,: | the 2D Matrix 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.
| virtual double gcp::Arrow::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.
1.5.3