#include <gcp/fragment-atom.h>
Public Member Functions | |
FragmentAtom () | |
FragmentAtom (Fragment *fragment, int Z) | |
virtual | ~FragmentAtom () |
void | SetZ (int Z) |
bool | AcceptNewBonds (int nb) |
void | Update () |
void | AddItem () |
void | UpdateItem () |
void | SetSelected (int state) |
xmlNodePtr | Save (xmlDocPtr xml) const |
bool | Load (xmlNodePtr node) |
gccv::Anchor | GetChargePosition (unsigned char &Pos, double Angle, double &x, double &y) |
int | GetAvailablePosition (double &x, double &y) |
bool | GetPosition (double angle, double &x, double &y) |
bool | AcceptCharge (int charge) |
void | AddToMolecule (Molecule *Mol) |
bool | Match (gcu::Atom *atom, gcu::AtomMatchState &state) |
void | DoBuildSymbolGeometry (View *pView) |
Fragment const * | GetFragment (void) const |
Definition at line 40 of file fragment-atom.h.
gcp::FragmentAtom::FragmentAtom | ( | ) |
The default constructor.
gcp::FragmentAtom::FragmentAtom | ( | Fragment * | fragment, | |
int | Z | |||
) |
fragment | the parent Fragment. | |
Z | the atomic number. |
virtual gcp::FragmentAtom::~FragmentAtom | ( | ) | [virtual] |
The destructor.
bool gcp::FragmentAtom::AcceptCharge | ( | int | charge | ) | [virtual] |
charge | the charge that might be set. |
Reimplemented from gcp::Atom.
bool gcp::FragmentAtom::AcceptNewBonds | ( | int | nb | ) | [virtual] |
nb | the number of bonds to add, taking orders into account. |
Reimplemented from gcp::Atom.
void gcp::FragmentAtom::AddItem | ( | ) | [virtual] |
Overrided to avoid Atom::AddItem execution. Don't do anything.
Reimplemented from gcp::Atom.
void gcp::FragmentAtom::AddToMolecule | ( | Molecule * | Mol | ) | [virtual] |
Mol,: | a pointer to a molecule |
Reimplemented from gcp::Atom.
void gcp::FragmentAtom::DoBuildSymbolGeometry | ( | View * | pView | ) |
pView | the document view. |
int gcp::FragmentAtom::GetAvailablePosition | ( | double & | x, | |
double & | y | |||
) | [virtual] |
x | the x position. | |
y | the y position. |
Reimplemented from gcp::Atom.
gccv::Anchor gcp::FragmentAtom::GetChargePosition | ( | unsigned char & | Pos, | |
double | Angle, | |||
double & | x, | |||
double & | y | |||
) | [virtual] |
Pos | the approximate position of the charge. | |
Angle | the angle from horizontal left. | |
x | the x position of the charge symbol. | |
y | the y position of the charge symbol. |
Reimplemented from gcp::Atom.
gcp::FragmentAtom::GetFragment | ( | void | ) | const [inline] |
bool gcp::FragmentAtom::GetPosition | ( | double | angle, | |
double & | x, | |||
double & | y | |||
) | [virtual] |
angle | the angle at which a charge sign should be displayed. | |
x | the x position. | |
y | the y position. |
Reimplemented from gcp::Atom.
bool gcp::FragmentAtom::Load | ( | xmlNodePtr | node | ) | [virtual] |
param node a pointer to the xmlNode containing the serialized atom.
Used to load the atom specific properties in memory. The FragmentAtom must already exist.
Reimplemented from gcp::Atom.
Reimplemented in gcp::FragmentResidue.
bool gcp::FragmentAtom::Match | ( | gcu::Atom * | atom, | |
gcu::AtomMatchState & | state | |||
) | [virtual] |
atom | the atom to which the this instance is to be compared. | |
state | the AtomMatchState representing the current comparison state. |
Reimplemented from gcp::Atom.
xmlNodePtr gcp::FragmentAtom::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
Reimplemented from gcp::Atom.
Reimplemented in gcp::FragmentResidue.
void gcp::FragmentAtom::SetSelected | ( | int | state | ) | [virtual] |
state | the selection state of the atom. |
Reimplemented from gcp::Atom.
void gcp::FragmentAtom::SetZ | ( | int | Z | ) | [virtual] |
Z | the new atomic number. |
Reimplemented from gcp::Atom.
void gcp::FragmentAtom::Update | ( | ) | [virtual] |
Overrided to avoid Atom::Update execution. Just call Fragment::Update() method.
Reimplemented from gcp::Atom.
void gcp::FragmentAtom::UpdateItem | ( | ) | [virtual] |
Overrided to avoid Atom::UpdateItem execution. Just call Fragment::UpdateItem().
Reimplemented from gccv::ItemClient.