gusimplewhiteboard
guWhiteboard::PixelCoordinateLine Class Reference

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

#include <PixelCoordinateLine.hpp>

Inheritance diagram for guWhiteboard::PixelCoordinateLine:
Collaboration diagram for guWhiteboard::PixelCoordinateLine:

Public Member Functions

 PixelCoordinateLine (struct wb_pixel_coordinate t_start=wb_pixel_coordinate(), struct wb_pixel_coordinate t_end=wb_pixel_coordinate())
 Create a new PixelCoordinateLine. More...
 
 PixelCoordinateLine (const PixelCoordinateLine &t_other)
 Copy Constructor. More...
 
 PixelCoordinateLine (const struct wb_pixel_coordinate_line &t_other)
 Copy Constructor. More...
 
PixelCoordinateLineoperator= (const PixelCoordinateLine &t_other)
 Copy Assignment Operator. More...
 
PixelCoordinateLineoperator= (const struct wb_pixel_coordinate_line &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const PixelCoordinateLine &t_other) const
 
bool operator!= (const PixelCoordinateLine &t_other) const
 
bool operator== (const wb_pixel_coordinate_line &t_other) const
 
bool operator!= (const wb_pixel_coordinate_line &t_other) const
 
PixelCoordinatestart ()
 
const PixelCoordinatestart () const
 
void set_start (const PixelCoordinate &t_newValue)
 
PixelCoordinateend ()
 
const PixelCoordinateend () const
 
void set_end (const PixelCoordinate &t_newValue)
 
 PixelCoordinateLine (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 startPixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 
GU::PixelCoordinate endPixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 

Additional Inherited Members

- Public Attributes inherited from wb_pixel_coordinate_line
struct wb_pixel_coordinate start
 Start point of the line. More...
 
struct wb_pixel_coordinate end
 End point of the line. More...
 

Detailed Description

Provides a C++ wrapper around wb_pixel_coordinate_line.

Definition at line 92 of file PixelCoordinateLine.hpp.

Constructor & Destructor Documentation

◆ PixelCoordinateLine() [1/4]

guWhiteboard::PixelCoordinateLine::PixelCoordinateLine ( struct wb_pixel_coordinate  t_start = wb_pixel_coordinate(),
struct wb_pixel_coordinate  t_end = wb_pixel_coordinate() 
)
inline

Create a new PixelCoordinateLine.

Definition at line 109 of file PixelCoordinateLine.hpp.

Referenced by operator==().

◆ PixelCoordinateLine() [2/4]

guWhiteboard::PixelCoordinateLine::PixelCoordinateLine ( const PixelCoordinateLine t_other)
inline

Copy Constructor.

Definition at line 116 of file PixelCoordinateLine.hpp.

References end(), and start().

◆ PixelCoordinateLine() [3/4]

guWhiteboard::PixelCoordinateLine::PixelCoordinateLine ( const struct wb_pixel_coordinate_line t_other)
inline

Copy Constructor.

Definition at line 123 of file PixelCoordinateLine.hpp.

References wb_pixel_coordinate_line::end, and wb_pixel_coordinate_line::start.

◆ PixelCoordinateLine() [4/4]

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

String Constructor.

Definition at line 198 of file PixelCoordinateLine.hpp.

References from_string().

Member Function Documentation

◆ description()

std::string guWhiteboard::PixelCoordinateLine::description ( )
inline

◆ end() [1/2]

PixelCoordinate & guWhiteboard::PixelCoordinateLine::end ( )
inline

◆ end() [2/2]

const PixelCoordinate & guWhiteboard::PixelCoordinateLine::end ( ) const
inline

Definition at line 184 of file PixelCoordinateLine.hpp.

References wb_pixel_coordinate_line::end.

◆ endPixelCoordinate()

GU::PixelCoordinate guWhiteboard::PixelCoordinateLine::endPixelCoordinate ( const uint16_t  resWidth,
const uint16_t  resHeight 
)
inline

◆ from_string()

void guWhiteboard::PixelCoordinateLine::from_string ( const std::string &  t_str)
inline

◆ operator!=() [1/2]

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

Definition at line 149 of file PixelCoordinateLine.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::PixelCoordinateLine::operator!= ( const wb_pixel_coordinate_line t_other) const
inline

Definition at line 159 of file PixelCoordinateLine.hpp.

◆ operator=() [1/2]

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

Copy Assignment Operator.

Definition at line 130 of file PixelCoordinateLine.hpp.

References end(), and start().

◆ operator=() [2/2]

PixelCoordinateLine & guWhiteboard::PixelCoordinateLine::operator= ( const struct wb_pixel_coordinate_line t_other)
inline

Copy Assignment Operator.

Definition at line 138 of file PixelCoordinateLine.hpp.

References wb_pixel_coordinate_line::end, and wb_pixel_coordinate_line::start.

◆ operator==() [1/2]

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

Definition at line 143 of file PixelCoordinateLine.hpp.

References end(), and start().

◆ operator==() [2/2]

bool guWhiteboard::PixelCoordinateLine::operator== ( const wb_pixel_coordinate_line t_other) const
inline

Definition at line 154 of file PixelCoordinateLine.hpp.

References PixelCoordinateLine().

◆ set_end()

void guWhiteboard::PixelCoordinateLine::set_end ( const PixelCoordinate t_newValue)
inline

Definition at line 189 of file PixelCoordinateLine.hpp.

References wb_pixel_coordinate_line::end.

Referenced by from_string().

◆ set_start()

void guWhiteboard::PixelCoordinateLine::set_start ( const PixelCoordinate t_newValue)
inline

Definition at line 174 of file PixelCoordinateLine.hpp.

References wb_pixel_coordinate_line::start.

Referenced by from_string().

◆ start() [1/2]

PixelCoordinate & guWhiteboard::PixelCoordinateLine::start ( )
inline

◆ start() [2/2]

const PixelCoordinate & guWhiteboard::PixelCoordinateLine::start ( ) const
inline

Definition at line 169 of file PixelCoordinateLine.hpp.

References wb_pixel_coordinate_line::start.

◆ startPixelCoordinate()

GU::PixelCoordinate guWhiteboard::PixelCoordinateLine::startPixelCoordinate ( const uint16_t  resWidth,
const uint16_t  resHeight 
)
inline

WHITEBOARD_POSTER_STRING_CONVERSION.

Definition at line 340 of file PixelCoordinateLine.hpp.

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

◆ to_string()

std::string guWhiteboard::PixelCoordinateLine::to_string ( )
inline

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