gusimplewhiteboard
guWhiteboard::VisionDetectionGoalPost Class Reference

Provides a C++ wrapper around wb_vision_detection_goal_post. More...

#include <VisionDetectionGoalPost.hpp>

Inheritance diagram for guWhiteboard::VisionDetectionGoalPost:
Collaboration diagram for guWhiteboard::VisionDetectionGoalPost:

Public Member Functions

 VisionDetectionGoalPost (enum GoalPostOptions t_sightingType=NoPostDetected, enum GoalPostOrientation t_orientation=GenericPost, struct wb_pixel_coordinate t_topLeftCoordinate=wb_pixel_coordinate(), struct wb_pixel_coordinate t_topRightCoordinate=wb_pixel_coordinate(), struct wb_pixel_coordinate t_bottomLeftCoordinate=wb_pixel_coordinate(), struct wb_pixel_coordinate t_bottomRightCoordinate=wb_pixel_coordinate())
 Create a new VisionDetectionGoalPost. More...
 
 VisionDetectionGoalPost (const VisionDetectionGoalPost &t_other)
 Copy Constructor. More...
 
 VisionDetectionGoalPost (const struct wb_vision_detection_goal_post &t_other)
 Copy Constructor. More...
 
VisionDetectionGoalPostoperator= (const VisionDetectionGoalPost &t_other)
 Copy Assignment Operator. More...
 
VisionDetectionGoalPostoperator= (const struct wb_vision_detection_goal_post &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const VisionDetectionGoalPost &t_other) const
 
bool operator!= (const VisionDetectionGoalPost &t_other) const
 
bool operator== (const wb_vision_detection_goal_post &t_other) const
 
bool operator!= (const wb_vision_detection_goal_post &t_other) const
 
enum GoalPostOptionssightingType ()
 
enum GoalPostOptionssightingType () const
 
void set_sightingType (const enum GoalPostOptions &t_newValue)
 
enum GoalPostOrientationorientation ()
 
enum GoalPostOrientationorientation () const
 
void set_orientation (const enum GoalPostOrientation &t_newValue)
 
PixelCoordinatetopLeftCoordinate ()
 
const PixelCoordinatetopLeftCoordinate () const
 
void set_topLeftCoordinate (const PixelCoordinate &t_newValue)
 
PixelCoordinatetopRightCoordinate ()
 
const PixelCoordinatetopRightCoordinate () const
 
void set_topRightCoordinate (const PixelCoordinate &t_newValue)
 
PixelCoordinatebottomLeftCoordinate ()
 
const PixelCoordinatebottomLeftCoordinate () const
 
void set_bottomLeftCoordinate (const PixelCoordinate &t_newValue)
 
PixelCoordinatebottomRightCoordinate ()
 
const PixelCoordinatebottomRightCoordinate () const
 
