CVB++ 14.0
components_pointers_3d.hpp
1#pragma once
2
3
4#include <cvb/point_3d.hpp>
5#include <cvb/point_3d_h.hpp>
6#include <cvb/point_3d_c.hpp>
7
8namespace Cvb
9{
10
11CVB_BEGIN_INLINE_NS
12
14
19{
20 friend class PointCloud;
21
22
23public:
24
25 ComponentsPointers3D() = default;
26
28
32 std::uintptr_t BasePtrX() const noexcept
33 {
34 return xBasePtr_;
35 }
36
38
42 std::uintptr_t BasePtrY() const noexcept
43 {
44 return yBasePtr_;
45 }
46
48
52 std::uintptr_t BasePtrZ() const noexcept
53 {
54 return zBasePtr_;
55 }
56
58
62 std::uintptr_t BasePtrW() const noexcept
63 {
64 return wBasePtr_;
65 }
66
68
73 {
74 return confidenceBasePtr_;
75 }
76
78
82 std::intptr_t XInc() const noexcept
83 {
84 return xInc_;
85 }
86
88
92 std::intptr_t YInc() const noexcept
93 {
94 return yInc_;
95 }
96
98
102 std::intptr_t ZInc() const noexcept
103 {
104 return zInc_;
105 }
106
108
112 std::intptr_t WInc() const noexcept
113 {
114 return wInc_;
115 }
116
118
123 {
124 return confidenceInc_;
125 }
126
128
132 std::size_t NumPoints() const noexcept
133 {
134 return numPoints_;
135 }
136
137private:
138
139
140 std::uintptr_t xBasePtr_ = 0;
141 std::uintptr_t yBasePtr_ = 0;
142 std::uintptr_t zBasePtr_ = 0;
143 std::uintptr_t wBasePtr_ = 0;
144 std::uintptr_t confidenceBasePtr_ = 0;
145 std::intptr_t xInc_ = 0;
146 std::intptr_t yInc_ = 0;
147 std::intptr_t zInc_ = 0;
148 std::intptr_t wInc_ = 0;
149 std::intptr_t confidenceInc_ = 0;
150 std::size_t numPoints_ = 0;
151};
152
153CVB_END_INLINE_NS
154
155}
Point components of the point cloud.
Definition: components_pointers_3d.hpp:19
std::intptr_t ZInc() const noexcept
Increment to the next Z-component of the next point in bytes.
Definition: components_pointers_3d.hpp:102
std::uintptr_t BasePtrX() const noexcept
Variable to receive the pointer to the first X-component of the first point.
Definition: components_pointers_3d.hpp:32
std::intptr_t XInc() const noexcept
Increment to the next X-component of the next point in bytes.
Definition: components_pointers_3d.hpp:82
std::uintptr_t BasePtrZ() const noexcept
Variable to receive the pointer to the first Z-component of the first point.
Definition: components_pointers_3d.hpp:52
std::intptr_t ConfidenceInc() const noexcept
Increment to the next confidence-component of the next point in bytes (if present; nullptr if not).
Definition: components_pointers_3d.hpp:122
std::uintptr_t BasePtrConfidence() const noexcept
Variable to receive the pointer to the first confidence-component of the first point.
Definition: components_pointers_3d.hpp:72
std::uintptr_t BasePtrY() const noexcept
Variable to receive the pointer to the first Y-component of the first point.
Definition: components_pointers_3d.hpp:42
std::intptr_t YInc() const noexcept
Increment to the next Y-component of the next point in bytes.
Definition: components_pointers_3d.hpp:92
std::uintptr_t BasePtrW() const noexcept
Variable to receive the pointer to the first W-component of the first point.
Definition: components_pointers_3d.hpp:62
std::intptr_t WInc() const noexcept
Increment to the next W-component of the next point in bytes (if present; nullptr if not).
Definition: components_pointers_3d.hpp:112
std::size_t NumPoints() const noexcept
Variable to be filled with the number of points in point cloud.
Definition: components_pointers_3d.hpp:132
A point cloud object.
Definition: decl_point_cloud.hpp:49
Root namespace for the Image Manager interface.
Definition: c_barcode.h:24