IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ImageRowSegmentInfo.h
1 // ImageRowSegmentInfo.h:
3 // ----------------------
4 //
17 
18 #ifndef __IPSDKIMAGE_IMAGEROWSEGMENTINFO_H__
19 #define __IPSDKIMAGE_IMAGEROWSEGMENTINFO_H__
20 
22 #include <IPSDKImage/Segment/ImageSegmentInfo.h>
23 
24 namespace ipsdk {
25 namespace image {
26 
29 
31 {
32 public:
38 
39 // methods
40 public:
45  void init(const ipUInt32 startOffset,
46  const ipUInt32 size,
47  const ipUInt64 rawStartOffset);
48 
51  ipUInt32 getStartOffset() const;
52  void setStartOffset(const ipUInt32 startOffset);
54 
57  ipUInt32 getSize() const;
58  void setSize(const ipUInt32 size);
60 
63  ipUInt64 getRawStartOffset() const;
64  void setRawStartOffset(const ipUInt64 rawStartOffset);
66 
67 // attributes
68 protected:
71 
74 };
75 
78 
79 inline void
81  const ipUInt32 size,
82  const ipUInt64 rawStartOffset)
83 {
84  _segmentInfo.init(startOffset, size);
85  _rawStartOffset = rawStartOffset;
86 }
87 
88 inline ipUInt32
90 {
92 }
93 
94 inline void
96 {
97  _segmentInfo.setStartOffset(startOffset);
98 }
99 
100 inline ipUInt32
102 
103 {
104  return _segmentInfo.getSize();
105 }
106 
107 inline void
109 {
110  _segmentInfo.setSize(size);
111 }
112 
113 inline ipUInt64
115 {
116  return _rawStartOffset;
117 }
118 
119 inline void
121 {
122  _rawStartOffset = rawStartOffset;
123 }
124 
127 
128 } // end of namespace image
129 } // end of namespace ipsdk
130 
131 #endif // __IPSDKIMAGE_IMAGEROWSEGMENTINFO_H__
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
ipUInt32 getStartOffset() const
access to segment start offset on associated image row
Definition: ImageRowSegmentInfo.h:89
uint64_t ipUInt64
Base types definition.
Definition: BaseTypes.h:55
void setRawStartOffset(const ipUInt64 rawStartOffset)
access to raw data start offset in current plan buffer
Definition: ImageRowSegmentInfo.h:120
ipUInt32 getSize() const
access to segment size
Definition: ImageRowSegmentInfo.h:101
ImageSegmentInfo _segmentInfo
segment start offset and size on associated image row
Definition: ImageRowSegmentInfo.h:70
void setSize(const ipUInt32 size)
access to segment size
Definition: ImageRowSegmentInfo.h:108
void init(const ipUInt32 startOffset, const ipUInt32 size, const ipUInt64 rawStartOffset)
initialize image segment informations
Definition: ImageRowSegmentInfo.h:80
void init(const ipUInt32 startOffset, const ipUInt32 size)
initialize image segment informations
Definition: ImageSegmentInfo.h:72
ipUInt64 getRawStartOffset() const
access to raw data start offset in current plan buffer
Definition: ImageRowSegmentInfo.h:114
void setStartOffset(const ipUInt32 startOffset)
access to segment start offset on associated image row
Definition: ImageRowSegmentInfo.h:95
Class used to store image row segment informations.
Definition: ImageRowSegmentInfo.h:30
Definition of import/export macro for library.
ipUInt32 getStartOffset() const
access to segment start offset on associated image axis
Definition: ImageSegmentInfo.h:80
Class used to store image segment informations.
Definition: ImageSegmentInfo.h:30
void setStartOffset(const ipUInt32 startOffset)
access to segment start offset on associated image axis
Definition: ImageSegmentInfo.h:86
#define IPSDKIMAGE_API
Import/Export macro for library IPSDKImage.
Definition: IPSDKImageExports.h:27
ipUInt64 _rawStartOffset
raw data start offset in current plan buffer
Definition: ImageRowSegmentInfo.h:73
ipUInt32 getSize() const
access to segment size
Definition: ImageSegmentInfo.h:92
void setSize(const ipUInt32 size)
access to segment size
Definition: ImageSegmentInfo.h:99
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53