Main Page
Namespaces
Classes
Files
File List
File Members
sensor_api
source
LibMultiSense
details
wire
CamSetResolutionMessage.h
Go to the documentation of this file.
1
40
#ifndef LibMultiSense_CamSetResolutionMessage
41
#define LibMultiSense_CamSetResolutionMessage
42
43
#include "
details/utility/Portability.hh
"
44
45
namespace
crl
{
46
namespace
multisense {
47
namespace
details {
48
namespace
wire {
49
50
class
CamSetResolution
{
51
public
:
52
static
CRL_CONSTEXPR
IdType
ID
=
ID_CMD_CAM_SET_RESOLUTION
;
53
static
CRL_CONSTEXPR
VersionType
VERSION
= 3;
54
55
//
56
// Parameters
57
58
uint32_t
width
;
59
uint32_t
height
;
60
61
//
62
// Version 2 additions
63
64
int32_t
disparities
;
65
66
//
67
// Version 3 additions
68
int
camMode
;
69
int
offset
;
70
71
//
72
// Constructors
73
74
CamSetResolution
(
utility::BufferStreamReader
&r,
VersionType
v) {
serialize
(r,v);};
75
CamSetResolution
(uint32_t w=0, uint32_t h=0, int32_t d=-1,
int
m=0,
int
o=0) :
76
width(w), height(h), disparities(
d
), camMode(m), offset(o) {};
77
78
//
79
// Serialization routine
80
81
template
<
class
Archive>
82
void
serialize
(Archive& message,
83
const
VersionType
version)
84
{
85
message &
width
;
86
message &
height
;
87
88
if
(version >= 2)
89
message &
disparities
;
90
else
91
disparities = 0;
92
93
if
(version >= 3){
94
message &
camMode
;
95
message &
offset
;
96
}
else
{
97
camMode = 0;
98
offset = -1;
99
}
100
}
101
};
102
103
}}}};
// namespaces
104
105
#endif
d
d
crl::multisense::details::wire::CamSetResolution::ID
static CRL_CONSTEXPR IdType ID
Definition:
CamSetResolutionMessage.h:52
crl::multisense::details::wire::IdType
uint16_t IdType
Definition:
Protocol.h:126
crl::multisense::details::wire::CamSetResolution::CamSetResolution
CamSetResolution(utility::BufferStreamReader &r, VersionType v)
Definition:
CamSetResolutionMessage.h:74
crl::multisense::details::wire::CamSetResolution::VERSION
static CRL_CONSTEXPR VersionType VERSION
Definition:
CamSetResolutionMessage.h:53
crl::multisense::details::wire::CamSetResolution::offset
int offset
Definition:
CamSetResolutionMessage.h:69
crl::multisense::details::wire::CamSetResolution::height
uint32_t height
Definition:
CamSetResolutionMessage.h:59
Portability.hh
crl::multisense::details::wire::CamSetResolution::CamSetResolution
CamSetResolution(uint32_t w=0, uint32_t h=0, int32_t d=-1, int m=0, int o=0)
Definition:
CamSetResolutionMessage.h:75
crl::multisense::details::wire::CamSetResolution::serialize
void serialize(Archive &message, const VersionType version)
Definition:
CamSetResolutionMessage.h:82
crl
Definition:
channel.cc:56
crl::multisense::details::wire::CamSetResolution::width
uint32_t width
Definition:
CamSetResolutionMessage.h:58
crl::multisense::details::wire::ID_CMD_CAM_SET_RESOLUTION
static CRL_CONSTEXPR IdType ID_CMD_CAM_SET_RESOLUTION
Definition:
Protocol.h:153
crl::multisense::details::wire::CamSetResolution::disparities
int32_t disparities
Definition:
CamSetResolutionMessage.h:64
crl::multisense::details::wire::CamSetResolution
Definition:
CamSetResolutionMessage.h:50
crl::multisense::details::wire::VersionType
uint16_t VersionType
Definition:
Protocol.h:127
crl::multisense::details::wire::CamSetResolution::camMode
int camMode
Definition:
CamSetResolutionMessage.h:68
CRL_CONSTEXPR
#define CRL_CONSTEXPR
Definition:
Portability.hh:38
crl::multisense::details::utility::BufferStreamReader
Definition:
BufferStream.hh:172
multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46