CVB++ 15.0
components_pointers_3d.hpp
1#pragma once
2
3#include <cvb/point_3d.hpp>
4#include <cvb/point_3d_h.hpp>
5#include <cvb/point_3d_c.hpp>
6
7namespace Cvb
8{
9
10 CVB_BEGIN_INLINE_NS
11
13
17 class ComponentsPointers3D final
18 {
19 friend class PointCloud;
20
21 public:
22 ComponentsPointers3D() = default;
23
25
29 std::uintptr_t BasePtrX() const noexcept
30 {
31 return xBasePtr_;
32 }
33
35
39 std::uintptr_t BasePtrY() const noexcept
40 {
41 return yBasePtr_;
42 }
43
45
49 std::uintptr_t BasePtrZ() const noexcept
50 {
51 return zBasePtr_;
52 }
53
55
59 std::uintptr_t BasePtrW() const noexcept
60 {
61 return wBasePtr_;
62 }
63
65
70 {
71 return confidenceBasePtr_;
72 }
73
75
79 std::intptr_t XInc() const noexcept
80 {
81 return xInc_;
82 }
83
85
89 std::intptr_t YInc() const noexcept
90 {
91 return yInc_;
92 }
93
95
99 std::intptr_t ZInc() const noexcept
100 {
101 return zInc_;
102 }
103
105
109 std::intptr_t WInc() const noexcept
110 {
111 return wInc_;
112 }
113
115
120 {
121 return confidenceInc_;
122 }
123
125
129 std::size_t NumPoints() const noexcept
130 {
131 return numPoints_;
132 }
133
134 private:
135 std::uintptr_t xBasePtr_ = 0;
136 std::uintptr_t yBasePtr_ = 0;
137 std::uintptr_t zBasePtr_ = 0;
138 std::uintptr_t wBasePtr_ = 0;
139 std::uintptr_t confidenceBasePtr_ = 0;
140 std::intptr_t xInc_ = 0;
141 std::intptr_t yInc_ = 0;
142 std::intptr_t zInc_ = 0;
143 std::intptr_t wInc_ = 0;
144 std::intptr_t confidenceInc_ = 0;
145 std::size_t numPoints_ = 0;
146 };
147
148 CVB_END_INLINE_NS
149
150} // namespace Cvb
std::intptr_t ZInc() const noexcept
Increment to the next Z-component of the next point in bytes.
Definition components_pointers_3d.hpp:99
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:29
std::intptr_t XInc() const noexcept
Increment to the next X-component of the next point in bytes.
Definition components_pointers_3d.hpp:79
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:49
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:119
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:69
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:39
std::intptr_t YInc() const noexcept
Increment to the next Y-component of the next point in bytes.
Definition components_pointers_3d.hpp:89
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:59
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:109
std::size_t NumPoints() const noexcept
Variable to be filled with the number of points in point cloud.
Definition components_pointers_3d.hpp:129
Root namespace for the Image Manager interface.
Definition c_bayer_to_rgb.h:17