Inheritance diagram for gcp::Bond:
Public Member Functions | |
Bond () | |
Bond (Atom *first, Atom *last, unsigned char order) | |
virtual | ~Bond () |
virtual Object * | GetAtomAt (double x, double y, double z=0.) |
BondType | GetType () |
unsigned | IsCyclic () |
virtual bool | SaveNode (xmlDocPtr xml, xmlNodePtr) |
virtual bool | LoadNode (xmlNodePtr) |
virtual void | Update (GtkWidget *w) |
virtual void | Move (double x, double y, double z=0) |
virtual void | Transform2D (Matrix2D &m, double x, double y) |
void | IncOrder (int n=1) |
virtual void | SetSelected (GtkWidget *w, int state) |
void | Add (GtkWidget *w) |
virtual double | GetYAlign () |
bool | BuildContextualMenu (GtkUIManager *UIManager, Object *object, double x, double y) |
Protected Attributes | |
BondType | m_type |
double | m_coords [16] |
bool | m_CoordsCalc |
list< Cycle * > | m_Cycles |
map< Bond *, BondCrossing > | m_Crossing |
int | m_level |
Definition at line 54 of file gcp/bond.h.
gcp::Bond::Bond | ( | ) |
The default constructor. Creates a bond with order set to 0.
Reimplemented from gcu::Bond.
first,: | a pointer to the first Atom instance of the bond. | |
last,: | a pointer to the last Atom instance of the bond. | |
order,: | the order of the new bond. |
Reimplemented from gcu::Bond.
virtual Object* gcp::Bond::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.
BondType gcp::Bond::GetType | ( | ) | [inline] |
Reimplemented from gcu::Object.
Definition at line 62 of file gcp/bond.h.
References m_type.
virtual bool gcp::Bond::SaveNode | ( | xmlDocPtr | xml, | |
xmlNodePtr | node | |||
) | [virtual] |
xml,: | the xmlDoc used to save the document. | |
node,: | a pointer to the xmlNode to which this Bond is serialized. |
Reimplemented from gcu::Bond.
virtual bool gcp::Bond::LoadNode | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized Bond. |
Reimplemented from gcu::Bond.
virtual void gcp::Bond::Update | ( | GtkWidget * | w | ) | [virtual] |
w,: | the GtkWidget inside which the Object is displayed. |
Reimplemented from gcu::Object.
virtual void gcp::Bond::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::Bond.
virtual void gcp::Bond::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::Bond.
void gcp::Bond::IncOrder | ( | int | n = 1 |
) | [virtual] |
n,: | the increment to add to the bond order |
Reimplemented from gcu::Bond.
virtual void gcp::Bond::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::Bond::Add | ( | GtkWidget * | w | ) | [virtual] |
w,: | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
virtual double gcp::Bond::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.
bool gcp::Bond::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.