IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
OutputImageZStrip3d.h
1 // OutputImageZStrip3d.h:
3 // ----------------------
4 //
14 
15 #ifndef __IPSDKIMAGE_OUTPUTIMAGEZSTRIP3D_H__
16 #define __IPSDKIMAGE_OUTPUTIMAGEZSTRIP3D_H__
17 
18 #include <IPSDKImage/Fragment/Strip/ZStrip3d/BaseImageZStrip3d.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  // Input storage type associated to strip
43  typedef PlanStorageColl1d InputStorageType;
44 
45 public:
51 
52 // methods
53 public:
54  //-----------------------------------
57  //-----------------------------------
58 
67  BoolResult writeToImage();
69 
75  HybridBuffer& getBuffer(const ipUInt64 zPlanIdx);
76 
77 protected:
85  void init(const ipUInt64 cPlanIdx,
86  const ipUInt64 tPlanIdx,
87  const ipUInt64 stripStartOffsetZ,
88  const ipUInt64 stripSizeZ,
89  const ipUInt64 imageSizeZ,
90  const eStripAllocationType& stripAllocationType,
91  const eStripParsingDirection& stripParsingDirection,
92  const PlanStorageColl1d& volumeColl,
93  const DataIdentifierConstPtr& pImageIdentifier,
94  const DataItemMapConstPtr& pImageHeader);
95 
97  void createSubStrip(const ipUInt64 zPlanIdx,
98  const ipUInt64 cPlanIdx,
99  const ipUInt64 tPlanIdx,
100  const eStripAllocationType& stripAllocationType,
101  const eStripParsingDirection& stripParsingDirection,
102  const PlanStoragePtr& pPlanStorage,
103  const DataIdentifierConstPtr& pImageIdentifier,
104  const DataItemMapConstPtr& pImageHeader,
105  ImageYStrip2dPtr& pImageYStrip2d) const;
106 
107 // attributes
108 protected:
109 
110 };
111 
114 
115 inline HybridBuffer&
117 {
118  return accessBuffer(zPlanIdx);
119 }
120 
123 
124 } // end of namespace image
125 } // end of namespace ipsdk
126 
127 #endif // __IPSDKIMAGE_OUTPUTIMAGEZSTRIP3D_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
#define IPSDK_DECLARE_OUTPUT_DATA()
macro allowing to declare an output data
Definition: DataStatusHdrMacros.h:113
HybridBuffer & getBuffer(const ipUInt64 zPlanIdx)
retrieve strip full buffer
Definition: OutputImageZStrip3d.h:116
eStripAllocationType
Enumerate describing image strip allocation policy.
Definition: ImageStripTypes.h:88
Output class for image 3d strip with splitting along Z axis.
Definition: OutputImageZStrip3d.h:26
#define IPSDK_DECLARE_SERIAL_WITHOUT_COPY(libraryName, className)
macro enabling serialization on class
Definition: SerializationHdrMacro.h:79
Base class for image 3d strip with splitting along Z axis.
Definition: BaseImageZStrip3d.h:34
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
boost::shared_ptr< BasePlanStorage > PlanStoragePtr
shared pointer to image plan storage
Definition: PlanStorageTypes.h:55
eStripParsingDirection
Enumerate describing strip parsing direction.
Definition: ImageStripTypes.h:72
boost::shared_ptr< const DataIdentifier > DataIdentifierConstPtr
shared pointer to const data identifier
Definition: DataIdentifierTypes.h:31
const HybridBuffer & accessBuffer(const ipUInt64 zPlanIdx) const
access to strip full buffer
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
boost::shared_ptr< BaseImageYStrip2d > ImageYStrip2dPtr
Definition: ImageStripTypes.h:117