#include <gcp/bond.h>

Public Member Functions | |
| Bond () | |
| Bond (Atom *first, Atom *last, unsigned char order) | |
| virtual | ~Bond () |
| Object * | GetAtomAt (double x, double y, double z=0.) |
| BondType | GetType () const |
| void | SetType (BondType type) |
| double | GetAngle2D (Atom *pAtom) |
| void | AddCycle (gcu::Cycle *pCycle) |
| void | RemoveCycle (gcu::Cycle *pCycle) |
| void | RemoveAllCycles () |
| bool | GetLine2DCoords (unsigned Num, double *x1, double *y1, double *x2, double *y2) |
| virtual bool | SaveNode (xmlDocPtr xml, xmlNodePtr node) const |
| bool | LoadNode (xmlNodePtr node) |
| void | Move (double x, double y, double z=0) |
| void | Transform2D (gcu::Matrix2D &m, double x, double y) |
| double | GetDist (double x, double y) |
| void | SetDirty () |
| void | Revert () |
| void | IncOrder (int n=1) |
| void | AddItem () |
| void | UpdateItem () |
| void | SetSelected (int state) |
| double | GetYAlign () |
| bool | IsCrossing (Bond *pBond) |
| bool | BuildContextualMenu (GtkUIManager *UIManager, Object *object, double x, double y) |
| void | MoveToBack () |
| void | BringToFront () |
| std::string | GetProperty (unsigned property) const |
| bool | SetProperty (unsigned property, char const *value) |
| void | AdjustPosition (double &x, double &y) |
Definition at line 75 of file gcp/bond.h.
| gcp::Bond::Bond | ( | ) |
The default constructor.
Reimplemented from gcu::Bond.
| first | the first bonded atom. | |
| last | the last bonded atom. | |
| order | the bond order |
| virtual gcp::Bond::~Bond | ( | ) | [virtual] |
The destructor.
Reimplemented from gcu::Bond.
| void gcp::Bond::AddCycle | ( | gcu::Cycle * | pCycle | ) | [virtual] |
| pCycle | a cycle containing the bond. |
Reimplemented from gcu::Bond.
| void gcp::Bond::AddItem | ( | ) | [virtual] |
Used to add a representation of the bond in the view.
Reimplemented from gccv::ItemClient.
| void gcp::Bond::AdjustPosition | ( | double & | x, | |
| double & | y | |||
| ) |
| x | the x coordinate to adjust | |
| y | the y coordinate to adjust |
| void gcp::Bond::BringToFront | ( | ) |
Brings the bond to front. It has an effect only for crossing bonds.
| bool gcp::Bond::BuildContextualMenu | ( | GtkUIManager * | UIManager, | |
| Object * | object, | |||
| double | x, | |||
| double | y | |||
| ) |
| UIManager,: | the GtkUIManager to populate. | |
| object | the atom on which occured the mouse click. | |
| x | x coordinate of the mouse click. | |
| y | y coordinate of the mouse click. |
| double gcp::Bond::GetAngle2D | ( | Atom * | pAtom | ) |
| pAtom | one of the bonded atoms |
| 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.
| double gcp::Bond::GetDist | ( | double | x, | |
| double | y | |||
| ) |
| x | the x coordinate. | |
| y | the x coordinate. |
| bool gcp::Bond::GetLine2DCoords | ( | unsigned | Num, | |
| double * | x1, | |||
| double * | y1, | |||
| double * | x2, | |||
| double * | y2 | |||
| ) |
| Num | the index of the line representing a, possibly, multiple bond. | |
| x1 | where to store the first x coordinate. | |
| y1 | where to store the first y coordinate. | |
| x2 | where to store the second x coordinate. | |
| y2 | where to store the second y coordinate. |
| std::string gcp::Bond::GetProperty | ( | unsigned | property | ) | const [virtual] |
| property | the identity of the property as defined in objprops.h. |
Reimplemented from gcu::Bond.
| BondType gcp::Bond::GetType | ( | ) | const [inline] |
Reimplemented from gcu::Object.
Definition at line 107 of file gcp/bond.h.
| double gcp::Bond::GetYAlign | ( | ) | [virtual] |
Used to retrieve the y coordinate for alignment.
Reimplemented from gcu::Object.
| void gcp::Bond::IncOrder | ( | int | n = 1 |
) | [virtual] |
| n | the bond order increment. If not given, the default is 1. |
Reimplemented from gcu::Bond.
| bool gcp::Bond::IsCrossing | ( | Bond * | pBond | ) |
| pBond | a bond which might cross. |
| bool gcp::Bond::LoadNode | ( | xmlNodePtr | node | ) | [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.
| void gcp::Bond::MoveToBack | ( | ) |
Move the bond to the lowest position. It has an effect only for crossing bonds.
| void gcp::Bond::RemoveAllCycles | ( | ) | [virtual] |
Clears the list of the cycles containing the bond.
Reimplemented from gcu::Bond.
| void gcp::Bond::RemoveCycle | ( | gcu::Cycle * | pCycle | ) | [virtual] |
| pCycle | a cycle. |
Reimplemented from gcu::Bond.
| void gcp::Bond::Revert | ( | ) |
Exchanges the start and end atoms.
| virtual bool gcp::Bond::SaveNode | ( | xmlDocPtr | xml, | |
| xmlNodePtr | node | |||
| ) | const [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.
| void gcp::Bond::SetDirty | ( | ) |
Tells that the bond has changed, and that the items representing it should be updated accordingly.
| bool gcp::Bond::SetProperty | ( | unsigned | property, | |
| char const * | value | |||
| ) | [virtual] |
| property | the property id as defined in objprops.h | |
| value | the property value as a string |
Reimplemented from gcu::Bond.
| void gcp::Bond::SetSelected | ( | int | state | ) | [virtual] |
| state | the selection state of the bond. |
Reimplemented from gccv::ItemClient.
| void gcp::Bond::SetType | ( | BondType | type | ) |
| type | the new bond type. |
| void gcp::Bond::Transform2D | ( | gcu::Matrix2D & | m, | |
| double | x, | |||
| double | y | |||
| ) | [virtual] |
| m | the Matrix2D 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::UpdateItem | ( | ) | [virtual] |
Used to update the representation of the bond in the view.
Reimplemented from gccv::ItemClient.
1.5.9