IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
Public Types | Public Member Functions | Protected Member Functions | List of all members
ipsdk::imaproc::RuleMatchLeafToImageSize< AttributeType, LeafType > Class Template Reference

Rule class allowing to check that a DataItem leaf value is lower than or equals to image size in given dimension(s) More...

#include <RuleMatchLeafToImageSize.h>

Inheritance diagram for ipsdk::imaproc::RuleMatchLeafToImageSize< AttributeType, LeafType >:
ipsdk::imaproc::BaseRuleMatchScalarToImageSize ipsdk::imaproc::BaseImageBinaryMixedRule ipsdk::imaproc::BaseImageRule ipsdk::imaproc::BaseImageProcessingRule ipsdk::processor::BaseAttributeRule ipsdk::processor::BaseRule

Public Types

typedef AttributeType ValueAttributeType
 Value attribute type.
 
typedef boost::enable_if< typename boost::is_same< boost::mpl::int_< AttributeType::g_attributeType >, boost::mpl::int_< processor::eAttributeType::eAT_DataItem > >::type, typename AttributeType::ValueType >::type DataItemType
 retrieve DataItem node type associated to attribute
 
typedef boost::enable_if< typename boost::is_same< boost::mpl::int_< LeafType::g_itemType >, boost::mpl::int_< eDataItemType::eDIT_Leaf > >::type, typename LeafType::ValueType >::type ValueType
 Value type associated to leaf.
 

Public Member Functions

void init (const eMatchImageSizeType &matchImageSizeType, const eMatchImageSizeScale &matchImageSizeScale, const ImageAttributeConstWeakPtr &pImageAttribute, const boost::weak_ptr< const AttributeType > &pValueAttribute)
 initialization of object More...
 
Constructors and destructors
 RuleMatchLeafToImageSize ()
 
 ~RuleMatchLeafToImageSize ()
 
- Public Member Functions inherited from ipsdk::imaproc::BaseRuleMatchScalarToImageSize
eImageBinaryMixedRuleType getImageBinaryMixedRuleType () const
 retrieve image binary mixed rule operation type
 
 BaseRuleMatchScalarToImageSize ()
 
virtual ~BaseRuleMatchScalarToImageSize ()=0
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageBinaryMixedRule
eImageRuleType getImageRuleType () const
 retrieve image rule operation type
 
 BaseImageBinaryMixedRule ()
 
virtual ~BaseImageBinaryMixedRule ()=0
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageRule
eImageProcessingRuleType getImageProcessingRuleType () const
 retrieve image processing rule operation type
 
 BaseImageRule ()
 
virtual ~BaseImageRule ()=0
 
- Public Member Functions inherited from ipsdk::imaproc::BaseImageProcessingRule
processor::eAttributeRuleType getAttributeRuleType () const
 retrieve attribute rule operation type
 
 BaseImageProcessingRule ()
 
virtual ~BaseImageProcessingRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseAttributeRule
eRuleType getRuleType () const
 retrieve rule type
 
bool hasSecondAttribute () const
 check whether a second attribute is associated to rule More...
 
const BaseAttributegetAttribute1 () const
 retrieve first attribute associated to object More...
 
const BaseAttributegetAttribute2 () const
 retrieve second attribute associated to object More...
 
 BaseAttributeRule ()
 
virtual ~BaseAttributeRule ()=0
 
- Public Member Functions inherited from ipsdk::processor::BaseRule
bool isInit () const
 retrieve object initialization flag
 
BoolResult isSatisfied () const
 test whether rule is satisfied More...
 
std::string getRuleFormalString () const
 retrieve string expliciting rule content More...
 
std::string getRuleEvaluatedString () const
 retrieve rule evaluation string More...
 
 BaseRule ()
 
virtual ~BaseRule ()=0
 

Protected Member Functions

ipReal64 retrieveValue () const
 method allowing to retrieve value associated to attribute leaf in derived class
 
std::string retrieveValueAttributeName () const
 method allowing to retrieve value associated to attribute leaf in derived class
 
- Protected Member Functions inherited from ipsdk::imaproc::BaseRuleMatchScalarToImageSize
void initBase (const ImageAttributeConstWeakPtr &pImageAttribute, const processor::AttributeConstWeakPtr &pValueAttribute)
 base class initialization method
 
- Protected Member Functions inherited from ipsdk::processor::BaseAttributeRule
void initBase (const AttributeConstWeakPtr &pAttribute)
 base class initialization More...
 
void initBase (const AttributeConstWeakPtr &pAttribute1, const AttributeConstWeakPtr &pAttribute2)
 base class initialization More...
 
- Protected Member Functions inherited from ipsdk::processor::BaseRule
void initBase ()
 base class initialization method
 
std::string createRuleEvaluatedStartString (const ipUInt32 increment) const
 method allowing to create a rule evaluation starting string
 

Additional Inherited Members

- Static Public Attributes inherited from ipsdk::imaproc::BaseRuleMatchScalarToImageSize
static const eImageBinaryMixedRuleType::domain g_imageBinaryMixedRuleType = eImageBinaryMixedRuleType::eIBMRT_ImageSize
 image processing rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::imaproc::BaseImageBinaryMixedRule
static const eImageRuleType::domain g_imageRuleType = eImageRuleType::eIRT_ImageBinaryMixed
 image rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::imaproc::BaseImageRule
static const eImageProcessingRuleType::domain g_imageProcessingRuleType = eImageProcessingRuleType::eIPRT_Image
 image processing rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::imaproc::BaseImageProcessingRule
static const processor::eAttributeRuleType::domain g_attributeRuleType = processor::eAttributeRuleType::eART_ImageProcessing
 attribute rule type associated to rule
 
- Static Public Attributes inherited from ipsdk::processor::BaseAttributeRule
static const eRuleType::domain g_ruleType = eRuleType::eRT_Attribute
 rule type associated to rule
 
- Protected Attributes inherited from ipsdk::imaproc::BaseRuleMatchScalarToImageSize
eMatchImageSizeType _matchImageSizeType
 image size coordinates checked
 
eMatchImageSizeScale _matchImageSizeScale
 image size scale checked
 

Detailed Description

template<typename AttributeType, typename LeafType>
class ipsdk::imaproc::RuleMatchLeafToImageSize< AttributeType, LeafType >

Rule class allowing to check that a DataItem leaf value is lower than or equals to image size in given dimension(s)

Author
H. Delestre
Date
2015/06/08

Member Function Documentation

◆ init()

template<typename AttributeType , typename LeafType >
void ipsdk::imaproc::RuleMatchLeafToImageSize< AttributeType, LeafType >::init ( const eMatchImageSizeType matchImageSizeType,
const eMatchImageSizeScale matchImageSizeScale,
const ImageAttributeConstWeakPtr pImageAttribute,
const boost::weak_ptr< const AttributeType > &  pValueAttribute 
)
inline

initialization of object

Exceptions
ipsdk::processor::IPSDKBaseProcessingExceptionif pImageAttribute.get() == 0
ipsdk::processor::IPSDKBaseProcessingExceptionif pValueAttribute.get() == 0

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