#include <gcu/crystalatom.h>
Inheritance diagram for gcu::CrystalAtom:
Public Member Functions | |
CrystalAtom (CrystalAtom &caAtom) | |
void | Draw () |
void | SetColor (float red, float green, float blue, float alpha) |
void | SetDefaultColor () |
bool | HasCustomColor () |
void | GetColor (double *red, double *green, double *blue, double *alpha) |
void | SetSize (double r) |
double | GetSize () |
bool | operator== (CrystalAtom &caAtom) |
void | Cleave () |
double | ScalProd (int h, int k, int l) |
void | NetToCartesian (double a, double b, double c, double alpha, double beta, double gamma) |
double | Distance (double x, double y, double z, bool bFixed) |
double | r () |
const GcuAtomicRadius & | GetRadius () |
void | SetRadius (const GcuAtomicRadius &r) |
bool | IsCleaved () |
virtual bool | SaveNode (xmlDocPtr xml, xmlNodePtr node) |
virtual bool | LoadNode (xmlNodePtr node) |
Protected Attributes | |
float | m_fBlue |
float | m_fRed |
float | m_fGreen |
float | m_fAlpha |
bool | m_bCustomColor |
GcuAtomicRadius | m_Radius |
int | m_nCleave |
Definition at line 45 of file crystalatom.h.
|
|
|
Method used to cleave an atom. The inverse operation does not exist since the whole crystal must be recalculated after a change in the definition. Definition at line 130 of file crystalatom.h. |
|
|
|
Draws the atom inside the active OpenGL window. |
|
|
|
Definition at line 173 of file crystalatom.h. |
|
|
|
Definition at line 100 of file crystalatom.h. |
|
Definition at line 181 of file crystalatom.h. |
|
Reimplemented from gcu::Atom. |
|
|
|
|
|
Definition at line 169 of file crystalatom.h. |
|
Reimplemented from gcu::Atom. |
|
|
|
|
|
Gives the atom the default color. |
|
|
|
|
|
False if the color used is the default color and true if it is a user defined color. Definition at line 216 of file crystalatom.h. |
|
The alpha component of the color of the sphere representing the atom. Definition at line 212 of file crystalatom.h. |
|
The blue component of the color of the sphere representing the atom. Definition at line 200 of file crystalatom.h. |
|
The green component of the color of the sphere representing the atom. Definition at line 208 of file crystalatom.h. |
|
The red component of the color of the sphere representing the atom. Definition at line 204 of file crystalatom.h. |
|
When cleavages (see CrystalCleavage class documentation) are defined, the atom might be cleaved. m_nCleave is the number of CrystalCleavage instances which remove the atom. If this member is not 0, the atom will not be displayed. Definition at line 226 of file crystalatom.h. |
|
The GcuAtomicRadius containing the radius caracteristics of the atom. Definition at line 220 of file crystalatom.h. |