IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
OutputImageZStripColor3d.h
1 // OutputImageZStripColor3d.h:
3 // ---------------------------
4 //
14 
15 #ifndef __IPSDKIMAGE_OUTPUTIMAGEZSTRIPCOLOR3D_H__
16 #define __IPSDKIMAGE_OUTPUTIMAGEZSTRIPCOLOR3D_H__
17 
18 #include <IPSDKImage/Fragment/Strip/ZStripColor3d/BaseImageZStripColor3d.h>
19 
20 namespace ipsdk {
21 namespace image {
22 
25 
27 {
28  // declare serial class
30 
31  // declare output data
33 
34  // friend class for protected members access
35  friend struct ImageStripExtractor;
36 
37 // predefined public types
38 public:
39  // Image support type
40  typedef BaseImage ImageType;
41 
42 public:
48 
49 // methods
50 public:
51  //-----------------------------------
54  //-----------------------------------
55 
63  BoolResult writeToImage();
65 
71  HybridBuffer& getBuffer(const ipUInt64 cPlanIdx, const ipUInt64 zPlanIdx);
72 
73 protected:
77  void init(const ipUInt64 tPlanIdx,
78  const ColorGeometry& colorGeometry,
79  const ipUInt64 stripStartOffsetZ,
80  const ipUInt64 stripSizeZ,
81  const ipUInt64 imageSizeZ,
82  const eStripAllocationType& stripAllocationType,
83  const eStripParsingDirection& stripParsingDirection,
84  const PlanStorageColl2d& colorVolumeColl,
85  const DataIdentifierConstPtr& pImageIdentifier,
86  const DataItemMapConstPtr& pImageHeader);
87 
89  void createSubStrip(const ipUInt64 cPlanIdx,
90  const ipUInt64 tPlanIdx,
91  const ipUInt64 stripStartOffsetZ,
92  const ipUInt64 stripSizeZ,
93  const ipUInt64 imageSizeZ,
94  const eStripAllocationType& stripAllocationType,
95  const eStripParsingDirection& stripParsingDirection,
96  const PlanStorageColl1d& planStorageColl,
97  const DataIdentifierConstPtr& pImageIdentifier,
98  const DataItemMapConstPtr& pImageHeader,
99  ImageZStrip3dPtr& pImageZStrip3d) const;
100 
101 // attributes
102 protected:
103 
104 };
105 
108 
109 inline HybridBuffer&
111  const ipUInt64 cPlanIdx,
112  const ipUInt64 zPlanIdx)
113 {
114  return accessBuffer(cPlanIdx, zPlanIdx);
115 }
116 
119 
120 } // end of namespace image
121 } // end of namespace ipsdk
122 
123 #endif // __IPSDKIMAGE_OUTPUTIMAGEZSTRIPCOLOR3D_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
boost::shared_ptr< BaseImageZStrip3d > ImageZStrip3dPtr
Definition: ImageStripTypes.h:147
std::vector< PlanStorageColl1d > PlanStorageColl2d
Definition: ImageTypes.h:190
HybridBuffer & getBuffer(const ipUInt64 cPlanIdx, const ipUInt64 zPlanIdx)
retrieve strip full buffer
Definition: OutputImageZStripColor3d.h:110
#define IPSDK_DECLARE_OUTPUT_DATA()
macro allowing to declare an output data
Definition: DataStatusHdrMacros.h:113
eStripAllocationType
Enumerate describing image strip allocation policy.
Definition: ImageStripTypes.h:88
#define IPSDK_DECLARE_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:79
Structure used to extract image strips from an image.
Definition: ImageStripExtractor.h:31
boost::shared_ptr< const DataItemMap > DataItemMapConstPtr
shared pointer to const DataItemMap
Definition: DataItemTypes.h:170
#define IPSDKIMAGE_API
Import/Export macro for library IPSDKImage.
Definition: IPSDKImageExports.h:27
eStripParsingDirection
Enumerate describing strip parsing direction.
Definition: ImageStripTypes.h:72
Class encapsulating color geometryThis class allows to define geometry color size and type (grey...
Definition: ColorGeometry.h:35
boost::shared_ptr< const DataIdentifier > DataIdentifierConstPtr
shared pointer to const data identifier
Definition: DataIdentifierTypes.h:31
Class allowing to encapsulate an hybrid form of buffer.
Definition: HybridBuffer.h:52
std::vector< PlanStoragePtr > PlanStorageColl1d
Definition: ImageTypes.h:184
Base class for images data type.
Definition: BaseImage.h:43
Output class for color image 3d strip with splitting along Z axis.
Definition: OutputImageZStripColor3d.h:26
Base class for color image 3d strip with splitting along Z axis.
Definition: BaseImageZStripColor3d.h:33
const HybridBuffer & accessBuffer(const ipUInt64 cPlanIdx, const ipUInt64 zPlanIdx) const
access to strip full buffer