#include <crystalviewer/crystaldoc.h>
Public Member Functions | |
CrystalDoc () | |
virtual | ~CrystalDoc () |
void | ParseXMLTree (xmlNode *xml) |
void | Update () |
CrystalView * | GetView () |
bool | IsDirty () |
virtual void | SetDirty () |
void | Draw () |
gdouble | GetMaxDist () |
virtual CrystalView * | CreateNewView () |
virtual CrystalAtom * | CreateNewAtom () |
virtual CrystalLine * | CreateNewLine () |
virtual CrystalCleavage * | CreateNewCleavage () |
xmlDocPtr | BuildXMLTree () |
virtual const char * | GetProgramId () |
Protected Member Functions | |
void | Init () |
void | Reinit () |
virtual bool | LoadNewView (xmlNodePtr node) |
Protected Attributes | |
gcLattices | m_lattice |
gdouble | m_a |
gdouble | m_b |
gdouble | m_c |
gdouble | m_alpha |
gdouble | m_beta |
gdouble | m_gamma |
gdouble | m_xmin |
gdouble | m_ymin |
gdouble | m_zmin |
gdouble | m_xmax |
gdouble | m_ymax |
gdouble | m_zmax |
gdouble | m_dDist |
gboolean | m_bFixedSize |
CrystalAtomList | AtomDef |
CrystalAtomList | Atoms |
CrystalLineList | LineDef |
CrystalLineList | Lines |
CrystalCleavageList | Cleavages |
list< CrystalView * > | m_Views |
bool | m_bDirty |
bool | m_bEmpty |
Definition at line 80 of file crystaldoc.h.
|
The constructor of CrystalDoc |
|
The destructor of CrystalDoc |
|
Builds the xmlDoc corresponding to the crystal structure.
|
|
Creates a new atom. This method should be overrided by programs deriving a new view class from CrystalAtom.
|
|
Creates a new cleavage. This method should be overrided by programs deriving a new line class from CrystalCleavage
|
|
Creates a new line. This method should be overrided by programs deriving a new view class from CrystalLine.
|
|
Creates a view of the document. This method should be overrided by programs deriving a new view class from CrystalView.
|
|
Draws the document using OpenGL primitives. |
|
Definition at line 127 of file crystaldoc.h. References m_dDist. |
|
|
|
|
|
Initialize a new CrystalDoc instance. |
|
Definition at line 115 of file crystaldoc.h. References m_bDirty. |
|
|
|
CrystalDoc* crystal = new CrystalDoc(); xmlDocPtr doc = xmlParseFile(filename); crystal->ParseXMLTree(doc->children); |
|
Reinitialize a CrystalDoc instance. Used when loading a file in an already existing document. |
|
Signals the document as modified since the last saving operation. |
|
This method must be called when a new document is loaded or when the definition of the crystal is changed. It recalculates everything and updates all the views. |
|
List of the atoms in the definition of the crystal Definition at line 251 of file crystaldoc.h. |
|
List of the atoms displayed. Definition at line 255 of file crystaldoc.h. |
|
List of the cleavages defined. Definition at line 267 of file crystaldoc.h. |
|
List of the lines in the definition of the crystal Definition at line 259 of file crystaldoc.h. |
|
List of the lines displayed. Definition at line 263 of file crystaldoc.h. |
|
The a parameter of the unit cell. Definition at line 195 of file crystaldoc.h. |
|
The alpha angle of the unit cell. Definition at line 207 of file crystaldoc.h. |
|
The b parameter of the unit cell. Definition at line 199 of file crystaldoc.h. |
|
true if the document has changed since the last saving. Changing the orientation of the model in one of the views is considered as a change. Definition at line 276 of file crystaldoc.h. Referenced by IsDirty(). |
|
true if the document does not contain anything displayable. Definition at line 280 of file crystaldoc.h. |
|
The beta angle of the unit cell. Definition at line 211 of file crystaldoc.h. |
|
true if cleavages must not change positions in the view. Definition at line 247 of file crystaldoc.h. |
|
The c parameter of the unit cell. Definition at line 203 of file crystaldoc.h. |
|
The maximum distance between an object and the center. Definition at line 243 of file crystaldoc.h. Referenced by GetMaxDist(). |
|
The gamma angle of the unit cell. Definition at line 215 of file crystaldoc.h. |
|
The Bravais lattice of the crystal. Definition at line 191 of file crystaldoc.h. |
|
List of the views of the document. Definition at line 271 of file crystaldoc.h. |
|
The maximum x coordinate in the representation of the crystal structure. Definition at line 231 of file crystaldoc.h. |
|
The minimum x coordinate in the representation of the crystal structure. Definition at line 219 of file crystaldoc.h. |
|
The maximum y coordinate in the representation of the crystal structure. Definition at line 235 of file crystaldoc.h. |
|
The minimum y coordinate in the representation of the crystal structure. Definition at line 223 of file crystaldoc.h. |
|
The maximum z coordinate in the representation of the crystal structure. Definition at line 239 of file crystaldoc.h. |
|
The minimum z coordinate in the representation of the crystal structure. Definition at line 227 of file crystaldoc.h. |