Public Types | Public Member Functions | List of all members
imeas::INumericValue Class Referenceabstract

General parameter set containing list of numeric values. More...

#include <INumericValue.h>

Inheritance diagram for imeas::INumericValue:
iser::ISerializable istd::IChangeable istd::IPolymorphic imeas::CGeneralNumericValue imeas::CLinearAdjustParamsComp imeas::CSimpleNumericValue iipr::CCaliperFeature iipr::TWeightedFeatureWrap< BaseObject > imeas::CNumericParamsComp iipr::TWeightedFeatureWrap< i2d::CLine2d > iipr::TWeightedFeatureWrap< i2d::CPosition2d > iipr::CCaliperDistanceFeature iipr::CObjectFeature ibarcode::CBarcodeSearchFeature iblob::CBlobFeature iipr::CSearchFeature

Public Types

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

virtual bool IsValueTypeSupported (ValueTypeId valueTypeId) const =0
 Check if the given value type (or value component) is supported. More...
 
virtual const INumericConstraintsGetNumericConstraints () const =0
 Get parameter constraints describing possible parameter values. More...
 
virtual imath::CVarVector GetComponentValue (ValueTypeId valueTypeId) const =0
 Get access to component value of the given type. More...
 
virtual imath::CVarVector GetValues () const =0
 Get list of numeric values. More...
 
virtual bool SetValues (const imath::CVarVector &values)=0
 Set list of numeric values. More...
 

Detailed Description

General parameter set containing list of numeric values.

Definition at line 20 of file INumericValue.h.

Member Enumeration Documentation

Define standard numeric value types.

Enumerator
VTI_AUTO 

Automatic value, implementation specific.

VTI_WEIGHT 

Weight of some value This value should be normalized to range [0, 1].

VTI_POSITION 

Value of position (can be N-dimensional).

VTI_RADIUS 

Value of radius.

VTI_SCALE 

Scaling factor(s).

VTI_ANGLE 

Angle in radian.

VTI_ALPHA 

Alpha value (proportion).

VTI_LENGTH 

Length or distance.

VTI_2D_TRANSFORM 

2D-transformation, given in the form (m11, m21, m12, m22, dx, dy)

VTI_2D_LINE 

Line in 2D-space given in the form (x1, y1, x2, y2)

Definition at line 26 of file INumericValue.h.

Member Function Documentation

virtual imath::CVarVector imeas::INumericValue::GetComponentValue ( ValueTypeId  valueTypeId) const
pure virtual
virtual const INumericConstraints* imeas::INumericValue::GetNumericConstraints ( ) const
pure virtual

Get parameter constraints describing possible parameter values.

Implemented in imeas::CLinearAdjustParamsComp, imeas::CNumericParamsComp, imeas::CGeneralNumericValue, and imeas::CSimpleNumericValue.

virtual imath::CVarVector imeas::INumericValue::GetValues ( ) const
pure virtual
virtual bool imeas::INumericValue::IsValueTypeSupported ( ValueTypeId  valueTypeId) const
pure virtual
virtual bool imeas::INumericValue::SetValues ( const imath::CVarVector values)
pure virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy