The Gnome Chemistry Utils  0.12.11
Public Member Functions | Protected Attributes
gcu::CrystalView Class Reference

#include <gcu/crystalview.h>

Inheritance diagram for gcu::CrystalView:
gcu::GLView gcu::Printable gcu::DialogOwner

List of all members.

Public Member Functions

 CrystalView (CrystalDoc *pDoc)
 Constructor.
virtual ~CrystalView ()
 Destructor.
virtual bool Load (xmlNodePtr node)
virtual xmlNodePtr Save (xmlDocPtr xml) const
- Public Member Functions inherited from gcu::GLView
 GLView (GLDocument *pDoc) throw (std::runtime_error)
 Constructor.
virtual ~GLView ()
 Destructor.
GtkWidget * GetWidget ()
void Init ()
void Reshape (int width, int height)
void Draw ()
bool OnPressed (GdkEventButton *event)
bool OnMotion (GdkEventMotion *event)
void Update ()
void SetRotation (double psi, double theta, double phi)
void SaveAsImage (std::string const &filename, char const *type, std::map< std::string, std::string > &options, unsigned width, unsigned height) const
GdkPixbuf * BuildPixbuf (unsigned width, unsigned height) const
void DoPrint (GtkPrintOperation *print, GtkPrintContext *context, int page) const
GtkWindow * GetGtkWindow ()
void RenderToCairo (cairo_t *cr, unsigned width, unsigned height) const
void SetAngle (double val)
double GetAngle (void) const
double & GetRefAngle (void)
void SetPsi (double val)
double GetPsi (void) const
double & GetRefPsi (void)
void SetPhi (double val)
double GetPhi (void) const
double & GetRefPhi (void)
void SetTheta (double val)
double GetTheta (void) const
double & GetRefTheta (void)
void SetRed (float val)
float GetRed (void) const
float & GetRefRed (void)
void SetGreen (float val)
float GetGreen (void) const
float & GetRefGreen (void)
void SetBlue (float val)
float GetBlue (void) const
float & GetRefBlue (void)
void SetAlpha (float val)
float GetAlpha (void) const
float & GetRefAlpha (void)
GLDocumentGetDoc (void)
double GetRadius (void)
- Public Member Functions inherited from gcu::Printable
 Printable ()
virtual ~Printable ()
virtual bool SupportsHeaders ()
virtual bool SupportMultiplePages ()
virtual int GetPagesNumber ()
void Print (bool preview)
void SetPageSetup (GtkPageSetup *PageSetup)
GtkPrintSettings * GetPrintSettings (void) const
void SetUnit (GtkUnit val)
GtkUnit GetUnit (void) const
GtkUnit & GetRefUnit (void)
void SetHeaderHeight (double val)
double GetHeaderHeight (void) const
double & GetRefHeaderHeight (void)
void SetFooterHeight (double val)
double GetFooterHeight (void) const
double & GetRefFooterHeight (void)
void SetHorizCentered (bool val)
bool GetHorizCentered (void) const
bool & GetRefHorizCentered (void)
void SetVertCentered (bool val)
bool GetVertCentered (void) const
bool & GetRefVertCentered (void)
void SetScaleType (PrintScaleType val)
PrintScaleType GetScaleType (void) const
PrintScaleTypeGetRefScaleType (void)
void SetScale (double val)
double GetScale (void) const
double & GetRefScale (void)
void SetHorizFit (bool val)
bool GetHorizFit (void) const
bool & GetRefHorizFit (void)
void SetVertFit (bool val)
bool GetVertFit (void) const
bool & GetRefVertFit (void)
void SetHPages (int val)
int GetHPages (void) const
int & GetRefHPages (void)
void SetVPages (int val)
int GetVPages (void) const
int & GetRefVPages (void)
- Public Member Functions inherited from gcu::DialogOwner
 DialogOwner ()
virtual ~DialogOwner ()
DialogGetDialog (std::string name)
void ClearDialogs ()

Protected Attributes

gdouble m_height
gdouble m_width
- Protected Attributes inherited from gcu::GLView
GtkWidget * m_pWidget
double m_Radius

Detailed Description

The class representing a view of the model. Each document might have several views. Most methods are automatically called by the framework and should not be explicitely used in programs.

Definition at line 45 of file crystalview.h.


Constructor & Destructor Documentation

gcu::CrystalView::CrystalView ( CrystalDoc pDoc)

Constructor.

Parameters:
pDoc,:a pointer to the CrystalDoc instance.

Creates a new view for the document.

virtual gcu::CrystalView::~CrystalView ( )
virtual

Destructor.

The destructor of CrystalView.


Member Function Documentation

virtual bool gcu::CrystalView::Load ( xmlNodePtr  node)
virtual
Parameters:
node,:a pointer to the xmlNode containing the serialized view.

Loads the parameters of the view from an xmlNode.

virtual xmlNodePtr gcu::CrystalView::Save ( xmlDocPtr  xml) const
virtual
Parameters:
xml,:the xmlDoc used to save the document.
Returns:
a pointer to the xmlNode containig the view parameters or NULL if an error occured.

Member Data Documentation

gdouble gcu::CrystalView::m_height
protected

The height of the widget.

Definition at line 77 of file crystalview.h.

gdouble gcu::CrystalView::m_width
protected

The width of the widget.

Definition at line 81 of file crystalview.h.


The documentation for this class was generated from the following file: