The Gnome Chemistry Utils
0.13.7
|
#include <gcr/view.h>
Public Member Functions | |
View (Document *pDoc) | |
Constructor. | |
virtual | ~View () |
Destructor. | |
virtual bool | Load (xmlNodePtr node) |
virtual xmlNodePtr | Save (xmlDocPtr xml) const |
void | SetBackgroundColor (float red, float green, float blue, float alpha) |
void | GetBackgroundColor (double *red, double *green, double *blue, double *alpha) |
gdouble & | GetFoV () |
gdouble & | GetPos () |
void | GetRotation (double *psi, double *theta, double *phi) |
void | SetWindow (Window *val) |
Window * | GetWindow (void) |
Protected Attributes | |
gdouble | m_height |
gdouble | m_width |
The class representing a view of the model. Each document might have several views.
Definition at line 45 of file gcr/view.h.
gcr::View::View | ( | Document * | pDoc | ) |
Constructor.
pDoc | a pointer to the Document instance. |
Creates a new view for the document.
virtual gcr::View::~View | ( | ) | [virtual] |
Destructor.
The destructor of View.
void gcr::View::GetBackgroundColor | ( | double * | red, |
double * | green, | ||
double * | blue, | ||
double * | alpha | ||
) |
red | where to store the red component of the background color. |
green | where to store the green component of the background color. |
blue | where to store the blue component of the background color. |
alpha | where to store the alpha component of the background color. |
Retrieves the view background color.
gdouble& gcr::View::GetFoV | ( | ) | [inline] |
Definition at line 96 of file gcr/view.h.
References gcu::GLView::GetRefAngle().
gdouble& gcr::View::GetPos | ( | ) | [inline] |
Definition at line 102 of file gcr/view.h.
References gcu::GLView::m_Radius.
void gcr::View::GetRotation | ( | double * | psi, |
double * | theta, | ||
double * | phi | ||
) |
psi | where to store Euler's psi angle. |
theta | where to store Euler's theta angle. |
phi | where to store Euler's phi angle. |
Retrieves the view orientation.
gcr::View::GetWindow | ( | void | ) | [inline] |
Definition at line 131 of file gcr/view.h.
virtual bool gcr::View::Load | ( | xmlNodePtr | node | ) | [virtual] |
node | a pointer to the xmlNode containing the serialized view. |
Loads the parameters of the view from an xmlNode.
virtual xmlNodePtr gcr::View::Save | ( | xmlDocPtr | xml | ) | const [virtual] |
xml | the xmlDoc used to save the document. |
void gcr::View::SetBackgroundColor | ( | float | red, |
float | green, | ||
float | blue, | ||
float | alpha | ||
) |
red | the red component of the background color. |
green | the green component of the background color. |
blue | the blue component of the background color. |
alpha | the alpha component of the background color. |
Sets the view background color.
gcr::View::SetWindow | ( | Window * | val | ) | [inline] |
val | a Window |
Sets the Window used to display the view.
Definition at line 131 of file gcr/view.h.
gdouble gcr::View::m_height [protected] |
The height of the widget.
Definition at line 117 of file gcr/view.h.
gdouble gcr::View::m_width [protected] |
The width of the widget.
Definition at line 121 of file gcr/view.h.