CSearchFeature.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // ACF-Solutions includes
5 #include <iipr/CObjectFeature.h>
6 
7 
8 namespace iipr
9 {
10 
11 
16 {
17 public:
19 
21 
23  double weight,
24  const i2d::CVector2d& position,
25  double angle,
26  const i2d::CVector2d& scale,
27  bool negativeModel = false,
28  int index = -1,
29  const QByteArray& objectId = QByteArray());
30 
31  int GetIndex() const;
32  bool IsNegativeModelEnabled() const;
33  void SetNegativeModelEnabled(bool enable);
34 
35  // reimplemented (iser::ISerializable)
36  virtual bool Serialize(iser::IArchive& archive);
37 
38  // reimplemented (istd::IChangeable)
39  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
40  virtual istd::IChangeable* CloneMe(CompatibilityMode mode = CM_WITHOUT_REFS) const;
41 
42 private:
43  int m_index;
44  bool m_isNegativeModelEnabled;
45 };
46 
47 
48 } // namespace iipr
49 
50 
virtual bool Serialize(iser::IArchive &archive)
int GetIndex() const
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
void SetNegativeModelEnabled(bool enable)
CObjectFeature BaseClass
bool IsNegativeModelEnabled() const
Implementation of a general image object feature.
virtual istd::IChangeable * CloneMe(CompatibilityMode mode=CM_WITHOUT_REFS) const
Implementation of the pattern search feature.

© 2007-2017 Witold Gantzke and Kirill Lepskiy