Public Types | Public Member Functions | List of all members
ibarcode::CBarcodeSearchFeature Class Reference

Implementation of the barcode feature. More...

#include <CBarcodeSearchFeature.h>

Inheritance diagram for ibarcode::CBarcodeSearchFeature:
iipr::CObjectFeature ibarcode::CBarcode iipr::TWeightedFeatureWrap< i2d::CPosition2d > ibarcode::IBarcode imeas::CSimpleNumericValue i2d::CPosition2d iser::ISerializable imeas::INumericValue i2d::CObject2dBase istd::IChangeable iser::ISerializable i2d::IObject2d istd::IPolymorphic istd::IChangeable iser::IObject i2d::ICalibrationProvider istd::IPolymorphic iser::ISerializable istd::IChangeable istd::IChangeable istd::IPolymorphic istd::IPolymorphic

Public Types

typedef iipr::CObjectFeature BaseClass
 
typedef CBarcode BaseClass2
 
- Public Types inherited from iipr::CObjectFeature
typedef TWeightedFeatureWrap
< i2d::CPosition2d
BaseClass
 
- Public Types inherited from iipr::TWeightedFeatureWrap< i2d::CPosition2d >
typedef imeas::CSimpleNumericValue BaseClass
 
typedef i2d::CPosition2d 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 Types inherited from ibarcode::IBarcode
enum  BarcodeType {
  BT_UNKNOWN, BT_CODABAR, BT_EAN_8, BT_EAN_13,
  BT_CODE_128, BT_CODE_39, BT_CODE_93, BT_INTERLEAVED_2_5,
  BT_PDF_417, BT_DATAMATRIX, BT_QR
}
 Supported barcode types. More...
 

Public Member Functions

 CBarcodeSearchFeature (ibarcode::IBarcode::BarcodeType barcodeType=BT_UNKNOWN, const QString &barcodeData=QString(), const i2d::CPolygon &barcodeArea=i2d::CPolygon(), bool isChecksumValid=false, double weight=0.0, const i2d::CVector2d &position=i2d::CVector2d(0, 0), double angle=0.0, const i2d::CVector2d &scale=i2d::CVector2d(1.0, 1.0))
 
virtual bool IsBarcodeValid () const
 
virtual void ResetBarcode ()
 
virtual i2d::CPolygon GetBarcodeArea () const
 
virtual void SetBarcodeArea (const i2d::CPolygon &barcodeArea)
 
virtual bool IsCheckSumValid () const
 
virtual void SetCheckSumValid (bool isCheckSumValid=true)
 
virtual int GetValidSymbolCount () const
 
virtual void SetValidSymbolCount (int validSymbolCount)
 
virtual void SetData (const QByteArray &barcodeData)
 
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 iipr::CObjectFeature
 CObjectFeature ()
 
 CObjectFeature (double weight, const i2d::CVector2d &position, double angle=0.0, const i2d::CVector2d &scale=i2d::CVector2d(1.0, 1.0))
 
double GetAngle () const
 
i2d::CVector2d GetScale () const
 
QByteArray GetObjectId () const
 
void SetObjectId (const QByteArray &objectId)
 
const i2d::ITransformation2dGetTransformation () const
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 
virtual istd::IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 
- Public Member Functions inherited from iipr::TWeightedFeatureWrap< i2d::CPosition2d >
 TWeightedFeatureWrap (double weight=1.0)
 
double GetWeight () const
 
void SetWeight (double weight)
 
- 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...
 
- Public Member Functions inherited from i2d::CPosition2d
virtual int GetSupportedOperations () const
 
- Public Member Functions inherited from i2d::CObject2dBase
virtual bool Transform (const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL)
 
virtual bool InvTransform (const ITransformation2d &transformation, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL)
 
virtual bool GetTransformed (const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) const
 
virtual bool GetInvTransformed (const ITransformation2d &transformation, IObject2d &result, ITransformation2d::ExactnessMode mode=ITransformation2d::EM_NONE, double *errorFactorPtr=NULL) const
 
virtual CVector2d GetCenter () const =0
 
virtual void MoveCenterTo (const CVector2d &position)=0
 
virtual CRectangle GetBoundingBox () const =0
 
virtual QByteArray GetFactoryId () const
 
virtual bool Serialize (IArchive &archive)=0
 
- Public Member Functions inherited from i2d::IObject2d
virtual void SetCalibration (const ICalibration2d *calibrationPtr, bool releaseFlag=false)=0
 
- Public Member Functions inherited from i2d::ICalibrationProvider
virtual const ICalibration2dGetCalibration () const =0
 
- Public Member Functions inherited from ibarcode::CBarcode
 CBarcode (int barcodeType=BT_UNKNOWN, const QString &data=QString())
 
 CBarcode (const ibarcode::CBarcode &barcode)
 
virtual CBarcodeoperator= (const CBarcode &barcode)
 
virtual bool operator== (const CBarcode &barcode) const
 
virtual bool operator!= (const CBarcode &barcode) const
 
virtual void SetData (const QString &barcodeData)
 
virtual const QString & GetBarcodeData () const
 Get the data of the barcode. More...
 
virtual int GetBarcodeType () const
 Get the type of the barcode. More...
 
- Public Member Functions inherited from ibarcode::IBarcode
 I_DECLARE_ENUM (BarcodeType, BT_UNKNOWN, BT_CODABAR, BT_EAN_8, BT_EAN_13, BT_CODE_128, BT_CODE_39, BT_CODE_93, BT_INTERLEAVED_2_5, BT_PDF_417, BT_DATAMATRIX, BT_QR)
 

Additional Inherited Members

- Protected Attributes inherited from iipr::TWeightedFeatureWrap< i2d::CPosition2d >
double m_weight
 
- Protected Attributes inherited from imeas::CSimpleNumericValue
imath::CVarVector m_values
 
- Protected Attributes inherited from ibarcode::CBarcode
QString m_barcodeData
 
int m_barcodeType
 

Detailed Description

Implementation of the barcode feature.

This is a output of a barcode search processor.

Definition at line 19 of file CBarcodeSearchFeature.h.

Member Typedef Documentation

Definition at line 22 of file CBarcodeSearchFeature.h.

Definition at line 23 of file CBarcodeSearchFeature.h.

Constructor & Destructor Documentation

ibarcode::CBarcodeSearchFeature::CBarcodeSearchFeature ( ibarcode::IBarcode::BarcodeType  barcodeType = BT_UNKNOWN,
const QString &  barcodeData = QString(),
const i2d::CPolygon barcodeArea = i2d::CPolygon(),
bool  isChecksumValid = false,
double  weight = 0.0,
const i2d::CVector2d position = i2d::CVector2d(0, 0),
double  angle = 0.0,
const i2d::CVector2d scale = i2d::CVector2d(1.0, 1.0) 
)

Member Function Documentation

virtual i2d::CPolygon ibarcode::CBarcodeSearchFeature::GetBarcodeArea ( ) const
virtual
virtual imath::CVarVector ibarcode::CBarcodeSearchFeature::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 iipr::CObjectFeature.

virtual int ibarcode::CBarcodeSearchFeature::GetValidSymbolCount ( ) const
virtual
virtual bool ibarcode::CBarcodeSearchFeature::IsBarcodeValid ( ) const
virtual
virtual bool ibarcode::CBarcodeSearchFeature::IsCheckSumValid ( ) const
virtual
virtual bool ibarcode::CBarcodeSearchFeature::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 iipr::CObjectFeature.

virtual void ibarcode::CBarcodeSearchFeature::ResetBarcode ( )
virtual
virtual bool ibarcode::CBarcodeSearchFeature::Serialize ( iser::IArchive archive)
virtual

Reimplemented from ibarcode::CBarcode.

virtual void ibarcode::CBarcodeSearchFeature::SetBarcodeArea ( const i2d::CPolygon barcodeArea)
virtual
virtual void ibarcode::CBarcodeSearchFeature::SetCheckSumValid ( bool  isCheckSumValid = true)
virtual
virtual void ibarcode::CBarcodeSearchFeature::SetData ( const QByteArray &  barcodeData)
virtual
virtual void ibarcode::CBarcodeSearchFeature::SetValidSymbolCount ( int  validSymbolCount)
virtual

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

© 2007-2017 Witold Gantzke and Kirill Lepskiy