#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 56 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 227 of file crystalline.h. References m_nCleave. |
|
|
|
Draws the line inside the active OpenGL window. |
|
|
|
Definition at line 198 of file crystalline.h. References m_dr. |
|
|
|
Definition at line 257 of file crystalline.h. References m_nCleave. |
|
|
|
Definition at line 155 of file crystalline.h. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 159 of file crystalline.h. References m_nType. |
|
Definition at line 107 of file crystalline.h. References m_dx. |
|
Definition at line 119 of file crystalline.h. References m_dx2. |
|
|
|
|
|
Definition at line 111 of file crystalline.h. References m_dy. |
|
Definition at line 123 of file crystalline.h. References m_dy2. |
|
|
|
|
|
Definition at line 115 of file crystalline.h. References m_dz. |
|
Definition at line 127 of file crystalline.h. References m_dz2. |
|
|
|
|
|
The radius of the cylinder representing the line. Definition at line 326 of file crystalline.h. Referenced by GetRadius(). |
|
The x coordinate of the first end of the line. Definition at line 302 of file crystalline.h. Referenced by X1(). |
|
The x coordinate of the second end of the line. Definition at line 314 of file crystalline.h. Referenced by X2(). |
|
The y coordinate of the first end of the line. Definition at line 306 of file crystalline.h. Referenced by Y1(). |
|
The x coordinate of the second end of the line. Definition at line 318 of file crystalline.h. Referenced by Y2(). |
|
The z coordinate of the first end of the line. Definition at line 310 of file crystalline.h. Referenced by Z1(). |
|
The x coordinate of the second end of the line. Definition at line 322 of file crystalline.h. Referenced by Z2(). |
|
The alpha component of the color of the cylinder representing the line. Definition at line 298 of file crystalline.h. |
|
The blue component of the color of the cylinder representing the line. Definition at line 286 of file crystalline.h. |
|
The green component of the color of the cylinder representing the line. Definition at line 294 of file crystalline.h. |
|
The red component of the color of the cylinder representing the line. Definition at line 290 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 332 of file crystalline.h. Referenced by Cleave(), and IsCleaved(). |
|
The type of the CrystalLine instance. Possible values are:
Definition at line 341 of file crystalline.h. Referenced by Type(). |