Public Types | Public Member Functions | Protected Member Functions | List of all members
imeas::CRelativeUnitSelectorComp Class Reference

Unit info selection for relative values. More...

#include <CRelativeUnitSelectorComp.h>

Inheritance diagram for imeas::CRelativeUnitSelectorComp:
icomp::CComponentBase imath::IUnitInfo iprm::ISelectionParam iprm::IOptionsList icomp::IComponent istd::IPolymorphic iser::ISerializable istd::IChangeable istd::IPolymorphic istd::IChangeable istd::IPolymorphic istd::IPolymorphic

Public Types

enum  DisplayMode { DM_NONE, DM_PERCENT, DM_PERMILLE, DM_LAST_MODE = DM_PERMILLE }
 
typedef icomp::CComponentBase BaseClass
 

Public Member Functions

 I_DECLARE_ENUM (DisplayMode, DM_NONE, DM_PERCENT, DM_PERMILLE)
 
 CRelativeUnitSelectorComp ()
 
virtual const iprm::IOptionsListGetSelectionConstraints () const
 
virtual int GetSelectedOptionIndex () const
 
virtual bool SetSelectedOptionIndex (int index)
 
virtual iprm::ISelectionParamGetSubselection (int index) const
 
virtual int GetOptionsFlags () const
 
virtual int GetOptionsCount () const
 
virtual QString GetOptionName (int index) const
 
virtual QString GetOptionDescription (int index) const
 
virtual QByteArray GetOptionId (int index) const
 
virtual bool IsOptionEnabled (int index) const
 
virtual int GetUnitType () const
 
virtual QString GetUnitName () const
 
virtual double GetDisplayMultiplicationFactor () const
 
virtual istd::CRange GetValueRange () const
 
virtual const imath::IDoubleManipGetValueManip () const
 
virtual int GetPrecision () const
 
virtual bool Serialize (iser::IArchive &archive)
 
- Public Member Functions inherited from icomp::IComponent
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const =0
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
 
virtual const IComponentContextGetComponentContext () const =0
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0
 

Protected Member Functions

virtual void OnComponentCreated ()
 

Detailed Description

Unit info selection for relative values.

Definition at line 23 of file CRelativeUnitSelectorComp.h.

Member Typedef Documentation

Definition at line 30 of file CRelativeUnitSelectorComp.h.

Member Enumeration Documentation

Enumerator
DM_NONE 

No multiplication factor should be used for displaying value.

DM_PERCENT 

Percent should be used for displaying value.

DM_PERMILLE 

Per-mille should be used for displaying value.

DM_LAST_MODE 

Definition at line 32 of file CRelativeUnitSelectorComp.h.

Constructor & Destructor Documentation

imeas::CRelativeUnitSelectorComp::CRelativeUnitSelectorComp ( )

Member Function Documentation

virtual double imeas::CRelativeUnitSelectorComp::GetDisplayMultiplicationFactor ( ) const
virtual

Implements imath::IUnitInfo.

virtual QString imeas::CRelativeUnitSelectorComp::GetOptionDescription ( int  index) const
virtual
virtual QByteArray imeas::CRelativeUnitSelectorComp::GetOptionId ( int  index) const
virtual
virtual QString imeas::CRelativeUnitSelectorComp::GetOptionName ( int  index) const
virtual
virtual int imeas::CRelativeUnitSelectorComp::GetOptionsCount ( ) const
virtual
virtual int imeas::CRelativeUnitSelectorComp::GetOptionsFlags ( ) const
virtual
virtual int imeas::CRelativeUnitSelectorComp::GetPrecision ( ) const
virtual
virtual int imeas::CRelativeUnitSelectorComp::GetSelectedOptionIndex ( ) const
virtual
virtual const iprm::IOptionsList* imeas::CRelativeUnitSelectorComp::GetSelectionConstraints ( ) const
virtual
virtual iprm::ISelectionParam* imeas::CRelativeUnitSelectorComp::GetSubselection ( int  index) const
virtual
virtual QString imeas::CRelativeUnitSelectorComp::GetUnitName ( ) const
virtual

Implements imath::IUnitInfo.

virtual int imeas::CRelativeUnitSelectorComp::GetUnitType ( ) const
virtual

Implements imath::IUnitInfo.

virtual const imath::IDoubleManip& imeas::CRelativeUnitSelectorComp::GetValueManip ( ) const
virtual

Implements imath::IUnitInfo.

virtual istd::CRange imeas::CRelativeUnitSelectorComp::GetValueRange ( ) const
virtual

Implements imath::IUnitInfo.

imeas::CRelativeUnitSelectorComp::I_DECLARE_ENUM ( DisplayMode  ,
DM_NONE  ,
DM_PERCENT  ,
DM_PERMILLE   
)
virtual bool imeas::CRelativeUnitSelectorComp::IsOptionEnabled ( int  index) const
virtual
virtual void imeas::CRelativeUnitSelectorComp::OnComponentCreated ( )
protectedvirtual
virtual bool imeas::CRelativeUnitSelectorComp::Serialize ( iser::IArchive archive)
virtual
virtual bool imeas::CRelativeUnitSelectorComp::SetSelectedOptionIndex ( int  index)
virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy