OMC::AllocatedRect2D Class Reference

Detailed Description

Provides a rectangle with position, width and height, provided as a double value.

Public Member Functions

 AllocatedRect2D (double width=0.0, double height=0.0, double x=0.0, double y=0.0)
 
bool operator== (const AllocatedRect2D &rhs) const
 
void add (OMC::Point2d *pt)
 Adds the point to the rect so that the rect will now encompass that point.
 
void add (OMC::AllocatedRect2D *pt)
 Adds the rect to the rect so that the rect will now encompass that rect.
 
void expand (double x, double y)
 Expands the rect by a hoeizontal and vertical direction.
 
void expand (double left, double top, double right, double bottom)
 Expands the rect by a hoeizontal and vertical direction.
 

Static Public Member Functions

static OMC::AllocatedRect2DfromQVariant (const QVariant &qvar)
 

Public Attributes

double x
 Origin of the object in the x axis.
 
double y
 Origin of the object in the y axis.
 
double width
 width of the object
 
double height
 height of the object
 

Constructor & Destructor Documentation

◆ AllocatedRect2D()

OMC::AllocatedRect2D::AllocatedRect2D ( double  width = 0.0,
double  height = 0.0,
double  x = 0.0,
double  y = 0.0 
)

Generic 2D Rect Object

Inheritance diagram for OMC::AllocatedRect2D:
Collaboration diagram for OMC::AllocatedRect2D: