Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   Related Pages  

ObjCryst::WXCrystal Class Reference

wxCryst class for Crystals. More...

#include <wxCrystal.h>

Inheritance diagram for ObjCryst::WXCrystal::

ObjCryst::WXRefinableObj ObjCryst::WXCrystObj ObjCryst::WXCrystObjBasic List of all members.

Public Methods

 WXCrystal (wxWindow *parent, Crystal *)
virtual void CrystUpdate ()
 Update the display, by getting new values from the object. New values should be grabbed from the object, and then a wxUpdateUI event should be posted (this for multi-thread, since only one thread should do graphical changes).

void UpdateGL (const bool onlyIndependentAtoms=false, const double xMin=-.1, const double xMax=1.1, const double yMin=-.1, const double yMax=1.1, const double zMin=-.1, const double zMax=1.1)
 Update the OpenGL Display List.

int GrabCrystalGLDisplayList () const
 Gets the integer index of the OpenGL display list. Wait, if necessary, for the list not to be used any more. When finished, ReleaseCrystalGLDisplayList() must be called.

void ReleaseCrystalGLDisplayList () const
void OnMenuCrystalGL (wxCommandEvent &WXUNUSED(event))
 Create OpenGL Display of the Crystal Structure.

void NotifyCrystalGLDelete ()
 Tell this object that its 3D OpenGL display has been destroyed.

void OnMenuSaveCIF (wxCommandEvent &WXUNUSED(event))
void OnMenuSaveText (wxCommandEvent &WXUNUSED(event))
void OnMenuAddScattPowAtom (wxCommandEvent &WXUNUSED(event))
void OnMenuRemoveScattPow (wxCommandEvent &WXUNUSED(event))
void OnMenuAddScatterer (wxCommandEvent &event)
void OnMenuRemoveScatterer (wxCommandEvent &WXUNUSED(event))
void OnMenuAddAntiBumpDist (wxCommandEvent &WXUNUSED(event))
bool OnChangeName (const int id)
 When a WXFieldName has been changed by the user, it is handled here. This returns true if the value has been handled (for inheritance purposes).


Private Attributes

CrystalmpCrystal
WXFieldRefParmpFieldLatticeA
 Lattice.

WXFieldRefParmpFieldLatticeB
WXFieldRefParmpFieldLatticeC
WXFieldRefParmpFieldLatticeAlpha
WXFieldRefParmpFieldLatticeBeta
WXFieldRefParmpFieldLatticeGamma
WXFieldNamempFieldSpacegroup
 SpaceGroup.

WXRegistry< Scatterer > * mpWXScattererRegistry
 Scatterers.

WXRegistry< ScatteringPower > * mpWXScatteringPowerRegistry
 Scattering Powers.

unsigned int mCrystalGLDisplayList
 OpenGL Display of the Crystal-Display List. Updated each time CrystUpdate() is called.

bool mCrystalGLDisplayListIsLocked
 This is true when the display list is being used.

WXGLCrystalCanvasmpCrystalGL
 the frame in which the crystal is displayed. There can only be one...


Detailed Description

wxCryst class for Crystals.


The documentation for this class was generated from the following file:
Generated on Wed Nov 14 19:48:38 2001 for ObjCryst++ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001