gusimplewhiteboard
guWhiteboard::PixelCoordinate Class Reference

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

#include <PixelCoordinate.hpp>

Inheritance diagram for guWhiteboard::PixelCoordinate:
Collaboration diagram for guWhiteboard::PixelCoordinate:

Public Member Functions

 PixelCoordinate (int16_t t_x=0, int16_t t_y=0)
 Create a new PixelCoordinate. More...
 
 PixelCoordinate (const PixelCoordinate &t_other)
 Copy Constructor. More...
 
 PixelCoordinate (const struct wb_pixel_coordinate &t_other)
 Copy Constructor. More...
 
PixelCoordinateoperator= (const PixelCoordinate &t_other)
 Copy Assignment Operator. More...
 
PixelCoordinateoperator= (const struct wb_pixel_coordinate &t_other)
 Copy Assignment Operator. More...
 
bool operator== (const PixelCoordinate &t_other) const
 
bool operator!= (const PixelCoordinate &t_other) const
 
bool operator== (const wb_pixel_coordinate &t_other) const
 
bool operator!= (const wb_pixel_coordinate &t_other) const
 
int16_t & x ()
 
const int16_t & x () const
 
void set_x (const int16_t &t_newValue)
 
int16_t & y ()
 
const int16_t & y () const
 
void set_y (const int16_t &t_newValue)
 
 PixelCoordinate (const std::string &t_str)
 String Constructor. More...
 
std::string description ()
 
std::string to_string ()
 
void from_string (const std::string &t_str)
 
 PixelCoordinate (const GU::PixelCoordinate &other)
 WHITEBOARD_POSTER_STRING_CONVERSION. More...
 
 PixelCoordinate (const ::gu_pixel_coordinate &other)
 
GU::PixelCoordinate pixelCoordinate (const uint16_t resWidth, const uint16_t resHeight)
 

Additional Inherited Members

- Public Attributes inherited from wb_pixel_coordinate
int16_t x
 The x coordinate. More...
 
int16_t y
 The y coordinate. More...
 

Detailed Description

Provides a C++ wrapper around wb_pixel_coordinate.

Definition at line 86 of file PixelCoordinate.hpp.

Constructor & Destructor Documentation

◆ PixelCoordinate() [1/6]

guWhiteboard::PixelCoordinate::PixelCoordinate ( int16_t  t_x = 0,
int16_t  t_y = 0 
)
inline

Create a new PixelCoordinate.

Definition at line 103 of file PixelCoordinate.hpp.

Referenced by operator==().

◆ PixelCoordinate() [2/6]

guWhiteboard::PixelCoordinate::PixelCoordinate ( const PixelCoordinate t_other)
inline

Copy Constructor.

Definition at line 110 of file PixelCoordinate.hpp.

References x(), and y().

◆ PixelCoordinate() [3/6]

guWhiteboard::PixelCoordinate::PixelCoordinate ( const struct wb_pixel_coordinate t_other)
inline

Copy Constructor.

Definition at line 117 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::x, and wb_pixel_coordinate::y.

◆ PixelCoordinate() [4/6]

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

String Constructor.

Definition at line 192 of file PixelCoordinate.hpp.

References from_string().

◆ PixelCoordinate() [5/6]

guWhiteboard::PixelCoordinate::PixelCoordinate ( const GU::PixelCoordinate &  other)
inline

WHITEBOARD_POSTER_STRING_CONVERSION.

Definition at line 330 of file PixelCoordinate.hpp.

◆ PixelCoordinate() [6/6]

guWhiteboard::PixelCoordinate::PixelCoordinate ( const ::gu_pixel_coordinate &  other)
inline

Definition at line 334 of file PixelCoordinate.hpp.

Member Function Documentation

◆ description()

◆ from_string()

◆ operator!=() [1/2]

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

Definition at line 143 of file PixelCoordinate.hpp.

◆ operator!=() [2/2]

bool guWhiteboard::PixelCoordinate::operator!= ( const wb_pixel_coordinate t_other) const
inline

Definition at line 153 of file PixelCoordinate.hpp.

◆ operator=() [1/2]

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

Copy Assignment Operator.

Definition at line 124 of file PixelCoordinate.hpp.

References x(), and y().

◆ operator=() [2/2]

PixelCoordinate & guWhiteboard::PixelCoordinate::operator= ( const struct wb_pixel_coordinate t_other)
inline

Copy Assignment Operator.

Definition at line 132 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::x, and wb_pixel_coordinate::y.

◆ operator==() [1/2]

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

Definition at line 137 of file PixelCoordinate.hpp.

References x(), and y().

◆ operator==() [2/2]

bool guWhiteboard::PixelCoordinate::operator== ( const wb_pixel_coordinate t_other) const
inline

Definition at line 148 of file PixelCoordinate.hpp.

References PixelCoordinate().

◆ pixelCoordinate()

◆ set_x()

void guWhiteboard::PixelCoordinate::set_x ( const int16_t &  t_newValue)
inline

Definition at line 168 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::x.

Referenced by from_string().

◆ set_y()

void guWhiteboard::PixelCoordinate::set_y ( const int16_t &  t_newValue)
inline

Definition at line 183 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::y.

Referenced by from_string().

◆ to_string()

◆ x() [1/2]

int16_t & guWhiteboard::PixelCoordinate::x ( )
inline

Definition at line 158 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::x.

Referenced by PixelCoordinate(), description(), operator=(), operator==(), and to_string().

◆ x() [2/2]

const int16_t & guWhiteboard::PixelCoordinate::x ( ) const
inline

Definition at line 163 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::x.

◆ y() [1/2]

int16_t & guWhiteboard::PixelCoordinate::y ( )
inline

Definition at line 173 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::y.

Referenced by PixelCoordinate(), description(), operator=(), operator==(), and to_string().

◆ y() [2/2]

const int16_t & guWhiteboard::PixelCoordinate::y ( ) const
inline

Definition at line 178 of file PixelCoordinate.hpp.

References wb_pixel_coordinate::y.


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