#include <BaseTypedInControl.hxx>
Typed in controls base interface with some specific services for float ones.
Definition at line 16 of file BaseTypedInControl.hxx.
Public Member Functions | |
BaseTypedInControl (const std::string &name, Processing *proc=0) | |
virtual | ~BaseTypedInControl () |
virtual const std::type_info & | ControlType () const =0 |
const std::string & | GetName () const |
Processing * | GetProcessing () const |
Float specific services | |
bool | IsBounded () const |
float | UpperBound () const |
float | LowerBound () const |
float | DefaultValue () const |
Returns the bounds mean or the value set with SetDefaultValue() if its the case. | |
void | SetDefaultValue (float val) |
void | SetBounds (float lower, float upper) |
Protected Attributes | |
float | mDefaultValue |
float | mUpperBound |
float | mLowerBound |
bool | mBounded |
bool | mHasDefaultValue |
CLAM::BaseTypedInControl::BaseTypedInControl | ( | const std::string & | name, | |
Processing * | proc = 0 | |||
) |
Definition at line 6 of file BaseTypedInControl.cxx.
References CLAM::Processing::RegisterTypedInControl().
CLAM::BaseTypedInControl::~BaseTypedInControl | ( | ) | [virtual] |
Definition at line 17 of file BaseTypedInControl.cxx.
References CLAM::Processing::GetTypedInControls(), and CLAM::TypedInControlRegistry::ProcessingInterface_Unregister().
virtual const std::type_info& CLAM::BaseTypedInControl::ControlType | ( | ) | const [pure virtual] |
Implemented in CLAM::TypedInControl< TypedControlData >.
Referenced by CLAM::TypedOutControl< TypedControlData >::IsLinkable().
const std::string& CLAM::BaseTypedInControl::GetName | ( | ) | const [inline] |
Definition at line 30 of file BaseTypedInControl.hxx.
Processing* CLAM::BaseTypedInControl::GetProcessing | ( | ) | const [inline] |
Definition at line 31 of file BaseTypedInControl.hxx.
bool CLAM::BaseTypedInControl::IsBounded | ( | ) | const |
float CLAM::BaseTypedInControl::UpperBound | ( | ) | const |
float CLAM::BaseTypedInControl::LowerBound | ( | ) | const |
float CLAM::BaseTypedInControl::DefaultValue | ( | ) | const |
Returns the bounds mean or the value set with SetDefaultValue() if its the case.
Definition at line 45 of file BaseTypedInControl.cxx.
References mDefaultValue, mHasDefaultValue, mLowerBound, and mUpperBound.
void CLAM::BaseTypedInControl::SetDefaultValue | ( | float | val | ) |
Definition at line 40 of file BaseTypedInControl.cxx.
References mDefaultValue, and mHasDefaultValue.
Definition at line 34 of file BaseTypedInControl.cxx.
References mBounded, mLowerBound, and mUpperBound.
float CLAM::BaseTypedInControl::mDefaultValue [protected] |
Definition at line 20 of file BaseTypedInControl.hxx.
Referenced by DefaultValue(), and SetDefaultValue().
float CLAM::BaseTypedInControl::mUpperBound [protected] |
Definition at line 21 of file BaseTypedInControl.hxx.
Referenced by DefaultValue(), SetBounds(), and UpperBound().
float CLAM::BaseTypedInControl::mLowerBound [protected] |
Definition at line 22 of file BaseTypedInControl.hxx.
Referenced by DefaultValue(), LowerBound(), and SetBounds().
bool CLAM::BaseTypedInControl::mBounded [protected] |
bool CLAM::BaseTypedInControl::mHasDefaultValue [protected] |
Definition at line 24 of file BaseTypedInControl.hxx.
Referenced by DefaultValue(), and SetDefaultValue().