#include <gcu/crystalline.h>
Public Member Functions | |
CrystalLine () | |
virtual | ~CrystalLine () |
CrystalLine (CrystalLineType Type, double X1, double Y1, double Z1, double X2, double Y2, double Z2, double r, float red, float green, float blue, float alpha) | |
CrystalLine (CrystalLine &clLine) | |
CrystalLine & | operator= (CrystalLine &clLine) |
void | Draw () |
double | X1 (void) |
double | Y1 (void) |
double | Z1 (void) |
double | X2 (void) |
double | Y2 (void) |
double | Z2 (void) |
double | Xmax () |
double | Ymax () |
double | Zmax () |
double | Xmin () |
double | Ymin () |
double | Zmin () |
double | Long () |
CrystalLineType | Type () |
void | SetPosition (double x, double y, double z, double x1, double y1, double z1) |
void | SetColor (float red, float green, float blue, float alpha) |
void | GetColor (double *red, double *green, double *blue, double *alpha) |
void | SetRadius (double r) |
double | GetRadius () |
bool | operator== (CrystalLine &clLine) |
virtual void | Move (double x, double y, double z) |
double | ScalProd (int h, int k, int l) |
void | Cleave () |
void | NetToCartesian (double a, double b, double c, double alpha, double beta, double gamma) |
double | Distance (double x, double y, double z, bool bFixed) |
bool | IsCleaved () |
void | GetRotation (double &x, double &y, double &z, double &th) |
virtual xmlNodePtr | Save (xmlDocPtr xml) |
virtual bool | Load (xmlNodePtr node) |
Protected Attributes | |
float | m_fBlue |
float | m_fRed |
float | m_fGreen |
float | m_fAlpha |
double | m_dx |
double | m_dy |
double | m_dz |
double | m_dx2 |
double | m_dy2 |
double | m_dz2 |
double | m_dr |
int | m_nCleave |
CrystalLineType | m_nType |
Definition at line 58 of file crystalline.h.
|
The default constructor of CrystalLine. |
|
The destructior of CrystaLine |
|
|
|
|
|
Method used to cleave a line. The inverse operation does not exist since the whole crystal must be recalculated after a change in the definition. Definition at line 229 of file crystalline.h. References m_nCleave. |
|
|
|
Draws the line inside the active OpenGL window. |
|
|
|
Definition at line 200 of file crystalline.h. References m_dr. |
|
|
|
Definition at line 259 of file crystalline.h. References m_nCleave. |
|
|
|
Definition at line 157 of file crystalline.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 161 of file crystalline.h. References m_nType. |
|
Definition at line 109 of file crystalline.h. References m_dx. |
|
Definition at line 121 of file crystalline.h. References m_dx2. |
|
|
|
|
|
Definition at line 113 of file crystalline.h. References m_dy. |
|
Definition at line 125 of file crystalline.h. References m_dy2. |
|
|
|
|
|
Definition at line 117 of file crystalline.h. References m_dz. |
|
Definition at line 129 of file crystalline.h. References m_dz2. |
|
|
|
|
|
The radius of the cylinder representing the line. Definition at line 328 of file crystalline.h. Referenced by GetRadius(). |
|
The x coordinate of the first end of the line. Definition at line 304 of file crystalline.h. Referenced by X1(). |
|
The x coordinate of the second end of the line. Definition at line 316 of file crystalline.h. Referenced by X2(). |
|
The y coordinate of the first end of the line. Definition at line 308 of file crystalline.h. Referenced by Y1(). |
|
The x coordinate of the second end of the line. Definition at line 320 of file crystalline.h. Referenced by Y2(). |
|
The z coordinate of the first end of the line. Definition at line 312 of file crystalline.h. Referenced by Z1(). |
|
The x coordinate of the second end of the line. Definition at line 324 of file crystalline.h. Referenced by Z2(). |
|
The alpha component of the color of the cylinder representing the line. Definition at line 300 of file crystalline.h. |
|
The blue component of the color of the cylinder representing the line. Definition at line 288 of file crystalline.h. |
|
The green component of the color of the cylinder representing the line. Definition at line 296 of file crystalline.h. |
|
The red component of the color of the cylinder representing the line. Definition at line 292 of file crystalline.h. |
|
When cleavages (see CrystalCleavage class documentation) are defined, the line might be cleaved. m_nCleave is the number of CrystalCleavage instances which remove the line. If this member is not 0, the line will not be displayed. Definition at line 334 of file crystalline.h. Referenced by Cleave(), and IsCleaved(). |
|
The type of the CrystalLine instance. Possible values are:
Definition at line 343 of file crystalline.h. Referenced by Type(). |