#include <GLViewer_Viewer2d.h>
Public Member Functions | |
GLViewer_View2dTransformer (GLViewer_Viewer *, int) | |
~GLViewer_View2dTransformer () | |
virtual void | exec () |
Public Member Functions inherited from GLViewer_ViewTransformer | |
GLViewer_ViewTransformer (GLViewer_Viewer *, int type) | |
~GLViewer_ViewTransformer () | |
int | type () const |
virtual bool | eventFilter (QObject *, QEvent *) |
Static Public Member Functions | |
static int | rotateButton () |
static void | setRotateButton (int b) |
Static Public Member Functions inherited from GLViewer_ViewTransformer | |
static int | accelKey () |
static void | setAccelKey (int k) |
static int | zoomButton () |
static void | setZoomButton (int b) |
static int | panButton () |
static void | setPanButton (int b) |
static int | panGlobalButton () |
static void | setPanGlobalButton (int b) |
static int | fitRectButton () |
static void | setFitRectButton (int b) |
Protected Member Functions | |
void | onTransform (TransformState) |
Protected Member Functions inherited from GLViewer_ViewTransformer | |
void | initTransform (bool) |
void | drawRect (const QRect &theRect) |
void | endDrawRect () |
Delete rubber band on the end on the dragging operation. More... | |
Static Protected Attributes | |
static int | rotateBtn = Qt::RightButton |
Static Protected Attributes inherited from GLViewer_ViewTransformer | |
static int | panBtn = Qt::MidButton |
static int | zoomBtn = Qt::LeftButton |
static int | fitRectBtn = Qt::LeftButton |
static int | panGlobalBtn = Qt::LeftButton |
static int | acccelKey = Qt::ControlModifier |
Additional Inherited Members | |
Protected Types inherited from GLViewer_ViewTransformer | |
enum | TransformState { Debut, EnTrain, Fin } |
Protected Attributes inherited from GLViewer_ViewTransformer | |
GLViewer_Viewer * | myViewer |
int | myType |
QCursor | mySavedCursor |
bool | mySavedMouseTrack |
QPoint | myStart |
QPoint | myCurr |
int | myButtonState |
int | myMajorBtn |
QRubberBand * | myRectBand |
selection rectangle rubber band More... | |
GLViewer_View2dTransformer::GLViewer_View2dTransformer | ( | GLViewer_Viewer * | viewer, |
int | typ | ||
) |
Constructor
References GLViewer_ViewTransformer::initTransform(), GLViewer_Viewer::Rotate, and GLViewer_ViewTransformer::type().
GLViewer_View2dTransformer::~GLViewer_View2dTransformer | ( | ) |
Destructor
References GLViewer_ViewTransformer::initTransform(), GLViewer_Viewer::Rotate, and GLViewer_ViewTransformer::type().
|
virtual |
Redefined to provide specific 3D transfomations. [ virtual public ]
Reimplemented from GLViewer_ViewTransformer.
References GLViewer_ViewTransformer::exec(), GLViewer_Viewer::getActiveView(), GLViewer_ViewPort::getRotCursor(), GLViewer_ViewFrame::getViewPort(), GLViewer_ViewTransformer::myMajorBtn, GLViewer_ViewTransformer::myType, GLViewer_ViewTransformer::myViewer, GLViewer_Viewer::Rotate, and rotateButton().
|
protectedvirtual |
Handles rotation. [ protected virtual ]
Reimplemented from GLViewer_ViewTransformer.
References GLViewer_ViewTransformer::Debut, GLViewer_ViewPort2d::endRotation(), GLViewer_ViewTransformer::EnTrain, GLViewer_ViewTransformer::Fin, GLViewer_Viewer::getActiveView(), GLViewer_ViewFrame::getViewPort(), GLViewer_ViewTransformer::myButtonState, GLViewer_ViewTransformer::myCurr, GLViewer_ViewTransformer::myMajorBtn, GLViewer_ViewTransformer::myStart, GLViewer_ViewTransformer::myViewer, GLViewer_ViewTransformer::onTransform(), GLViewer_Viewer::Rotate, GLViewer_ViewPort2d::rotate(), GLViewer_ViewPort2d::startRotation(), and GLViewer_ViewTransformer::type().
|
inlinestatic |
Sets/returns mouse butto which will be used for rotation ( MB1 by default )
|
inlinestatic |
|
staticprotected |