|
Public Member Functions |
| 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 | OnMouseWheel (wxMouseEvent &event) |
| Wheel wan be used to scroll the pattern.
|
void | OnUpdate (wxCommandEvent &WXUNUSED(event)) |
| Update the powder spectrum, at the user's request.
|
void | SetPattern (const CrystVector_REAL &obs, const CrystVector_REAL &calc, const REAL tthetaMin, const REAL tthetaStep, const CrystVector_REAL &sigma, const CrystVector_REAL &chi2Cumul) |
| Update the pattern.
|
void | SetPattern (const CrystVector_REAL &x, const CrystVector_REAL &obs, const CrystVector_REAL &calc, const CrystVector_REAL &sigma, const CrystVector_REAL &chi2Cumul) |
| Update the pattern.
|
void | OnRedrawNewPattern (wxUpdateUIEvent &WXUNUSED(event)) |
| Redraw the pattern (special function to ensure complete redrawing under windows...).
|
void | OnToggleLabel (wxCommandEvent &WXUNUSED(event)) |
void | OnFindPeaks (wxCommandEvent &WXUNUSED(event)) |
void | OnKeyDown (wxKeyEvent &event) |
void | OnSize (wxSizeEvent &event) |
Private Member Functions |
void | ResetAxisLimits () |
| Reset the limits of the axis to full range.
|
long | Data2ScreenX (const REAL x) const |
| Convert X data (2theta) coordinate to screen coordinate (pixel).
|
long | Point2ScreenX (const long x) const |
| Convert X data (as data point index) to screen coordinate (pixel).
|
long | Data2ScreenY (const REAL y) const |
| Convert Y data (intensity) coordinate to screen coordinate (pixel).
|
REAL | Screen2DataX (const long x) const |
| Convert X screen coordinate (pixel) to data (2theta) coordinate.
|
REAL | Screen2DataY (const long y) const |
| Convert Y screen coordinate (pixel) to data (intensity) coordinate.
|
Private Attributes |
WXPowderPattern * | mpPattern |
CrystVector_REAL | mX |
| Data vectors (Note that when x coordinates are 2theta, they are stored in degrees here).
|
CrystVector_REAL | mObs |
| Data vectors (Note that when x coordinates are 2theta, they are stored in degrees here).
|
CrystVector_REAL | mCalc |
| Data vectors (Note that when x coordinates are 2theta, they are stored in degrees here).
|
CrystVector_REAL | m2theta |
| Data vectors (Note that when x coordinates are 2theta, they are stored in degrees here).
|
CrystVector_REAL | mSigma |
| Data vectors (Note that when x coordinates are 2theta, they are stored in degrees here).
|
CrystVector_REAL | mChi2Cumul |
| Data vectors (Note that when x coordinates are 2theta, they are stored in degrees here).
|
const long | mMargin |
const REAL | mDiffPercentShift |
REAL | mMaxIntensity |
REAL | mMinIntensity |
REAL | mMinX |
REAL | mMaxX |
wxFrame * | mpParentFrame |
CrystMutex | mMutex |
| Mutex to lock the pattern and associated data.
|
wxMenu * | mpPopUpMenu |
| Pop-up menu.
|
bool | mIsDragging |
| Are we within a dragging event ?
|
REAL | mDraggingX0 |
| Remember coordinates at the beginning of the dragging.
|
REAL | mDraggingIntensity0 |
| Remember coordinates at the beginning of the dragging.
|
RefinableObjClock | mClockAxisLimits |
| Clock corresponding to when the graph limits where last changed.
|
bool | mDisplayLabel |
| Display labels ?
|
list< list< pair< const REAL,
const string > > > | mvLabelList |
| The lists of labels for all components of the powder pattern.
|
So far only displays calc and obs patterns.