void set_bottomRightCoordinate (const PixelCoordinate &t_newValue)
 
 VisionDetectionGoalPost (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 topLeftCoordinatePixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 
GU::PixelCoordinate topRightCoordinatePixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 
GU::PixelCoordinate bottomLeftCoordinatePixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 
GU::PixelCoordinate bottomRightCoordinatePixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 

Additional Inherited Members

- Public Attributes inherited from wb_vision_detection_goal_post
enum GoalPostOptions sightingType
 Goal post details. More...
 
enum GoalPostOrientation orientation
 Goal post orientation. More...
 
struct wb_pixel_coordinate topLeftCoordinate
 The top left pixel coordinate. More...
 
struct wb_pixel_coordinate topRightCoordinate
 The top right pixel coordinate. More...
 
struct wb_pixel_coordinate bottomLeftCoordinate
 The bottom left pixel coordinate. More...
 
struct wb_pixel_coordinate bottomRightCoordinate
 The bottom right pixel coordinate. More...
 

Detailed Description

Provides a C++ wrapper around wb_vision_detection_goal_post.

Definition at line 100 of file VisionDetectionGoalPost.hpp.

Constructor & Destructor Documentation

◆ VisionDetectionGoalPost() [1/4]

guWhiteboard::VisionDetectionGoalPost::VisionDetectionGoalPost ( enum GoalPostOptions  t_sightingType = NoPostDetected,
enum GoalPostOrientation  t_orientation = GenericPost,
struct wb_pixel_coordinate  t_topLeftCoordinate = wb_pixel_coordinate(),
struct wb_pixel_coordinate  t_topRightCoordinate = wb_pixel_coordinate(),
struct wb_pixel_coordinate  t_bottomLeftCoordinate = wb_pixel_coordinate(),
struct wb_pixel_coordinate  t_bottomRightCoordinate = wb_pixel_coordinate() 
)
inline

Create a new VisionDetectionGoalPost.

Definition at line 121 of file VisionDetectionGoalPost.hpp.

Referenced by operator==().

◆ VisionDetectionGoalPost() [2/4]

guWhiteboard::VisionDetectionGoalPost::VisionDetectionGoalPost ( const VisionDetectionGoalPost t_other)
inline

◆ VisionDetectionGoalPost() [3/4]

◆ VisionDetectionGoalPost() [4/4]

guWhiteboard::VisionDetectionGoalPost::VisionDetectionGoalPost ( const std::string &  t_str)
inline

String Constructor.

Definition at line 274 of file VisionDetectionGoalPost.hpp.

References from_string().

Member Function Documentation

◆ bottomLeftCoordinate() [1/2]

PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::bottomLeftCoordinate ( )
inline

◆ bottomLeftCoordinate() [2/2]

const PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::bottomLeftCoordinate ( ) const
inline

◆ bottomLeftCoordinatePixelCoordinate()

GU::PixelCoordinate guWhiteboard::VisionDetectionGoalPost::bottomLeftCoordinatePixelCoordinate ( const uint16_t  resWidth,
const uint16_t  resHeight 
)
inline

◆ bottomRightCoordinate() [1/2]

PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::bottomRightCoordinate ( )
inline

◆ bottomRightCoordinate() [2/2]

const PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::bottomRightCoordinate ( ) const
inline

◆ bottomRightCoordinatePixelCoordinate()

GU::PixelCoordinate guWhiteboard::VisionDetectionGoalPost::bottomRightCoordinatePixelCoordinate ( const uint16_t  resWidth,
const uint16_t  resHeight 
)
inline

◆ description()

◆ from_string()

◆ operator!=() [1/2]

bool guWhiteboard::VisionDetectionGoalPost::operator!= ( const VisionDetectionGoalPost t_other) const
inline

Definition at line 165 of file VisionDetectionGoalPost.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::VisionDetectionGoalPost::operator!= ( const wb_vision_detection_goal_post t_other) const
inline

Definition at line 175 of file VisionDetectionGoalPost.hpp.

◆ operator=() [1/2]

◆ operator=() [2/2]

VisionDetectionGoalPost & guWhiteboard::VisionDetectionGoalPost::operator= ( const VisionDetectionGoalPost t_other)
inline

◆ operator==() [1/2]

bool guWhiteboard::VisionDetectionGoalPost::operator== ( const VisionDetectionGoalPost t_other) const
inline

◆ operator==() [2/2]

bool guWhiteboard::VisionDetectionGoalPost::operator== ( const wb_vision_detection_goal_post t_other) const
inline

Definition at line 170 of file VisionDetectionGoalPost.hpp.

References VisionDetectionGoalPost().

◆ orientation() [1/2]

enum GoalPostOrientation & guWhiteboard::VisionDetectionGoalPost::orientation ( )
inline

◆ orientation() [2/2]

enum GoalPostOrientation & guWhiteboard::VisionDetectionGoalPost::orientation ( ) const
inline

◆ set_bottomLeftCoordinate()

void guWhiteboard::VisionDetectionGoalPost::set_bottomLeftCoordinate ( const PixelCoordinate t_newValue)
inline

◆ set_bottomRightCoordinate()

void guWhiteboard::VisionDetectionGoalPost::set_bottomRightCoordinate ( const PixelCoordinate t_newValue)
inline

◆ set_orientation()

void guWhiteboard::VisionDetectionGoalPost::set_orientation ( const enum GoalPostOrientation t_newValue)
inline

Definition at line 205 of file VisionDetectionGoalPost.hpp.

References wb_vision_detection_goal_post::orientation.

Referenced by from_string().

◆ set_sightingType()

void guWhiteboard::VisionDetectionGoalPost::set_sightingType ( const enum GoalPostOptions t_newValue)
inline

Definition at line 190 of file VisionDetectionGoalPost.hpp.

References wb_vision_detection_goal_post::sightingType.

Referenced by from_string().

◆ set_topLeftCoordinate()

void guWhiteboard::VisionDetectionGoalPost::set_topLeftCoordinate ( const PixelCoordinate t_newValue)
inline

◆ set_topRightCoordinate()

void guWhiteboard::VisionDetectionGoalPost::set_topRightCoordinate ( const PixelCoordinate t_newValue)
inline

◆ sightingType() [1/2]

enum GoalPostOptions & guWhiteboard::VisionDetectionGoalPost::sightingType ( )
inline

◆ sightingType() [2/2]

enum GoalPostOptions & guWhiteboard::VisionDetectionGoalPost::sightingType ( ) const
inline

◆ to_string()

◆ topLeftCoordinate() [1/2]

PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::topLeftCoordinate ( )
inline

◆ topLeftCoordinate() [2/2]

const PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::topLeftCoordinate ( ) const
inline

◆ topLeftCoordinatePixelCoordinate()

GU::PixelCoordinate guWhiteboard::VisionDetectionGoalPost::topLeftCoordinatePixelCoordinate ( const uint16_t  resWidth,
const uint16_t  resHeight 
)
inline

WHITEBOARD_POSTER_STRING_CONVERSION.

Definition at line 568 of file VisionDetectionGoalPost.hpp.

References guWhiteboard::PixelCoordinate::pixelCoordinate(), and topLeftCoordinate().

◆ topRightCoordinate() [1/2]

PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::topRightCoordinate ( )
inline

◆ topRightCoordinate() [2/2]

const PixelCoordinate & guWhiteboard::VisionDetectionGoalPost::topRightCoordinate ( ) const
inline

◆ topRightCoordinatePixelCoordinate()

GU::PixelCoordinate guWhiteboard::VisionDetectionGoalPost::topRightCoordinatePixelCoordinate ( const uint16_t  resWidth,
const uint16_t  resHeight 
)
inline

The documentation for this class was generated from the following file: