Version: 9.15.0
GLViewer_Rect Class Reference

#include <GLViewer_Geom.h>

Public Member Functions

 GLViewer_Rect ()
 
 GLViewer_Rect (float theLeft, float theRight, float theTop, float theBottom)
 
 GLViewer_Rect (QRect theRect)
 
float left () const
 
float right () const
 
float top () const
 
float bottom () const
 
float width () const
 
float height () const
 
void setLeft (float theLeft)
 
void setRight (float theRight)
 
void setTop (float theTop)
 
void setBottom (float theBottom)
 
void setCoords (float theLeft, float theRight, float theBottom, float theTop)
 
QRect toQRect ()
 
void setIsEmpty (bool on)
 On/off empty status. More...
 
bool isEmpty () const
 Checks empty status. More...
 
bool isNull () const
 Checks null status. More...
 
bool isValid () const
 Checks valid status. More...
 
bool contains (GLViewer_Pnt pnt)
 Checks staus of contains point. More...
 
void move (const float x, const float y)
 

Protected Attributes

float myLeft
 
float myRight
 
float myTop
 
float myBottom
 
bool myIsEmpty
 

Detailed Description

Class GLViewer_Rect Substitution of QRect for OpenGL

Constructor & Destructor Documentation

◆ GLViewer_Rect() [1/3]

GLViewer_Rect::GLViewer_Rect ( )
inline

◆ GLViewer_Rect() [2/3]

GLViewer_Rect::GLViewer_Rect ( float  theLeft,
float  theRight,
float  theTop,
float  theBottom 
)
inline

◆ GLViewer_Rect() [3/3]

GLViewer_Rect::GLViewer_Rect ( QRect  theRect)
inline

Member Function Documentation

◆ bottom()

float GLViewer_Rect::bottom ( ) const
inline

◆ contains()

bool GLViewer_Rect::contains ( GLViewer_Pnt  pnt)
inline

Checks staus of contains point.

References GLViewer_Pnt::x(), and GLViewer_Pnt::y().

◆ height()

float GLViewer_Rect::height ( ) const
inline

◆ isEmpty()

bool GLViewer_Rect::isEmpty ( ) const
inline

Checks empty status.

◆ isNull()

bool GLViewer_Rect::isNull ( ) const
inline

Checks null status.

◆ isValid()

bool GLViewer_Rect::isValid ( ) const
inline

Checks valid status.

◆ left()

float GLViewer_Rect::left ( ) const
inline

◆ move()

void GLViewer_Rect::move ( const float  x,
const float  y 
)
inline

◆ right()

float GLViewer_Rect::right ( ) const
inline

◆ setBottom()

void GLViewer_Rect::setBottom ( float  theBottom)
inline

◆ setCoords()

void GLViewer_Rect::setCoords ( float  theLeft,
float  theRight,
float  theBottom,
float  theTop 
)
inline

◆ setIsEmpty()

void GLViewer_Rect::setIsEmpty ( bool  on)
inline

On/off empty status.

◆ setLeft()

void GLViewer_Rect::setLeft ( float  theLeft)
inline

◆ setRight()

void GLViewer_Rect::setRight ( float  theRight)
inline

◆ setTop()

void GLViewer_Rect::setTop ( float  theTop)
inline

◆ top()

float GLViewer_Rect::top ( ) const
inline

◆ toQRect()

QRect GLViewer_Rect::toQRect ( )
inline
Warning
This method translate only rect format

◆ width()

float GLViewer_Rect::width ( ) const
inline

Member Data Documentation

◆ myBottom

float GLViewer_Rect::myBottom
protected

◆ myIsEmpty

bool GLViewer_Rect::myIsEmpty
protected

◆ myLeft

float GLViewer_Rect::myLeft
protected

◆ myRight

float GLViewer_Rect::myRight
protected

◆ myTop

float GLViewer_Rect::myTop
protected

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