Inheritance diagram for gcp::Molecule:
Public Member Functions | |
void | Add (GtkWidget *w) |
virtual bool | Load (xmlNodePtr) |
virtual xmlNodePtr | Save (xmlDocPtr xml) |
virtual void | SetSelected (GtkWidget *w, int state) |
virtual void | Transform2D (Matrix2D &m, double x, double y) |
virtual Object * | GetAtomAt (double x, double y, double z=0.) |
virtual double | GetYAlign () |
virtual bool | BuildContextualMenu (GtkUIManager *UIManager, Object *object, double x, double y) |
virtual bool | OnSignal (SignalId Signal, Object *Child) |
string | GetAlignmentId () |
Definition at line 35 of file molecule.h.
void gcp::Molecule::Add | ( | GtkWidget * | w | ) | [virtual] |
w,: | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
virtual bool gcp::Molecule::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.
virtual xmlNodePtr gcp::Molecule::Save | ( | xmlDocPtr | xml | ) | [virtual] |
xml,: | the xmlDoc used to save the document. |
Reimplemented from gcu::Object.
virtual void gcp::Molecule::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.
virtual void gcp::Molecule::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 Object* gcp::Molecule::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.
virtual double gcp::Molecule::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.
virtual bool gcp::Molecule::BuildContextualMenu | ( | GtkUIManager * | UIManager, | |
Object * | object, | |||
double | x, | |||
double | y | |||
) | [virtual] |
UIManager,: | the GtkUIanager 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.
virtual bool gcp::Molecule::OnSignal | ( | SignalId | Signal, | |
Object * | Child | |||
) | [virtual] |
Signal,: | the appropriate SignalId | |
Child,: | the child which emitted the signal or NULL |
Reimplemented from gcu::Object.