Public Types | Public Member Functions | List of all members
iipr::CCaliperFeature Class Reference

Implementation of INumericValue interface for caliper-extracted features. More...

#include <CCaliperFeature.h>

Inheritance diagram for iipr::CCaliperFeature:
imeas::CSimpleNumericValue imeas::INumericValue iser::ISerializable istd::IChangeable istd::IPolymorphic

Public Types

enum  EdgeMode { EM_FALLING, EM_RISING }
 
typedef imeas::CSimpleNumericValue 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

 CCaliperFeature (double weight, double position, int edgeMode)
 
double GetPosition () const
 
double GetWeight () const
 
int GetEdgeMode () const
 
virtual bool IsValueTypeSupported (ValueTypeId valueTypeId) const
 Check if the given value type (or value component) is supported. More...
 
virtual imath::CVarVector GetComponentValue (ValueTypeId valueTypeId) const
 Get access to component value of the given type. More...
 
virtual bool Serialize (iser::IArchive &archive)
 
- Public Member Functions inherited from imeas::CSimpleNumericValue
virtual const INumericConstraintsGetNumericConstraints () const
 Get parameter constraints describing possible parameter values. 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 CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 

Additional Inherited Members

- Protected Attributes inherited from imeas::CSimpleNumericValue
imath::CVarVector m_values
 

Detailed Description

Implementation of INumericValue interface for caliper-extracted features.

Definition at line 15 of file CCaliperFeature.h.

Member Typedef Documentation

Definition at line 18 of file CCaliperFeature.h.

Member Enumeration Documentation

Enumerator
EM_FALLING 
EM_RISING 

Definition at line 20 of file CCaliperFeature.h.

Constructor & Destructor Documentation

iipr::CCaliperFeature::CCaliperFeature ( double  weight,
double  position,
int  edgeMode 
)

Member Function Documentation

virtual imath::CVarVector iipr::CCaliperFeature::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.

Reimplemented from imeas::CSimpleNumericValue.

int iipr::CCaliperFeature::GetEdgeMode ( ) const
double iipr::CCaliperFeature::GetPosition ( ) const
double iipr::CCaliperFeature::GetWeight ( ) const
virtual bool iipr::CCaliperFeature::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

Reimplemented from imeas::CSimpleNumericValue.

virtual bool iipr::CCaliperFeature::Serialize ( iser::IArchive archive)
virtual

Reimplemented from imeas::CSimpleNumericValue.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy