#include <GLViewer_Viewer.h>
Enumerator |
---|
Debut |
|
EnTrain |
|
Fin |
|
GLViewer_ViewTransformer::GLViewer_ViewTransformer |
( |
GLViewer_Viewer * |
v, |
|
|
int |
type |
|
) |
| |
GLViewer_ViewTransformer::~GLViewer_ViewTransformer |
( |
| ) |
|
static int GLViewer_ViewTransformer::accelKey |
( |
| ) |
|
|
inlinestatic |
Sets/returns acceleration key ( CTRL by default )
void GLViewer_ViewTransformer::drawRect |
( |
const QRect & |
theRect | ) |
|
|
protected |
void GLViewer_ViewTransformer::endDrawRect |
( |
| ) |
|
|
protected |
bool GLViewer_ViewTransformer::eventFilter |
( |
QObject * |
o, |
|
|
QEvent * |
e |
|
) |
| |
|
virtual |
void GLViewer_ViewTransformer::exec |
( |
| ) |
|
|
virtual |
Runs transfomation. Redefine to add your own 'instant' transforms ( for ex., 'FitAll' is an instant transform ). [ virtual public ]
Reimplemented in GLViewer_View2dTransformer.
References Fin, GLViewer_Viewer::FitAll, GLViewer_ViewPort::fitAll(), GLViewer_Viewer::FitRect, fitRectButton(), GLViewer_Viewer::FitSelect, GLViewer_ViewPort::fitSelect(), GLViewer_Viewer::getActiveView(), GLViewer_ViewPort::getHandCursor(), GLViewer_ViewPort::getPanCursor(), GLViewer_ViewPort::getPanglCursor(), GLViewer_ViewFrame::getViewPort(), GLViewer_ViewPort::getZoomCursor(), myMajorBtn, myType, myViewer, onTransform(), GLViewer_Viewer::Pan, panButton(), GLViewer_Viewer::PanGlobal, panGlobalButton(), GLViewer_Viewer::Reset, GLViewer_ViewPort::reset(), GLViewer_Viewer::Zoom, and zoomButton().
static int GLViewer_ViewTransformer::fitRectButton |
( |
| ) |
|
|
inlinestatic |
Sets/returns mouse button used for fit area ( MB1 by default )
void GLViewer_ViewTransformer::initTransform |
( |
bool |
init | ) |
|
|
protected |
Transforms the viewport. Used for 'non-instant' transforms only( ex. Rotate, Pan etc ). [ virtual protected ]
Reimplemented in GLViewer_View2dTransformer.
References GLViewer_Viewer::activateTransform(), drawRect(), Fin, GLViewer_Viewer::FitRect, GLViewer_ViewPort::fitRect(), GLViewer_Viewer::getActiveView(), GLViewer_ViewFrame::getViewPort(), myButtonState, myCurr, myMajorBtn, myStart, myType, myViewer, GLViewer_Viewer::NoTransform, GLViewer_Viewer::Pan, GLViewer_ViewPort::pan(), GLViewer_Viewer::PanGlobal, GLViewer_ViewPort::setCenter(), GLViewer_Viewer::Zoom, and GLViewer_ViewPort::zoom().
static int GLViewer_ViewTransformer::panButton |
( |
| ) |
|
|
inlinestatic |
Sets/returns mouse button used for panning ( MB2 by default )
static int GLViewer_ViewTransformer::panGlobalButton |
( |
| ) |
|
|
inlinestatic |
Sets/returns mouse button used for global pan ( MB1 by default )
static void GLViewer_ViewTransformer::setAccelKey |
( |
int |
k | ) |
|
|
inlinestatic |
static void GLViewer_ViewTransformer::setFitRectButton |
( |
int |
b | ) |
|
|
inlinestatic |
static void GLViewer_ViewTransformer::setPanButton |
( |
int |
b | ) |
|
|
inlinestatic |
static void GLViewer_ViewTransformer::setPanGlobalButton |
( |
int |
b | ) |
|
|
inlinestatic |
static void GLViewer_ViewTransformer::setZoomButton |
( |
int |
b | ) |
|
|
inlinestatic |
int GLViewer_ViewTransformer::type |
( |
| ) |
const |
Returns transformer type
Returns the type of the transformer. [ public ]
References myType.
static int GLViewer_ViewTransformer::zoomButton |
( |
| ) |
|
|
inlinestatic |
Sets/returns mouse button used for zooming ( MB1 by default )
int GLViewer_ViewTransformer::acccelKey = Qt::ControlModifier |
|
staticprotected |
int GLViewer_ViewTransformer::fitRectBtn = Qt::LeftButton |
|
staticprotected |
int GLViewer_ViewTransformer::myButtonState |
|
protected |
QPoint GLViewer_ViewTransformer::myCurr |
|
protected |
int GLViewer_ViewTransformer::myMajorBtn |
|
protected |
QRubberBand* GLViewer_ViewTransformer::myRectBand |
|
protected |
QCursor GLViewer_ViewTransformer::mySavedCursor |
|
protected |
bool GLViewer_ViewTransformer::mySavedMouseTrack |
|
protected |
QPoint GLViewer_ViewTransformer::myStart |
|
protected |
int GLViewer_ViewTransformer::myType |
|
protected |
int GLViewer_ViewTransformer::panBtn = Qt::MidButton |
|
staticprotected |
int GLViewer_ViewTransformer::panGlobalBtn = Qt::LeftButton |
|
staticprotected |
int GLViewer_ViewTransformer::zoomBtn = Qt::LeftButton |
|
staticprotected |
The documentation for this class was generated from the following files: