Public Member Functions | Protected Attributes | List of all members
imeas::CSimpleNumericValue Class Reference

Basic implementation of imeas::INumericValue interface. More...

#include <CSimpleNumericValue.h>

Inheritance diagram for imeas::CSimpleNumericValue:
imeas::INumericValue iser::ISerializable istd::IChangeable istd::IPolymorphic iipr::CCaliperFeature iipr::TWeightedFeatureWrap< BaseObject > imeas::CNumericParamsComp imeas::CNumericValuesJoinerComp iipr::TWeightedFeatureWrap< i2d::CLine2d > iipr::TWeightedFeatureWrap< i2d::CPosition2d > iipr::CCaliperDistanceFeature iipr::CSearchFeature

Public Member Functions

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)
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 

Protected Attributes

imath::CVarVector m_values
 

Additional Inherited Members

- 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...
 

Detailed Description

Basic implementation of imeas::INumericValue interface.

Definition at line 19 of file CSimpleNumericValue.h.

Member Function Documentation

virtual bool imeas::CSimpleNumericValue::CopyFrom ( const IChangeable &  object,
CompatibilityMode  mode = CM_WITHOUT_REFS 
)
virtual
virtual imath::CVarVector imeas::CSimpleNumericValue::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.

Reimplemented in iipr::CSearchFeature, imeas::CNumericValuesJoinerComp, iipr::CCaliperFeature, and iipr::CCaliperDistanceFeature.

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

Get parameter constraints describing possible parameter values.

Implements imeas::INumericValue.

Reimplemented in imeas::CNumericParamsComp.

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

Get list of numeric values.

Implements imeas::INumericValue.

virtual bool imeas::CSimpleNumericValue::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.

Reimplemented in iipr::CSearchFeature, imeas::CNumericValuesJoinerComp, iipr::CCaliperFeature, and iipr::CCaliperDistanceFeature.

virtual bool imeas::CSimpleNumericValue::Serialize ( iser::IArchive archive)
virtual
virtual bool imeas::CSimpleNumericValue::SetValues ( const imath::CVarVector values)
virtual

Set list of numeric values.

Implements imeas::INumericValue.

Member Data Documentation

imath::CVarVector imeas::CSimpleNumericValue::m_values
protected

Definition at line 36 of file CSimpleNumericValue.h.


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

© 2007-2011 Witold Gantzke and Kirill Lepskiy