IPSDK  4_1_0_2
IPSDK : Image Processing Software Development Kit
ImageSegmentInfo.h
1 // ImageSegmentInfo.h:
3 // -------------------
4 //
16 
17 #ifndef __IPSDKIMAGE_IMAGESEGMENTINFO_H__
18 #define __IPSDKIMAGE_IMAGESEGMENTINFO_H__
19 
22 #include <IPSDKUtil/BaseTypes.h>
23 
24 namespace ipsdk {
25 namespace image {
26 
29 
31 {
32 public:
38 
39 // methods
40 public:
44  void init(const ipUInt32 startOffset,
45  const ipUInt32 size);
46 
49  ipUInt32 getStartOffset() const;
50  void setStartOffset(const ipUInt32 startOffset);
52 
55  ipUInt32 getSize() const;
56  void setSize(const ipUInt32 size);
58 
59 // attributes
60 protected:
63 
66 };
67 
70 
71 inline void
72 ImageSegmentInfo::init(const ipUInt32 startOffset,
73  const ipUInt32 size)
74 {
75  _startOffset = startOffset;
76  _size = size;
77 }
78 
79 inline ipUInt32
81 {
82  return _startOffset;
83 }
84 
85 inline void
87 {
88  _startOffset = startOffset;
89 }
90 
91 inline ipUInt32
93 
94 {
95  return _size;
96 }
97 
98 inline void
100 {
101  _size = size;
102 }
103 
106 
107 } // end of namespace image
108 } // end of namespace ipsdk
109 
110 #endif // __IPSDKIMAGE_IMAGESEGMENTINFO_H__
ipUInt32 _size
segment size
Definition: ImageSegmentInfo.h:65
Main namespace for IPSDK library.
Definition: AlgorithmFunctionEfficiency.h:22
Predefined types for image segment info management.
void init(const ipUInt32 startOffset, const ipUInt32 size)
initialize image segment informations
Definition: ImageSegmentInfo.h:72
Base types for multiplatform compatibility.
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
ipUInt32 getSize() const
access to segment size
Definition: ImageSegmentInfo.h:92
void setSize(const ipUInt32 size)
access to segment size
Definition: ImageSegmentInfo.h:99
ipUInt32 _startOffset
segment start offset on associated image axis
Definition: ImageSegmentInfo.h:62
uint32_t ipUInt32
Base types definition.
Definition: BaseTypes.h:53