Synergy Color Management Component - SDK -  2018.0.80
SYNCOLOR::Rect Class Reference

Rectangle class. More...

Public Member Functions

 Rect (float x, float y, float width, float height)
 Constructor. More...
 
 ~Rect ()
 Destructor. More...
 
float getX () const
 Origin x coordinate. More...
 
float getY () const
 Origin y coordinate. More...
 
float getWidth () const
 Rectangle width. More...
 
float getHeight () const
 Rectangle height. More...
 

Private Attributes

float _x
 Origin x coordinate. More...
 
float _y
 Origin y coordinate. More...
 
float _width
 Rectangle width. More...
 
float _height
 Rectangle height. More...
 

Detailed Description

Rectangle class.

This rectangle class is use to define an image. The image origin (x,y) is assumed to be at the bottom left as is typical in graphical coordinate systems.

Constructor & Destructor Documentation

SYNCOLOR::Rect::Rect ( float  x,
float  y,
float  width,
float  height 
)

Constructor.

Parameters
xOrigin x coordinate.
yOrigin y coordinate.
widthRectangle width.
heightRectangle height.
SYNCOLOR::Rect::~Rect ( )

Destructor.

Member Function Documentation

float SYNCOLOR::Rect::getX ( ) const
inline

Origin x coordinate.

Returns
the origin's x coordinate.
float SYNCOLOR::Rect::getY ( ) const
inline

Origin y coordinate.

Returns
the origin's y coordinate.
float SYNCOLOR::Rect::getWidth ( ) const
inline

Rectangle width.

Returns
the rectangle width.
float SYNCOLOR::Rect::getHeight ( ) const
inline

Rectangle height.

Returns
the rectangle height.

Member Data Documentation

float SYNCOLOR::Rect::_x
private

Origin x coordinate.

float SYNCOLOR::Rect::_y
private

Origin y coordinate.

float SYNCOLOR::Rect::_width
private

Rectangle width.

float SYNCOLOR::Rect::_height
private

Rectangle height.