Inheritance diagram for gcp::Atom:
Public Member Functions | |
Atom () | |
Atom (int Z, double x, double y, double z) | |
virtual | ~Atom () |
virtual void | SetZ (int Z) |
void | AddBond (gcu::Bond *pBond) |
void | RemoveBond (gcu::Bond *pBond) |
virtual void | Add (GtkWidget *w) |
virtual void | Update (GtkWidget *w) |
int | GetAttachedHydrogens () |
virtual xmlNodePtr | Save (xmlDocPtr xml) |
virtual bool | Load (xmlNodePtr) |
virtual bool | LoadNode (xmlNodePtr) |
virtual void | SetSelected (GtkWidget *w, int state) |
virtual double | GetYAlign () |
virtual void | Transform2D (Matrix2D &m, double x, double y) |
bool | BuildContextualMenu (GtkUIManager *UIManager, Object *object, double x, double y) |
virtual void | AddToMolecule (Molecule *Mol) |
void | AddElectron (Electron *electron) |
void | RemoveElectron (Electron *electron) |
int | GetCharge () |
void | ForceChanged () |
Definition at line 78 of file gcp/atom.h.
gcp::Atom::Atom | ( | ) |
The default constructor. Creates an atom with atomic number set to 0.
Reimplemented from gcu::Atom.
gcp::Atom::Atom | ( | int | Z, | |
double | x, | |||
double | y, | |||
double | z | |||
) |
Z,: | the atomic number of the new atom. | |
x,: | the x coordinate of the new atom. | |
y,: | the y coordinate of the new atom. | |
z,: | the z coordinate of the new atom. |
Reimplemented from gcu::Atom.
virtual gcp::Atom::~Atom | ( | ) | [virtual] |
virtual void gcp::Atom::SetZ | ( | int | Z | ) | [virtual] |
void gcp::Atom::AddBond | ( | gcu::Bond * | pBond | ) | [virtual] |
void gcp::Atom::RemoveBond | ( | gcu::Bond * | pBond | ) | [virtual] |
virtual void gcp::Atom::Add | ( | GtkWidget * | w | ) | [virtual] |
w,: | the GtkWidget inside which the Object will be displayed. |
Reimplemented from gcu::Object.
virtual void gcp::Atom::Update | ( | GtkWidget * | w | ) | [virtual] |
w,: | the GtkWidget inside which the Object is displayed. |
Reimplemented from gcu::Object.
virtual xmlNodePtr gcp::Atom::Save | ( | xmlDocPtr | xml | ) | [virtual] |
virtual bool gcp::Atom::Load | ( | xmlNodePtr | node | ) | [virtual] |
virtual bool gcp::Atom::LoadNode | ( | xmlNodePtr | node | ) | [virtual] |
node,: | a pointer to the xmlNode containing the serialized Atom. |
Reimplemented from gcu::Atom.
virtual void gcp::Atom::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 double gcp::Atom::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 void gcp::Atom::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::Atom.
bool gcp::Atom::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 void gcp::Atom::AddToMolecule | ( | Molecule * | Mol | ) | [virtual] |
Mol,: | a pointer to a molecule |
void gcp::Atom::AddElectron | ( | Electron * | electron | ) |
void gcp::Atom::RemoveElectron | ( | Electron * | electron | ) |
int gcp::Atom::GetCharge | ( | ) | [inline] |
Reimplemented from gcu::Atom.
Definition at line 133 of file gcp/atom.h.
References gcu::Atom::m_Charge.