IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
InOutImageZStripColor3d.h
1 // InOutImageZStripColor3d.h:
3 // --------------------------
4 //
14 
15 #ifndef __IPSDKIMAGE_INOUTIMAGEZSTRIPCOLOR3D_H__
16 #define __IPSDKIMAGE_INOUTIMAGEZSTRIPCOLOR3D_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 in/out 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 
61  BoolResult readFromImage() const;
62 
71  BoolResult writeToImage();
73 
79  HybridBuffer& getBuffer(const ipUInt64 cPlanIdx, const ipUInt64 zPlanIdx);
80 
81 protected:
87  void init(const ipUInt64 tPlanIdx,
88  const ColorGeometry& colorGeometry,
89  const ipUInt64 stripStartOffsetZ,
90  const ipUInt64 stripSizeZ,
91  const ipUInt64 imageSizeZ,
92  const eStripAllocationType& stripAllocationType,
93  const eStripParsingDirection& stripParsingDirection,
94  const PlanStorageColl2d& colorVolumeColl,
95  const DataIdentifierConstPtr& pImageIdentifier,
96  const DataItemMapConstPtr& pImageHeader);
97 
99  void createSubStrip(const ipUInt64 cPlanIdx,
100  const ipUInt64 tPlanIdx,
101  const ipUInt64 stripStartOffsetZ,
102  const ipUInt64 stripSizeZ,
103  const ipUInt64 imageSizeZ,
104  const eStripAllocationType& stripAllocationType,
105  const eStripParsingDirection& stripParsingDirection,
106  const PlanStorageColl1d& planStorage,
107  const DataIdentifierConstPtr& pImageIdentifier,
108  const DataItemMapConstPtr& pImageHeader,
109  ImageZStrip3dPtr& pImageZStrip3d) const;
110 
111 // attributes
112 protected:
113 
114 };
115 
118 
119 inline HybridBuffer&
121  const ipUInt64 cPlanIdx,
122  const ipUInt64 zPlanIdx)
123 {
124  return accessBuffer(cPlanIdx, zPlanIdx);
125 }
126 
129 
130 } // end of namespace image
131 } // end of namespace ipsdk
132 
133 #endif // __IPSDKIMAGE_INOUTIMAGEZSTRIPCOLOR3D_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: InOutImageZStripColor3d.h:120
#define IPSDK_DECLARE_INOUT_DATA()
macro allowing to declare an in/out data
Definition: DataStatusHdrMacros.h:120
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
Input and output class for color image 3d strip with splitting along Z axis.
Definition: InOutImageZStripColor3d.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