#include <wxPowderPattern.h>
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 | |
WXPowderPattern * | mpPattern |
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. |
So far only displays calc and obs patterns.