ObjCryst++  1.5CVS
Public Member Functions | Protected Attributes
ObjCryst::WXMonteCarloObj Class Reference

Class for Graphical interface to Monte-Carlo objects (Simulated Annealing, Parallel Tempering) More...

Inheritance diagram for ObjCryst::WXMonteCarloObj:
ObjCryst::WXOptimizationObj ObjCryst::WXCrystObj ObjCryst::WXCrystObjBasic

List of all members.

Public Member Functions

 WXMonteCarloObj (wxWindow *parent, MonteCarloObj *)
virtual void OnRunOptimization (wxCommandEvent &event)
void UpdateDisplayNbTrial ()
 Called during optimization, to show the user something's still going on...
virtual OptimizationObjGetOptimizationObj ()
virtual const OptimizationObjGetOptimizationObj () const
void OnLSQRefine (wxCommandEvent &event)
- Public Member Functions inherited from ObjCryst::WXOptimizationObj
 WXOptimizationObj (wxWindow *parent, OptimizationObj *)
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 necessary.
virtual bool OnChangeName (const int id)
 When a WXFieldName has been changed by the user, it is handled here.
virtual void OnSave ()
virtual void OnLoad ()
virtual void OnAddRefinedObject (wxCommandEvent &WXUNUSED(event))
 From the menu.
virtual void AddRefinedObject (RefinableObj &obj)
 Added by the library.
virtual void OnRemoveRefinedObject (wxCommandEvent &WXUNUSED(event))
 From the menu.
virtual void OnRunOptimization (wxCommandEvent &WXUNUSED(event))=0
 Launches the optimization run.
virtual void OnStopOptimization (wxCommandEvent &WXUNUSED(event))
virtual void OnUpdateUI (wxUpdateUIEvent &event)
virtual void UpdateUI (const bool mutexlock=false)
 Update the User Interface, if necessary.
virtual void OnBrowseParamSet (wxCommandEvent &WXUNUSED(event))
 Opens a window where the stored parameter set can be selected.
virtual void OnSelectParamSet (wxCommandEvent &WXUNUSED(event))
 Restore one parameter set.
- Public Member Functions inherited from ObjCryst::WXCrystObj
 WXCrystObj (wxWindow *parent, int orient=wxHORIZONTAL, bool showName=true)
 Constructor, with a.
void OnToggleCollapse (wxCommandEvent &WXUNUSED(event))
 Only display the title, and collapse everything else.
virtual void OnEnable (wxUpdateUIEvent &event)
virtual bool Enable (bool enable)
virtual void BottomLayout (WXCrystObjBasic *pChild)
 Ask for a new Layout with recalculated size hints, because a child has been changed or added.
virtual void AddChild (WXCrystObjBasic *pChild, bool doBottomLayout=true)
 Notify that a new children has been added, also adding it to the correct sizer (which can be the top sizer or not).
- Public Member Functions inherited from ObjCryst::WXCrystObjBasic
 WXCrystObjBasic (wxWindow *parent)
 Constructor.
virtual ~WXCrystObjBasic ()
 Destructor.
void AddedToList (WXCrystObjBasicList *list)
void RemovedFromList (WXCrystObjBasicList *list)
virtual bool Layout ()
virtual void SetToolTip (const wxString &tip)
 Set tooltip for this window.

Protected Attributes

MonteCarloObjmpMonteCarloObj
 The algorithm object.
long mNbTrial
 The number of trials asked by the user.
long mNbRun
 The number of cycles.
WXFieldPar< long > * mpWXFieldNbTrial
- Protected Attributes inherited from ObjCryst::WXOptimizationObj
WXCrystMenuBarmpMenuBar
WXGlobalOptimRunThreadmpGlobalOptimRunThread
RefinableObjClock mClockParamSetWindow
 Record when the window giving the list of recorded parameter set was created.
wxListBox * mpwxParamSetList
 Window giving the list of recorded parameter sets.
- Protected Attributes inherited from ObjCryst::WXCrystObj
wxBoxSizer * mpTopSizer
 Top sizer including the title and WXCrystObj::mpSizer.
wxBoxSizer * mpSizer
 Sizer including all sub-objects.
WXFieldNamempWXTitle
 The title.
bool mIsExpanded
 To be used for collapsing the sub-objects.
WXCrystObjBasicList mList
 All windows but the title and collapse button are in this list.
wxButton * mpCollapseButton
 The collapse button.
- Protected Attributes inherited from ObjCryst::WXCrystObjBasic
WXCrystObjBasicmWXCrystParent
 Parent, if a WXCrystObjBasic itself.
bool mIsShown
 Is the the window currently shown ?
bool mNeedUpdateUI
 Do we need to update the display ?
CrystMutex mMutex
 Mutex used to lock data when preparing to update the UI in non-main thread.
std::set< WXCrystObjBasicList * > mvpList
 WXCrystObjBasicList which are aware of this object, and which should be told on destruction.

Detailed Description

Class for Graphical interface to Monte-Carlo objects (Simulated Annealing, Parallel Tempering)


The documentation for this class was generated from the following file: