0.4.3
首页
相关页面
专题
命名空间
类
文件
文件列表
文件成员
alson
alson
classic_base
entity
PointXYZRGB.h
浏览该文件的文档.
1
//
2
// Created by ALSON08 on 2023/10/9.
3
//
4
5
#ifndef ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_H
6
#define ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_H
7
8
9
// std
10
#include <cmath>
11
#include <cstdint>
12
13
14
namespace
ALSON
{
15
16
26
class
PointXYZRGB
{
27
public
:
28
PointXYZRGB
()
29
:
PointXYZRGB
(std::nanf(
""
), std::nanf(
""
), std::nanf(
""
), 0, 0, 0) {}
30
PointXYZRGB
(
float
_x,
float
_y,
float
_z, uint8_t _r, uint8_t _g, uint8_t _b)
31
:
x
(_x),
y
(_y),
z
(_z),
r
(_r),
g
(_g),
b
(_b) {}
32
~PointXYZRGB
() =
default
;
33
34
PointXYZRGB
(
const
PointXYZRGB
&) =
default
;
35
PointXYZRGB
&
operator=
(
const
PointXYZRGB
&) =
default
;
36
PointXYZRGB
(
PointXYZRGB
&&) =
default
;
37
PointXYZRGB
&
operator=
(
PointXYZRGB
&&) =
default
;
38
39
public
:
54
bool
isNan
()
const
{
return
std::isnan(
x
) || std::isnan(
y
) || std::isnan(
z
); };
55
56
public
:
57
float
x
;
58
float
y
;
59
float
z
;
60
uint8_t
r
;
61
uint8_t
g
;
62
uint8_t
b
;
63
64
const
static
int
X_POS
= 0;
65
const
static
int
Y_POS
= 4;
66
const
static
int
Z_POS
= 8;
67
const
static
int
R_POS
= 12;
68
const
static
int
G_POS
= 13;
69
const
static
int
B_POS
= 14;
70
};
// class PointXYZRGB
71
72
73
}
// namespace ALSON
74
75
76
#endif
// !ALSON_CLASSIC_BASE_ENTITY_POINT_XYZ_RGB_H
ALSON::PointXYZRGB
定义
PointXYZRGB.h:26
ALSON::PointXYZRGB::g
uint8_t g
定义
PointXYZRGB.h:61
ALSON::PointXYZRGB::X_POS
static const int X_POS
定义
PointXYZRGB.h:64
ALSON::PointXYZRGB::PointXYZRGB
PointXYZRGB(float _x, float _y, float _z, uint8_t _r, uint8_t _g, uint8_t _b)
定义
PointXYZRGB.h:30
ALSON::PointXYZRGB::~PointXYZRGB
~PointXYZRGB()=default
ALSON::PointXYZRGB::PointXYZRGB
PointXYZRGB(PointXYZRGB &&)=default
ALSON::PointXYZRGB::b
uint8_t b
定义
PointXYZRGB.h:62
ALSON::PointXYZRGB::R_POS
static const int R_POS
定义
PointXYZRGB.h:67
ALSON::PointXYZRGB::G_POS
static const int G_POS
定义
PointXYZRGB.h:68
ALSON::PointXYZRGB::B_POS
static const int B_POS
定义
PointXYZRGB.h:69
ALSON::PointXYZRGB::operator=
PointXYZRGB & operator=(PointXYZRGB &&)=default
ALSON::PointXYZRGB::r
uint8_t r
定义
PointXYZRGB.h:60
ALSON::PointXYZRGB::y
float y
定义
PointXYZRGB.h:58
ALSON::PointXYZRGB::isNan
bool isNan() const
定义
PointXYZRGB.h:54
ALSON::PointXYZRGB::x
float x
定义
PointXYZRGB.h:57
ALSON::PointXYZRGB::PointXYZRGB
PointXYZRGB()
定义
PointXYZRGB.h:28
ALSON::PointXYZRGB::PointXYZRGB
PointXYZRGB(const PointXYZRGB &)=default
ALSON::PointXYZRGB::Y_POS
static const int Y_POS
定义
PointXYZRGB.h:65
ALSON::PointXYZRGB::Z_POS
static const int Z_POS
定义
PointXYZRGB.h:66
ALSON::PointXYZRGB::z
float z
定义
PointXYZRGB.h:59
ALSON::PointXYZRGB::operator=
PointXYZRGB & operator=(const PointXYZRGB &)=default
ALSON
定义
AlsonMat.h:99
My Custom Doxygen Footer
Data Processing Programmer's Guide 0.4.3
Copyright © 2014-2024 Henan Alson Intelligent Technology Co, Ltd
河南埃尔森智能科技有限公司
版权所有 豫ICP备15002212号