gusimplewhiteboard
|
Provides a C++ wrapper around wb_vision_detection_ball
.
More...
#include <VisionDetectionBall.hpp>
Public Member Functions | |
VisionDetectionBall (enum BallOptions t_sightingType=NoBallDetected, struct wb_pixel_coordinate t_coordinate=wb_pixel_coordinate(), uint16_t t_verticalRadius=0, uint16_t t_horizontalRadius=0) | |
Create a new VisionDetectionBall . More... | |
VisionDetectionBall (const VisionDetectionBall &t_other) | |
Copy Constructor. More... | |
VisionDetectionBall (const struct wb_vision_detection_ball &t_other) | |
Copy Constructor. More... | |
VisionDetectionBall & | operator= (const VisionDetectionBall &t_other) |
Copy Assignment Operator. More... | |
VisionDetectionBall & | operator= (const struct wb_vision_detection_ball &t_other) |
Copy Assignment Operator. More... | |
bool | operator== (const VisionDetectionBall &t_other) const |
bool | operator!= (const VisionDetectionBall &t_other) const |
bool | operator== (const wb_vision_detection_ball &t_other) const |
bool | operator!= (const wb_vision_detection_ball &t_other) const |
enum BallOptions & | sightingType () |
enum BallOptions & | sightingType () const |
void | set_sightingType (const enum BallOptions &t_newValue) |
PixelCoordinate & | coordinate () |
const PixelCoordinate & | coordinate () const |
void | set_coordinate (const PixelCoordinate &t_newValue) |
uint16_t & | verticalRadius () |
const uint16_t & | verticalRadius () const |
void | set_verticalRadius (const uint16_t &t_newValue) |
uint16_t & | horizontalRadius () |
const uint16_t & | horizontalRadius () const |
void | set_horizontalRadius (const uint16_t &t_newValue) |
VisionDetectionBall (const std::string &t_str) | |
String Constructor. More... | |
std::string | description () |
std::string | to_string () |
void | from_string (const std::string &t_str) |
GU::PixelCoordinate | coordinatePixelCoordinate (const uint16_t resWidth, const uint16_t resHeight) |
WHITEBOARD_POSTER_STRING_CONVERSION. More... | |
Additional Inherited Members | |
![]() | |
enum BallOptions | sightingType |
Ball detection details. More... | |
struct wb_pixel_coordinate | coordinate |
The pixel coordinate. More... | |
uint16_t | verticalRadius |
The vertical radius in pixels. More... | |
uint16_t | horizontalRadius |
The horizontal radius in pixels. More... | |
Provides a C++ wrapper around wb_vision_detection_ball
.
Definition at line 88 of file VisionDetectionBall.hpp.
|
inline |
Create a new VisionDetectionBall
.
Definition at line 107 of file VisionDetectionBall.hpp.
Referenced by operator==().
|
inline |
Copy Constructor.
Definition at line 114 of file VisionDetectionBall.hpp.
References coordinate(), horizontalRadius(), sightingType(), and verticalRadius().
|
inline |
Copy Constructor.
Definition at line 121 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::coordinate, wb_vision_detection_ball::horizontalRadius, wb_vision_detection_ball::sightingType, and wb_vision_detection_ball::verticalRadius.
|
inline |
String Constructor.
Definition at line 228 of file VisionDetectionBall.hpp.
References from_string().
|
inline |
Definition at line 179 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::coordinate.
Referenced by VisionDetectionBall(), coordinatePixelCoordinate(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 184 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::coordinate.
|
inline |
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition at line 427 of file VisionDetectionBall.hpp.
References coordinate(), and guWhiteboard::PixelCoordinate::pixelCoordinate().
|
inline |
USE_WB_VISION_DETECTION_BALL_C_CONVERSION
Definition at line 233 of file VisionDetectionBall.hpp.
References BallDetected, coordinate(), guWhiteboard::PixelCoordinate::description(), horizontalRadius(), NoBallDetected, sightingType(), verticalRadius(), VISION_DETECTION_BALL_DESC_BUFFER_SIZE, and wb_vision_detection_ball_description().
|
inline |
USE_WB_VISION_DETECTION_BALL_C_CONVERSION
Definition at line 297 of file VisionDetectionBall.hpp.
References BallDetected, guWhiteboard::PixelCoordinate::from_string(), NoBallDetected, set_coordinate(), set_horizontalRadius(), set_sightingType(), set_verticalRadius(), and VISION_DETECTION_BALL_DESC_BUFFER_SIZE.
Referenced by VisionDetectionBall(), and guWhiteboard::VisionDetectionBalls::from_string().
|
inline |
Definition at line 209 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::horizontalRadius.
Referenced by VisionDetectionBall(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 214 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::horizontalRadius.
|
inline |
Definition at line 149 of file VisionDetectionBall.hpp.
|
inline |
Definition at line 159 of file VisionDetectionBall.hpp.
|
inline |
Copy Assignment Operator.
Definition at line 136 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::coordinate, wb_vision_detection_ball::horizontalRadius, wb_vision_detection_ball::sightingType, and wb_vision_detection_ball::verticalRadius.
|
inline |
Copy Assignment Operator.
Definition at line 128 of file VisionDetectionBall.hpp.
References coordinate(), horizontalRadius(), sightingType(), and verticalRadius().
|
inline |
Definition at line 141 of file VisionDetectionBall.hpp.
References coordinate(), horizontalRadius(), sightingType(), and verticalRadius().
|
inline |
Definition at line 154 of file VisionDetectionBall.hpp.
References VisionDetectionBall().
|
inline |
Definition at line 189 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::coordinate.
Referenced by from_string().
|
inline |
Definition at line 219 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::horizontalRadius.
Referenced by from_string().
|
inline |
Definition at line 174 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::sightingType.
Referenced by from_string().
|
inline |
Definition at line 204 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::verticalRadius.
Referenced by from_string().
|
inline |
Definition at line 164 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::sightingType.
Referenced by VisionDetectionBall(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 169 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::sightingType.
|
inline |
USE_WB_VISION_DETECTION_BALL_C_CONVERSION
Definition at line 263 of file VisionDetectionBall.hpp.
References BallDetected, coordinate(), horizontalRadius(), NoBallDetected, sightingType(), guWhiteboard::PixelCoordinate::to_string(), verticalRadius(), VISION_DETECTION_BALL_TO_STRING_BUFFER_SIZE, and wb_vision_detection_ball_to_string().
|
inline |
Definition at line 194 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::verticalRadius.
Referenced by VisionDetectionBall(), description(), operator=(), operator==(), and to_string().
|
inline |
Definition at line 199 of file VisionDetectionBall.hpp.
References wb_vision_detection_ball::verticalRadius.