|
CEDRIC
Revision_backup-2009-02
|
Simple rectangle structure (e.g. usefull for saving ortho clipplanes) More...
#include <ClipRect.h>
Public Member Functions | |
| ClipRect () | |
| ClipRect (double left_, double right_, double bottom_, double top_) | |
| void | sort () |
| Swap values such that (left <= right) && (bottom <= top) More... | |
| double | center_x () const |
| Returns horizontal center. More... | |
| double | center_y () const |
| Returns vertical center. More... | |
| double | width () const |
| Returns right-left (absolute value) More... | |
| double | height () const |
| Returns bottom-top (absolute value) More... | |
| void | scale_x (float s) |
| Scale horizontal by extending left and right border equally. More... | |
| void | scale_y (float s) |
| Scale vertical by extending bottom and top border equally. More... | |
| double | aspect () const |
| Returns aspect width()/height() More... | |
| void | translate (double x, double y) |
| Translate center by x and y. More... | |
| ClipRect (osg::Vec2 min, osg::Vec2 max) | |
| ClipRect (const osg::BoundingSphere &bs) | |
| void | fromBoundingSphere (const osg::BoundingSphere &bs) |
| ClipRect (const QRect &qr) | |
| void | fromQRect (const QRect &qr) |
Public Attributes | |
| double | left |
| double | right |
| double | bottom |
| double | top |
Simple rectangle structure (e.g. usefull for saving ortho clipplanes)
|
inline |
|
inline |
|
inline |
References fromBoundingSphere().
|
inline |
References fromQRect().
|
inline |
|
inline |
|
inline |
|
inline |
References bottom, left, right, and top.
Referenced by ClipRect().
|
inline |
References bottom, left, right, and top.
Referenced by ClipRect().
|
inline |
|
inline |
Scale horizontal by extending left and right border equally.
References center_x(), left, and right.
|
inline |
Scale vertical by extending bottom and top border equally.
References bottom, center_y(), and top.
|
inline |
Swap values such that (left <= right) && (bottom <= top)
References bottom, left, right, and top.
Referenced by MyCameraWidget::mouseReleaseEvent(), and MyCameraWidget::paintGL().
|
inline |
Translate center by x and y.
References bottom, center_x(), center_y(), left, right, and top.
|
inline |
| double ClipRect::bottom |
| double ClipRect::left |
| double ClipRect::right |
| double ClipRect::top |
1.8.6