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

Collection of 4 vertices describing a rectangle. More...

Public Member Functions

 Vertices (float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)
 Constructor using vertex coordinates. More...
 
 Vertices (const Rect &rect)
 Constructor using a SYNCOLOR::Rect. More...
 
 ~Vertices ()
 Destructor. More...
 
Vertex coordinate accessor methods.
float getX1 () const
 
float getX2 () const
 
float getX3 () const
 
float getX4 () const
 
float getY1 () const
 
float getY2 () const
 
float getY3 () const
 
float getY4 () const
 

Private Attributes

float _x1
 Bottom left x. More...
 
float _y1
 Bottom left y. More...
 
float _x2
 Top left x. More...
 
float _y2
 Top left y. More...
 
float _x3
 Top right x. More...
 
float _y3
 Top right y. More...
 
float _x4
 Bottom right x. More...
 
float _y4
 Bottom right y. More...
 

Detailed Description

Collection of 4 vertices describing a rectangle.

The ordering of vertices is counterclockwise starting from the bottom left.

Constructor & Destructor Documentation

SYNCOLOR::Vertices::Vertices ( float  x1,
float  y1,
float  x2,
float  y2,
float  x3,
float  y3,
float  x4,
float  y4 
)

Constructor using vertex coordinates.

Parameters
x1Bottom left x.
y1Bottom left y.
x2Top left x.
y2Top left y.
x3Top right x.
y3Top right y.
x4Bottom right x.
y4Bottom right y.
SYNCOLOR::Vertices::Vertices ( const Rect rect)

Constructor using a SYNCOLOR::Rect.

Parameters
rectRect to convert to Vertices.
SYNCOLOR::Vertices::~Vertices ( )

Destructor.

Member Data Documentation

float SYNCOLOR::Vertices::_x1
private

Bottom left x.

float SYNCOLOR::Vertices::_y1
private

Bottom left y.

float SYNCOLOR::Vertices::_x2
private

Top left x.

float SYNCOLOR::Vertices::_y2
private

Top left y.

float SYNCOLOR::Vertices::_x3
private

Top right x.

float SYNCOLOR::Vertices::_y3
private

Top right y.

float SYNCOLOR::Vertices::_x4
private

Bottom right x.

float SYNCOLOR::Vertices::_y4
private

Bottom right y.