Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File 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_double &obs, const CrystVector_double &calc, const double tthetaMin, const double 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_double mObs
CrystVector_double mCalc
CrystVector_double m2theta
const long mMargin
const double mDiffPercentShift
double mMaxIntensity
double mMinIntensity
double mMin2Theta
double mMax2Theta
wxFrame * mpParentFrame
bool mCalcPatternIsLocked
wxMenu * mpPopUpMenu
 Pop-up menu.

bool mIsDragging
 Are we within a dragging event ?

double mDragging2Theta0
 Remember coordinates at the beginning of the dragging.

double 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 Wed Nov 14 19:48:38 2001 for ObjCryst++ by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001