CCaliperParamsComp.h
Go to the documentation of this file.
1 #ifndef iipr_CCaliperParamsComp_included
2 #define iipr_CCaliperParamsComp_included
3 
4 
5 #include "icomp/CComponentBase.h"
6 
7 #include "iipr/CCaliperParams.h"
8 
9 
10 namespace iipr
11 {
12 
13 
15 {
16 public:
18 
19  I_BEGIN_COMPONENT(CCaliperParamsComp);
20  I_REGISTER_INTERFACE(iser::ISerializable);
21  I_REGISTER_INTERFACE(ICaliperParams);
22  I_ASSIGN(m_weightThresholdAttrPtr, "WeightThreshold", "Threshold of edge strength in range (0, 1)", true, 0.1);
23  I_ASSIGN(m_polarityModeAttrPtr, "PolarityMode", "Mode of polarity, 0 - reised, 1 - dropped, 2 - any", true, PM_ALL);
24  I_ASSIGN(m_directionModeAttrPtr, "DirectionMode", "Mode of direction, 0 - forward, 1 - backwards", true, DM_FORWARD);
25  I_END_COMPONENT;
26 
27 protected:
28  // reimplemented (icomp::CComponentBase)
29  virtual void OnComponentCreated();
30 
31 private:
32  I_ATTR(double, m_weightThresholdAttrPtr);
33  I_ATTR(int, m_polarityModeAttrPtr);
34  I_ATTR(int, m_directionModeAttrPtr);
35 };
36 
37 
38 } // namespace iipr
39 
40 
41 #endif // !iipr_CCaliperParamsComp_included
42 
43 
icomp::CComponentBase BaseClass
virtual void OnComponentCreated()
Any polarity will be accepted.

© 2007-2011 Witold Gantzke and Kirill Lepskiy