IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
BaseLineZStripUserColor3dParser.h
1 // BaseLineZStripUserColor3dParser.h:
3 // ----------------------------------
4 //
14 
15 #ifndef __IPSDKIMAGEPROCESSING_BASELINEZSTRIPUSERCOLOR3DPARSER_H__
16 #define __IPSDKIMAGEPROCESSING_BASELINEZSTRIPUSERCOLOR3DPARSER_H__
17 
18 #include <IPSDKImageProcessing/Algorithm/Parser/Strip/LineZStripColor3d/BaseLineZStripColor3dParser.h>
19 
20 namespace ipsdk {
21 namespace imaproc {
22 
25 
26 template <typename BaseStripAttributeClassType>
28 {
29 public:
33  virtual ~BaseLineZStripUserColor3dParser() = 0;
35 
36 // methods
37 public:
40  {
41  return image::eColorGeometryType::eCGT_User;
42  }
43 
50  template <typename T>
51  typename boost::enable_if<typename boost::mpl::not_equal_to<boost::mpl::int_<BaseLineZStripColor3dParser<BaseStripAttributeClassType>::g_attributeIO>,
52  boost::mpl::int_<eIOStatus::eIOS_Output> >::type,
53  const T*>::type
54  getBuffer(const ipUInt32 cPlanIdx) const
55  {
56  return static_cast<const T*>(this->accessBuffer(cPlanIdx));
57  }
58  template <typename T>
59  typename boost::enable_if<typename boost::mpl::not_equal_to<boost::mpl::int_<BaseLineZStripColor3dParser<BaseStripAttributeClassType>::g_attributeIO>,
60  boost::mpl::int_<eIOStatus::eIOS_Input> >::type,
61  T*>::type
62  getBuffer(const ipUInt32 cPlanIdx)
63  {
64  return static_cast<T*>(this->accessBuffer(cPlanIdx));
65  }
67 
68 // attributes
69 protected:
70 
71 };
72 
75 
76 } // end of namespace imaproc
77 } // end of namespace ipsdk
78 
79 #endif // __IPSDKIMAGEPROCESSING_BASELINEYZTRIPUSERCOLOR3DPARSER_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
eColorGeometryType
Color geometry type.
Definition: GeometryComponentTypes.h:45
#define IPSDKIMAGEPROCESSING_API
Import/Export macro for library IPSDKImageProcessing.
Definition: IPSDKImageProcessingExports.h:25
Base class for line user color z strip 3d parsing.
Definition: BaseLineZStripUserColor3dParser.h:27
image::eColorGeometryType getColorGeometryType() const
retrieve color geometry type associated to derived class
Definition: BaseLineZStripUserColor3dParser.h:39
boost::enable_if< typename boost::mpl::not_equal_to< boost::mpl::int_< BaseLineZStripColor3dParser< BaseStripAttributeClassType >::g_attributeIO >, boost::mpl::int_< eIOStatus::eIOS_Input > >::type, T * >::type getBuffer(const ipUInt32 cPlanIdx)
retrieve buffer associated to current operation
Definition: BaseLineZStripUserColor3dParser.h:62
Base class for color z strip 3d parsed line by line.
Definition: BaseLineZStripColor3dParser.h:43
boost::enable_if< typename boost::mpl::not_equal_to< boost::mpl::int_< BaseLineZStripColor3dParser< BaseStripAttributeClassType >::g_attributeIO >, boost::mpl::int_< eIOStatus::eIOS_Output > >::type, const T * >::type getBuffer(const ipUInt32 cPlanIdx) const
retrieve buffer associated to current operation
Definition: BaseLineZStripUserColor3dParser.h:54
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53