
Public Member Functions | |
| void | SetSelected (GtkWidget *w, int state) |
| void | Add (GtkWidget *w) |
| void | Update (GtkWidget *w) |
| xmlNodePtr | Save (xmlDocPtr xml) |
| bool | Load (xmlNodePtr) |
| Object * | GetAtomAt (double x, double y, double z=0.) |
| void | Move (double x, double y, double z=0) |
| void | Transform2D (Matrix2D &m, double x, double y) |
| Atom * | GetAtom () |
| double | GetYAlign () |
Definition at line 36 of file fragment.h.
| void gcp::Fragment::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.
| void gcp::Fragment::Add | ( | GtkWidget * | w | ) | [virtual] |
| w,: | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
| void gcp::Fragment::Update | ( | GtkWidget * | w | ) | [virtual] |
| w,: | the GtkWidget inside which the Object is displayed. |
Reimplemented from gcu::Object.
| xmlNodePtr gcp::Fragment::Save | ( | xmlDocPtr | xml | ) | [virtual] |
| xml,: | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
| bool gcp::Fragment::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 gcp::TextObject.
| Object* gcp::Fragment::GetAtomAt | ( | double | x, | |
| double | y, | |||
| double | z = 0. | |||
| ) | [virtual] |
| x,: | the x coordinate | |
| y,: | the y coordinate | |
| z,: | the z coordinate |
Reimplemented from gcu::Object.
| void gcp::Fragment::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::TextObject.
| void gcp::Fragment::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.
| double gcp::Fragment::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