Version: 6.3.1
Public Member Functions | Protected Attributes

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.
bool isEmpty () const
 Checks empty status.
bool isNull () const
 Checks null status.
bool isValid () const
 Checks valid status.
bool contains (GLViewer_Pnt pnt)
 Checks staus of contains point.
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 ( )
GLViewer_Rect.GLViewer_Rect ( float  theLeft,
float  theRight,
float  theTop,
float  theBottom 
)
GLViewer_Rect.GLViewer_Rect ( QRect  theRect)

Member Function Documentation

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

Field Documentation

float GLViewer_Rect.myLeft [protected]
float GLViewer_Rect.myRight [protected]
float GLViewer_Rect.myTop [protected]
float GLViewer_Rect.myBottom [protected]
bool GLViewer_Rect.myIsEmpty [protected]
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS