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

ObjCryst::WXPowderPatternGraph Class Reference

Class to display a Powder Pattern (calc,obs) in a graphic window. More...

#include <wxPowderPattern.h>

List of all members.

Public Methods

 WXPowderPatternGraph (wxFrame *frame, WXPowderPattern *parent)
 Constructor. The top frame should have a Status bar with two fields (at least).

 ~WXPowderPatternGraph ()
void OnPaint (wxPaintEvent &WXUNUSED(event))
 Redraw the spectrum.

void OnMouse (wxMouseEvent &event)
 Display the Theta and intensity values at the mouse position, in the status bar.

void OnUpdate (wxCommandEvent &WXUNUSED(event))
 Update the powder spectrum, at the user's request. This calls the WXPowderPattern::CrystUpdate().

void SetPattern (const CrystVector_REAL &obs, const CrystVector_REAL &calc, const REAL tthetaMin, const REAL tthetaStep)
 Update the spectrum. This is called by the WXPowderPattern parent.

void OnRedrawNewPattern (wxUpdateUIEvent &WXUNUSED(event))
 Redraw the pattern (special function to ensure complete redrawing under windows...).


Private Methods

void ResetAxisLimits ()
 Reset the limits of the axis to full range.


Private Attributes

WXPowderPatternmpPattern
CrystVector_REAL mObs
CrystVector_REAL mCalc
CrystVector_REAL m2theta
const long mMargin
const REAL mDiffPercentShift
REAL mMaxIntensity
REAL mMinIntensity
REAL mMin2Theta
REAL mMax2Theta
wxFrame * mpParentFrame
bool mCalcPatternIsLocked
wxMenu * mpPopUpMenu
 Pop-up menu.

bool mIsDragging
 Are we within a dragging event ?

REAL mDragging2Theta0
 Remember coordinates at the beginning of the dragging.

REAL mDraggingIntensity0
 Remember coordinates at the beginning of the dragging.

long mFirst
 Index of the first and last points drawn of the pattern.

long mLast
 Index of the first and last points drawn of the pattern.


Detailed Description

Class to display a Powder Pattern (calc,obs) in a graphic window.

So far only displays calc and obs patterns.

Todo:
display the difference pattern. Allow to zoom. Display reflection positions for crystalline phases.


The documentation for this class was generated from the following file:
Generated on Tue Feb 5 17:37:31 2002 for ObjCryst++ by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001