Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

ObjCryst::WXFieldPar< T > Class Template Reference

A field for a parameter. More...

Inheritance diagram for ObjCryst::WXFieldPar< T >:

ObjCryst::WXFieldParBase ObjCryst::WXField ObjCryst::WXCrystObjBasic List of all members.

Public Methods

 WXFieldPar (wxWindow *parent, const string &label, const int field_id, T *par, const int hsize=50)
 Constructor.

virtual void CrystUpdate ()
 This gets a new value from the parameter.

virtual void UpdateUI ()
 Update the User Interface, if necessary.

virtual void Revert ()
 After a user entry, this allows to go back to the last value, if for some reason the entry was rejected (because the object is currently busy, ...).

void SetHumanValueScale (const T s)
 Set Coefficient between the value used by ObjCryst++ and the one to be displayed to the user.


Protected Methods

virtual void ReadNewValue ()
 Reads the new value when the Enter key is hit.


Protected Attributes

T * mpValue
 A pointer to the value displayed.

mValue
 The value displayed.

mValueOld
 Last value.

mHumanScale
 Coefficient between the value used by ObjCryst++ and the one to be displayed to the user.


Detailed Description

template<class T>
class ObjCryst::WXFieldPar< T >

A field for a parameter.

Template version. If the parameter is a RefinablePar, use WXFieldRefPar instead.


Member Function Documentation

template<class T>
void ObjCryst::WXFieldPar< T >::SetHumanValueScale const T    s
 

Set Coefficient between the value used by ObjCryst++ and the one to be displayed to the user.

Typically, 180/pi


Member Data Documentation

template<class T>
T ObjCryst::WXFieldPar< T >::mHumanScale [protected]
 

Coefficient between the value used by ObjCryst++ and the one to be displayed to the user.

Typically, 180/pi


The documentation for this class was generated from the following file:
Generated on Wed Jun 25 23:26:31 2003 for ObjCryst++ by doxygen1.2.18