FOX/ObjCryst++  1.10.X (development)
wxDiffractionSingleCrystal.h
1 /* ObjCryst++ Object-Oriented Crystallographic Library
2  (c) 2000-2002 Vincent Favre-Nicolin vincefn@users.sourceforge.net
3  2000-2001 University of Geneva (Switzerland)
4 
5  This program is free software; you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation; either version 2 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program; if not, write to the Free Software
17  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18 */
19 
20 #ifndef _VFN_WX_DIFFRACTIONSINGLECRYSTAL_H_
21 #define _VFN_WX_DIFFRACTIONSINGLECRYSTAL_H_
22 
23 #include "ObjCryst/ObjCryst/DiffractionDataSingleCrystal.h"
24 #include "ObjCryst/wxCryst/wxRefinableObj.h"
25 #include "ObjCryst/wxCryst/wxMultiGraph.h"
26 namespace ObjCryst
27 {
28 
34 {
35  public:
37  virtual void CrystUpdate(const bool updateUI=false,const bool mutexlock=false);
38  virtual void UpdateUI(const bool mutexlock=false);
40  void NotifyDeleteGraph();
41  private:
42  void OnMenuSimulate(wxCommandEvent & WXUNUSED(event));
43  void OnMenuImport(wxCommandEvent & event);
44  void OnMenuSaveHKLIobsIcalc(wxCommandEvent & WXUNUSED(event));
45  void OnMenuSaveHKLFcalc(wxCommandEvent & WXUNUSED(event));
46  void OnMenuSetWavelength(wxCommandEvent &event);
47  void OnMenuShowGraph(wxCommandEvent &event);
48  void OnChangeCrystal(wxCommandEvent & WXUNUSED(event));
49  WXFieldChoice* mpFieldCrystal;
51  // Store statistics for display
52  REAL mChi2;
53  REAL mGoF;
54  REAL mRwp;
55  REAL mRp;
56  WXMultiGraph *mpGraph;
57  unsigned long mGrapIdObs;
58  unsigned long mGrapIdCalc;
60  valarray<float> mIobs,mIcalc,mX;
61  DECLARE_EVENT_TABLE()
62 };
63 
64 }//namespace
65 #endif
valarray< float > mIobs
Copy of the data for graph display.
Class to pick one choice...
Definition: wxCryst.h:482
DiffractionData object for Single Crystal analysis.
void NotifyDeleteGraph()
For the mpGraph to tell its owner it was deleted.
WX Class for DiffractionDataSingleCrystal objects.
The base wxCryst class for all RefinableObj objects.
The namespace which includes all objects (crystallographic and algorithmic) in ObjCryst++.
Definition: Atom.cpp:47
virtual void CrystUpdate(const bool updateUI=false, const bool mutexlock=false)
Get new values to be displayed from the underlying object, and raise flag if an UI update is necessar...
virtual void UpdateUI(const bool mutexlock=false)
Update the User Interface, if necessary.