#include <gcu/crystalview.h>
Public Member Functions | |
CrystalView (CrystalDoc *pDoc) | |
Constructor. | |
virtual | ~CrystalView () |
Destructor. | |
virtual bool | Load (xmlNodePtr node) |
virtual xmlNodePtr | Save (xmlDocPtr xml) |
Protected Attributes | |
gdouble | m_height |
gdouble | m_width |
Definition at line 46 of file crystalview.h.
gcu::CrystalView::CrystalView | ( | CrystalDoc * | pDoc | ) |
Constructor.
pDoc,: | a pointer to the CrystalDoc instance. |
virtual gcu::CrystalView::~CrystalView | ( | ) | [virtual] |
Destructor.
The destructor of CrystalView.
virtual bool gcu::CrystalView::Load | ( | xmlNodePtr | node | ) | [virtual] |
widget,: | a pointer to a widget created by CreateNewWidget(). |
widget,: | a pointer to a widget created by CreateNewWidget(). |
widget,: | a pointer to a widget created by CreateNewWidget(). |
Updates all widgets of the view. This method must be called each time the document or the view are modified.
widget,: | a pointer to a widget created by CreateNewWidget(). |
widget,: | a pointer to a widget created by CreateNewWidget(). | |
event,: | a pointer to a GdkEvent. |
widget,: | a pointer to a widget created by CreateNewWidget(). | |
event,: | a pointer to a GdkEvent. |
widget,: | a pointer to a widget created by CreateNewWidget(). |
node,: | a pointer to the xmlNode containing the serialized view. |
virtual xmlNodePtr gcu::CrystalView::Save | ( | xmlDocPtr | xml | ) | [virtual] |
xml,: | the xmlDoc used to save the document. |
gdouble gcu::CrystalView::m_height [protected] |
x,: | the x component of the rotation. | |
y,: | the y component of the rotation. |
The field of view.
The distance of the center of the model from the viewer.
Euler's Psi angle giving the orientaion of the crystal in the view.
Euler's Theta angle giving the orientaion of the crystal in the view.
Euler's Phi angle giving the orientaion of the crystal in the view.
The height of the widget.
Definition at line 156 of file crystalview.h.
gdouble gcu::CrystalView::m_width [protected] |
The width of the widget.
Definition at line 160 of file crystalview.h.