IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
RuleMatchYStripColor2dColorType.h
1 // RuleMatchYStripColor2dColorType.h:
3 // ----------------------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_RULEMATCHYSTRIPCOLOR2DCOLORTYPE_H__
16 #define __IPSDKIMAGEPROCESSING_RULEMATCHYSTRIPCOLOR2DCOLORTYPE_H__
17 
18 // suppression warnings
19 // warning C4251: 'ipsdk::imaproc::RuleMatchYStripColor2dColorType::_colorTypeColl' : class 'std::set<_Kty>' needs to have dll-interface to be used by clients of class 'ipsdk::imaproc::RuleMatchYStripColor2dColorType'
20 #pragma warning (push)
21 #pragma warning (disable : 4251)
22 
23 #include <IPSDKImageProcessing/Rule/Strip/StripProperty/BaseStripPropertyRule.h>
25 #include <set>
26 
27 namespace ipsdk {
28 namespace imaproc {
29 
32 
34 {
35 // predefined public type
36 public:
38  static const eStripPropertyRuleType::domain g_stripPropertyRuleType = eStripPropertyRuleType::eSPRT_MatchYStripColor2dColorType;
39 
40 // predefined public types
41 public:
43  typedef std::set<image::eColorGeometryType> ColorTypeColl;
44 
45 public:
51 
52 // methods
53 public:
55  eStripPropertyRuleType getStripPropertyRuleType() const;
56 
61  void init(const YStripColor2dAttributeConstWeakPtr& pAttribute,
62  const image::eColorGeometryType& colorGeometryType);
63  void init(const YStripColor2dAttributeConstWeakPtr& pAttribute,
64  const image::eColorGeometryType& colorGeometryType1,
65  const image::eColorGeometryType& colorGeometryType2);
66  void init(const YStripColor2dAttributeConstWeakPtr& pAttribute,
67  const image::eColorGeometryType& colorGeometryType1,
68  const image::eColorGeometryType& colorGeometryType2,
69  const image::eColorGeometryType& colorGeometryType3);
70  void init(const YStripColor2dAttributeConstWeakPtr& pAttribute,
71  const image::eColorGeometryType& colorGeometryType1,
72  const image::eColorGeometryType& colorGeometryType2,
73  const image::eColorGeometryType& colorGeometryType3,
74  const image::eColorGeometryType& colorGeometryType4);
75 
77 
80  const ColorTypeColl& getColorTypeColl() const;
81 
82 protected:
84  bool testRule() const;
85 
87  std::string createRuleFormalString() const;
88 
90  std::string createRuleEvaluatedString(const ipUInt32 increment) const;
91 
92 // attributes
93 protected:
96 };
97 
100 
103 {
105 }
106 
109 
110 } // end of namespace imaproc
111 } // end of namespace ipsdk
112 
113 #endif // __IPSDKIMAGEPROCESSING_RULEMATCHYSTRIPCOLOR2DCOLORTYPE_H__
check image y strip color 2d color geometry type
Definition: StripPropertyRuleTypes.h:38
Predefined types for geometry component management.
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eStripPropertyRuleType
enumerate describing image strip property rule operation type
Definition: StripPropertyRuleTypes.h:34
std::set< image::eColorGeometryType > ColorTypeColl
collection of color geometries
Definition: RuleMatchYStripColor2dColorType.h:43
Base class for rules allowing to check property of an image strip attributes.
Definition: BaseStripPropertyRule.h:28
boost::weak_ptr< const BaseYStripColor2dAttribute > YStripColor2dAttributeConstWeakPtr
weak pointer to YStripColor2d attribute
Definition: StripAttributeTypes.h:116
eColorGeometryType
Color geometry type.
Definition: GeometryComponentTypes.h:45
static const eStripPropertyRuleType::domain g_stripPropertyRuleType
image strip property rule type associated to rule
Definition: RuleMatchYStripColor2dColorType.h:38
Rule allowing to check image y strip color 2d color geometry.
Definition: RuleMatchYStripColor2dColorType.h:33
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
ColorTypeColl _colorTypeColl
color geometry collection used for check
Definition: RuleMatchYStripColor2dColorType.h:95
eStripPropertyRuleType getStripPropertyRuleType() const
get image strip property rule type
Definition: RuleMatchYStripColor2dColorType.h:102
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53