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

Basic implementation of component of linear adjust parameters. More...

#include <CLinearAdjustParamsComp.h>

Inheritance diagram for imeas::CLinearAdjustParamsComp:
icomp::CComponentBase imeas::ILinearAdjustParams imeas::INumericValue imeas::INumericConstraints icomp::IComponent iser::ISerializable iser::ISerializable istd::IChangeable istd::IPolymorphic istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from imeas::INumericValue
enum  ValueTypeId {
  VTI_AUTO = 0, VTI_WEIGHT, VTI_POSITION, VTI_RADIUS,
  VTI_SCALE, VTI_ANGLE, VTI_ALPHA, VTI_LENGTH,
  VTI_2D_TRANSFORM, VTI_2D_LINE
}
 Define standard numeric value types. More...
 

Public Member Functions

 CLinearAdjustParamsComp ()
 
virtual const
ILinearAdjustConstraints
GetAdjustConstraints () const
 Get access to constraints object. More...
 
virtual double GetScaleFactor () const
 Get value of scale factor. More...
 
virtual void SetScaleFactor (double scale)
 Set value of scale factor. More...
 
virtual double GetOffsetFactor () const
 Get value of offset factor. More...
 
virtual void SetOffsetFactor (double offset)
 Set value of offset factor. More...
 
virtual bool IsValueTypeSupported (ValueTypeId valueTypeId) const
 Check if the given value type (or value component) is supported. More...
 
virtual const INumericConstraintsGetNumericConstraints () const
 Get parameter constraints describing possible parameter values. More...
 
virtual imath::CVarVector GetComponentValue (ValueTypeId valueTypeId) const
 Get access to component value of the given type. More...
 
virtual imath::CVarVector GetValues () const
 Get list of numeric values. More...
 
virtual bool SetValues (const imath::CVarVector &values)
 Set list of numeric values. More...
 
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 const iprm::IOptionsListGetValueListInfo () const
 Get general information about the "content" of the numeric value. More...
 
virtual const imath::IUnitInfoGetNumericValueUnitInfo (int index) const
 Get range of possible numeric values for specified list index. More...
 
virtual void OnComponentCreated ()
 

Detailed Description

Basic implementation of component of linear adjust parameters.

Definition at line 25 of file CLinearAdjustParamsComp.h.

Member Typedef Documentation

Definition at line 32 of file CLinearAdjustParamsComp.h.

Constructor & Destructor Documentation

imeas::CLinearAdjustParamsComp::CLinearAdjustParamsComp ( )

Member Function Documentation

virtual const ILinearAdjustConstraints* imeas::CLinearAdjustParamsComp::GetAdjustConstraints ( ) const
virtual

Get access to constraints object.

This object describes for example range of possible parameter values.

Implements imeas::ILinearAdjustParams.

virtual imath::CVarVector imeas::CLinearAdjustParamsComp::GetComponentValue ( ValueTypeId  valueTypeId) const
virtual

Get access to component value of the given type.

See Also
ValueTypeId
Returns
if data vector cannot be calculated it returns empty vector.

Implements imeas::INumericValue.

virtual const INumericConstraints* imeas::CLinearAdjustParamsComp::GetNumericConstraints ( ) const
virtual

Get parameter constraints describing possible parameter values.

Implements imeas::INumericValue.

virtual const imath::IUnitInfo* imeas::CLinearAdjustParamsComp::GetNumericValueUnitInfo ( int  index) const
protectedvirtual

Get range of possible numeric values for specified list index.

Parameters
indexindex of numeric value.

Implements imeas::INumericConstraints.

virtual double imeas::CLinearAdjustParamsComp::GetOffsetFactor ( ) const
virtual

Get value of offset factor.

Implements imeas::ILinearAdjustParams.

virtual double imeas::CLinearAdjustParamsComp::GetScaleFactor ( ) const
virtual

Get value of scale factor.

Implements imeas::ILinearAdjustParams.

virtual const iprm::IOptionsList& imeas::CLinearAdjustParamsComp::GetValueListInfo ( ) const
protectedvirtual

Get general information about the "content" of the numeric value.

Implements imeas::INumericConstraints.

virtual imath::CVarVector imeas::CLinearAdjustParamsComp::GetValues ( ) const
virtual

Get list of numeric values.

Implements imeas::INumericValue.

virtual bool imeas::CLinearAdjustParamsComp::IsValueTypeSupported ( ValueTypeId  valueTypeId) const
virtual

Check if the given value type (or value component) is supported.

If the value component is supported you can access this via GetComponentValue method.

See Also
GetComponentValue

Implements imeas::INumericValue.

virtual void imeas::CLinearAdjustParamsComp::OnComponentCreated ( )
protectedvirtual
virtual bool imeas::CLinearAdjustParamsComp::Serialize ( iser::IArchive archive)
virtual
virtual void imeas::CLinearAdjustParamsComp::SetOffsetFactor ( double  offset)
virtual

Set value of offset factor.

Implements imeas::ILinearAdjustParams.

virtual void imeas::CLinearAdjustParamsComp::SetScaleFactor ( double  scale)
virtual

Set value of scale factor.

Implements imeas::ILinearAdjustParams.

virtual bool imeas::CLinearAdjustParamsComp::SetValues ( const imath::CVarVector values)
virtual

Set list of numeric values.

Implements imeas::INumericValue.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy