Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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::GLViewer_Rect ( )
inline
GLViewer_Rect::GLViewer_Rect ( float  theLeft,
float  theRight,
float  theTop,
float  theBottom 
)
inline
GLViewer_Rect::GLViewer_Rect ( QRect  theRect)
inline

Member Function Documentation

float GLViewer_Rect::bottom ( ) const
inline
bool GLViewer_Rect::contains ( GLViewer_Pnt  pnt)
inline
float GLViewer_Rect::height ( ) const
inline
bool GLViewer_Rect::isEmpty ( ) const
inline
bool GLViewer_Rect::isNull ( ) const
inline
bool GLViewer_Rect::isValid ( ) const
inline
float GLViewer_Rect::left ( ) const
inline
void GLViewer_Rect::move ( const float  x,
const float  y 
)
inline
float GLViewer_Rect::right ( ) const
inline
void GLViewer_Rect::setBottom ( float  theBottom)
inline
void GLViewer_Rect::setCoords ( float  theLeft,
float  theRight,
float  theBottom,
float  theTop 
)
inline
void GLViewer_Rect::setIsEmpty ( bool  on)
inline
void GLViewer_Rect::setLeft ( float  theLeft)
inline
void GLViewer_Rect::setRight ( float  theRight)
inline
void GLViewer_Rect::setTop ( float  theTop)
inline
float GLViewer_Rect::top ( ) const
inline
QRect GLViewer_Rect::toQRect ( )
inline
Warning
This method translate only rect format
float GLViewer_Rect::width ( ) const
inline

Member Data Documentation

float GLViewer_Rect::myBottom
protected
bool GLViewer_Rect::myIsEmpty
protected
float GLViewer_Rect::myLeft
protected
float GLViewer_Rect::myRight
protected
float GLViewer_Rect::myTop
protected

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