16 #ifndef __IPSDKIMAGEPROCESSING_GEOMETRY2DMEASURESETSPLIT_H__ 17 #define __IPSDKIMAGEPROCESSING_GEOMETRY2DMEASURESETSPLIT_H__ 19 #include <IPSDKImageProcessing/DataSplit/MeasureSet/BaseGeometry2dMeasureSetSplit.h> 27 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
61 void init(
const boost::shared_ptr<InputDataType>& pMeasureSet,
72 const boost::shared_ptr<InputDataType>& pSubMeasureSet);
82 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
83 inline const std::string&
86 return TAttribute::getObjectNameStr();
89 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
90 inline const std::string&
93 return TAttribute::getToolTipStr();
96 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
102 this->initBase(pMeasureSet, pMeasureSetColl);
105 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
111 "This attribute is not part of processor class");
113 return dynamic_cast<const TProcessor*
>(&processor) != 0;
116 template <
typename TProcessor,
typename InputDataType,
typename TAttribute>
119 const boost::shared_ptr<InputDataType>& pSubMeasureSet)
122 TProcessor& tProcessor =
static_cast<TProcessor&
>(processor);
125 tProcessor.TProcessor::template set<TAttribute>(pSubMeasureSet);
136 #endif // __IPSDKIMAGEPROCESSING_GEOMETRY2DMEASURESETSPLIT_H__ Class allowing to encapsulate a typed process result associated to a string description.
Definition: ProcessingResult.h:28
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
TAttribute::ValueType OutputType
output data type for split operation
Definition: Geometry2dMeasureSetSplit.h:39
boost::shared_ptr< MeasureSetColl > MeasureSetCollPtr
shared pointer to measure set collection
Definition: MeasureSetSplitTypes.h:54
const std::string & getAttributeToolTip() const
retrieve attribute tooltip associated to split operation
Definition: Geometry2dMeasureSetSplit.h:91
Base class for processor class.
Definition: BaseProcessor.h:43
structure allowing to check whether a given attribute exists in attribute collection information ...
Definition: AttributeCollInfoCheckMacros.h:131
Concrete class for split operation generating geometry 2d sub measure set for data dispatch...
Definition: Geometry2dMeasureSetSplit.h:28
BoolResult processAttribute(processor::BaseProcessor &processor, const boost::shared_ptr< InputDataType > &pSubMeasureSet)
initialize processor attribute associate to split operation for a given sub measure set ...
Definition: Geometry2dMeasureSetSplit.h:118
const std::string & getAttributeName() const
retrieve attribute name associated to split operation
Definition: Geometry2dMeasureSetSplit.h:84
Base class for geometry 2d shape measure set split operations for data dispatch.
Definition: BaseGeometry2dMeasureSetSplit.h:28
TProcessor ProcessorType
processor type associated to object
Definition: Geometry2dMeasureSetSplit.h:33
TAttribute AttributeType
attribute type associated to object
Definition: Geometry2dMeasureSetSplit.h:36
bool checkProcessorType(const processor::BaseProcessor &processor)
check processor type in derived class
Definition: Geometry2dMeasureSetSplit.h:107
void init(const boost::shared_ptr< InputDataType > &pMeasureSet, const MeasureSetCollPtr &pMeasureSetColl)
initialization method for splitted objects
Definition: Geometry2dMeasureSetSplit.h:98