#include <gcu/crystalview.h>
Public Member Functions | |
CrystalView (CrystalDoc *pDoc) | |
Constructor. | |
virtual | ~CrystalView () |
Destructor. | |
GtkWidget * | CreateNewWidget () |
void | Init (GtkWidget *widget) |
void | Reshape (GtkWidget *widget) |
void | Draw (GtkWidget *widget) |
void | Update () |
void | Update (GtkWidget *widget) |
bool | OnPressed (GtkWidget *widget, GdkEventButton *event) |
void | OnMotion (GtkWidget *widget, GdkEventMotion *event) |
void | OnDestroyed (GtkWidget *widget) |
virtual bool | Load (xmlNodePtr node) |
virtual xmlNodePtr | Save (xmlDocPtr xml) |
Protected Attributes | |
gdouble | m_fAngle |
gdouble | m_fRadius |
gdouble | m_psi |
gdouble | m_theta |
gdouble | m_phi |
gdouble | m_height |
gdouble | m_width |
gdouble | m_near |
gdouble | m_far |
Matrix | m_Euler |
unsigned | m_nGLList |
float | m_fBlue |
float | m_fRed |
float | m_fGreen |
float | m_fAlpha |
CrystalDoc * | m_pDoc |
GtkWidget * | m_pWidget |
Definition at line 44 of file crystalview.h.
|
Constructor.
|
|
Destructor. The destructor of CrystalView. |
|
Creates a widget to display the model as defined in the document and with the parameters of the view. Several widgets cn exist for the same view and their contents are identical. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Updates all widgets of the view. This method must be called each time the document or the view are modified. |
|
The gcu::Matrix used to calculate the absolute coordiantes from the positions relative to the crystal. Definition at line 175 of file crystalview.h. |
|
The alpha component of the background color. Definition at line 196 of file crystalview.h. |
|
he field of view. Definition at line 139 of file crystalview.h. |
|
The blue component of the background color. Definition at line 184 of file crystalview.h. |
|
The green component of the background color. Definition at line 192 of file crystalview.h. |
|
The distance of the center of the model from the viewer. Definition at line 143 of file crystalview.h. |
|
The red component of the background color. Definition at line 188 of file crystalview.h. |
|
The height of the widget. Definition at line 159 of file crystalview.h. |
|
The distance of the fore plane delimiting the volume active in the OpenGL representation to the viewer. Definition at line 167 of file crystalview.h. |
|
A GLList used when drawing the model. Definition at line 179 of file crystalview.h. |
|
A pointer to the CrystalDoc instance containig the definition of the model displayed in the view. Definition at line 200 of file crystalview.h. |
|
Euler's Phi angle giving the orientaion of the crystal in the view. Definition at line 155 of file crystalview.h. |
|
Euler's Psi angle giving the orientaion of the crystal in the view. Definition at line 147 of file crystalview.h. |
|
A OpenGL widget where the model is displayed. It is the last one used. Definition at line 204 of file crystalview.h. |
|
Euler's Theta angle giving the orientaion of the crystal in the view. Definition at line 151 of file crystalview.h. |
|
The width of the widget. Definition at line 163 of file crystalview.h. |