gusimplewhiteboard
|
Provides a C++ wrapper around wb_vision_lines
.
More...
#include <VisionLines.hpp>
Public Member Functions | |
VisionLines (const struct wb_vision_line t_lines[7]=NULLPTR, uint8_t t_numLines=0, uint64_t t_frameNumber=0, uint16_t t_res_width=0, uint16_t t_res_height=0) | |
Create a new VisionLines . More... | |
VisionLines (const VisionLines &t_other) | |
Copy Constructor. More... | |
VisionLines (const struct wb_vision_lines &t_other) | |
Copy Constructor. More... | |
VisionLines & | operator= (const VisionLines &t_other) |
Copy Assignment Operator. More... | |
VisionLines & | operator= (const struct wb_vision_lines &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const VisionLines &t_other) const |
bool | operator!= (const VisionLines &t_other) const |
bool | operator== (const wb_vision_lines &t_other) const |
bool | operator!= (const wb_vision_lines &t_other) const |
const VisionLine * | lines () const |
size_t | lines_size () const |
VisionLine & | lines (int t_i) |
const VisionLine & | lines (int t_i) const |
void | set_lines (const VisionLine *t_newValue) |
void | set_lines (const VisionLine &t_newValue, int t_i) |
uint8_t & | numLines () |
const uint8_t & | numLines () const |
void | set_numLines (const uint8_t &t_newValue) |
uint64_t & | frameNumber () |
const uint64_t & | frameNumber () const |
void | set_frameNumber (const uint64_t &t_newValue) |
uint16_t & | res_width () |
const uint16_t & | res_width () const |
void | set_res_width (const uint16_t &t_newValue) |
uint16_t & | res_height () |
const uint16_t & | res_height () const |
void | set_res_height (const uint16_t &t_newValue) |
VisionLines (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
Additional Inherited Members | |
![]() | |
struct wb_vision_line | lines [7] |
Lines reported from the camera. More... | |
uint8_t | numLines |
The number of lines reported on the camera. More... | |
uint64_t | frameNumber |
The frame number that these lines were seen in. More... | |
uint16_t | res_width |
The resolution width. More... | |
uint16_t | res_height |
The resolution height. More... | |
Provides a C++ wrapper around wb_vision_lines
.
Definition at line 85 of file VisionLines.hpp.
|
inline |
Create a new VisionLines
.
Definition at line 110 of file VisionLines.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 117 of file VisionLines.hpp.
References frameNumber(), lines(), numLines(), res_height(), and res_width().
|
inline |
Copy Constructor.
Definition at line 124 of file VisionLines.hpp.
References wb_vision_lines::frameNumber, wb_vision_lines::lines, wb_vision_lines::numLines, wb_vision_lines::res_height, and wb_vision_lines::res_width.
|
inline |
|
inline |
USE_WB_VISION_LINES_C_CONVERSION
Definition at line 274 of file VisionLines.hpp.
References description(), frameNumber(), lines(), numLines(), res_height(), res_width(), VISION_LINES_DESC_BUFFER_SIZE, VISION_LINES_LINES_ARRAY_SIZE, and wb_vision_lines_description().
Referenced by description().
|
inline |
Definition at line 220 of file VisionLines.hpp.
References wb_vision_lines::frameNumber.
Referenced by VisionLines(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 225 of file VisionLines.hpp.
References wb_vision_lines::frameNumber.
|
inline |
USE_WB_VISION_LINES_C_CONVERSION
Definition at line 332 of file VisionLines.hpp.
References guWhiteboard::VisionLine::from_string(), set_frameNumber(), set_lines(), set_numLines(), set_res_height(), set_res_width(), VISION_LINES_DESC_BUFFER_SIZE, and VISION_LINES_LINES_ARRAY_SIZE.
Referenced by VisionLines().
|
inline |
Definition at line 175 of file VisionLines.hpp.
References wb_vision_lines::lines.
Referenced by VisionLines(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 185 of file VisionLines.hpp.
References wb_vision_lines::lines.
|
inline |
Definition at line 190 of file VisionLines.hpp.
References wb_vision_lines::lines.
|
inline |
Definition at line 180 of file VisionLines.hpp.
References VISION_LINES_LINES_ARRAY_SIZE.
|
inline |
Definition at line 205 of file VisionLines.hpp.
References wb_vision_lines::numLines.
Referenced by VisionLines(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 210 of file VisionLines.hpp.
References wb_vision_lines::numLines.
|
inline |
Definition at line 160 of file VisionLines.hpp.
|
inline |
Definition at line 170 of file VisionLines.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 139 of file VisionLines.hpp.
References wb_vision_lines::frameNumber, wb_vision_lines::lines, wb_vision_lines::numLines, wb_vision_lines::res_height, and wb_vision_lines::res_width.
|
inline |
Copy Assignment Operator.
Definition at line 131 of file VisionLines.hpp.
References frameNumber(), lines(), numLines(), res_height(), and res_width().
|
inline |
Definition at line 144 of file VisionLines.hpp.
References frameNumber(), lines(), numLines(), res_height(), and res_width().
|
inline |
Definition at line 165 of file VisionLines.hpp.
References VisionLines().
|
inline |
Definition at line 250 of file VisionLines.hpp.
References wb_vision_lines::res_height.
Referenced by VisionLines(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 255 of file VisionLines.hpp.
References wb_vision_lines::res_height.
|
inline |
Definition at line 235 of file VisionLines.hpp.
References wb_vision_lines::res_width.
Referenced by VisionLines(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 240 of file VisionLines.hpp.
References wb_vision_lines::res_width.
|
inline |
Definition at line 230 of file VisionLines.hpp.
References wb_vision_lines::frameNumber.
Referenced by from_string().
|
inline |
Definition at line 200 of file VisionLines.hpp.
References wb_vision_lines::lines.
|
inline |
Definition at line 195 of file VisionLines.hpp.
References wb_vision_lines::lines, and VISION_LINES_LINES_ARRAY_SIZE.
Referenced by from_string().
|
inline |
Definition at line 215 of file VisionLines.hpp.
References wb_vision_lines::numLines.
Referenced by from_string().
|
inline |
Definition at line 260 of file VisionLines.hpp.
References wb_vision_lines::res_height.
Referenced by from_string().
|
inline |
Definition at line 245 of file VisionLines.hpp.
References wb_vision_lines::res_width.
Referenced by from_string().
|
inline |
USE_WB_VISION_LINES_C_CONVERSION
Definition at line 301 of file VisionLines.hpp.
References frameNumber(), lines(), numLines(), res_height(), res_width(), to_string(), VISION_LINES_LINES_ARRAY_SIZE, VISION_LINES_TO_STRING_BUFFER_SIZE, and wb_vision_lines_to_string().
Referenced by to_string().