Public Types | Public Member Functions | Protected Attributes | List of all members
iipr::TWeightedFeatureWrap< BaseObject > Class Template Reference

Wrapper allowing to create feature object from some another serializable one. More...

#include <TWeightedFeatureWrap.h>

Inheritance diagram for iipr::TWeightedFeatureWrap< BaseObject >:
imeas::CSimpleNumericValue imeas::INumericValue iser::ISerializable istd::IChangeable istd::IPolymorphic

Public Types

typedef imeas::CSimpleNumericValue BaseClass
 
typedef BaseObject BaseClass2
 
- 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

 TWeightedFeatureWrap (double weight=1.0)
 
double GetWeight () const
 
void SetWeight (double weight)
 
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)
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 
- 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...
 

Protected Attributes

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

Detailed Description

template<class BaseObject>
class iipr::TWeightedFeatureWrap< BaseObject >

Wrapper allowing to create feature object from some another serializable one.

Definition at line 20 of file TWeightedFeatureWrap.h.

Member Typedef Documentation

template<class BaseObject>
typedef imeas::CSimpleNumericValue iipr::TWeightedFeatureWrap< BaseObject >::BaseClass

Definition at line 25 of file TWeightedFeatureWrap.h.

template<class BaseObject>
typedef BaseObject iipr::TWeightedFeatureWrap< BaseObject >::BaseClass2

Definition at line 26 of file TWeightedFeatureWrap.h.

Constructor & Destructor Documentation

template<class BaseObject >
iipr::TWeightedFeatureWrap< BaseObject >::TWeightedFeatureWrap ( double  weight = 1.0)

Definition at line 51 of file TWeightedFeatureWrap.h.

Member Function Documentation

template<class BaseObject >
bool iipr::TWeightedFeatureWrap< BaseObject >::CopyFrom ( const IChangeable &  object,
CompatibilityMode  mode = CM_WITHOUT_REFS 
)
virtual
template<class BaseObject >
imath::CVarVector iipr::TWeightedFeatureWrap< BaseObject >::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.

Reimplemented in ibarcode::CBarcodeSearchFeature, iipr::CObjectFeature, and iipr::CCaliperDistanceFeature.

Definition at line 81 of file TWeightedFeatureWrap.h.

template<class BaseObject >
double iipr::TWeightedFeatureWrap< BaseObject >::GetWeight ( ) const
template<class BaseObject >
bool iipr::TWeightedFeatureWrap< BaseObject >::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.

Reimplemented in ibarcode::CBarcodeSearchFeature, iipr::CObjectFeature, and iipr::CCaliperDistanceFeature.

Definition at line 74 of file TWeightedFeatureWrap.h.

template<class BaseObject >
bool iipr::TWeightedFeatureWrap< BaseObject >::Serialize ( iser::IArchive archive)
virtual
template<class BaseObject >
void iipr::TWeightedFeatureWrap< BaseObject >::SetWeight ( double  weight)

Definition at line 65 of file TWeightedFeatureWrap.h.

Member Data Documentation

template<class BaseObject>
double iipr::TWeightedFeatureWrap< BaseObject >::m_weight
protected

Definition at line 44 of file TWeightedFeatureWrap.h.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy