#include <QGVNavStyle.h>
Public Member Functions | |
virtual bool | allowContextMenu (QContextMenuEvent *event) |
QGVPage * | getViewer () |
virtual void | handleEnterEvent (QEvent *event) |
virtual void | handleFocusOutEvent (QFocusEvent *event) |
virtual void | handleKeyPressEvent (QKeyEvent *event) |
virtual void | handleKeyReleaseEvent (QKeyEvent *event) |
virtual void | handleLeaveEvent (QEvent *event) |
virtual void | handleMouseMoveEvent (QMouseEvent *event) |
virtual void | handleMousePressEvent (QMouseEvent *event) |
virtual void | handleMouseReleaseEvent (QMouseEvent *event) |
virtual void | handleWheelEvent (QWheelEvent *event) |
virtual double | mouseZoomFactor (QPoint p) |
virtual void | pan (QPoint p) |
virtual void | placeBalloon (QPoint p) |
virtual void | pseudoContextEvent () |
QGVNavStyle (QGVPage *qgvp) | |
void | setViewer (QGVPage *qgvp) |
virtual void | startClick (Qt::MouseButton b) |
virtual void | startPan (QPoint p) |
virtual void | startZoom (QPoint p) |
virtual void | stopClick (void) |
virtual void | stopPan () |
virtual void | stopZoom () |
virtual void | zoom (double factor) |
virtual | ~QGVNavStyle () |
Public Member Functions inherited from Base::BaseClass | |
BaseClass () | |
Construction. More... | |
BaseClass (const BaseClass &)=default | |
virtual PyObject * | getPyObject () |
This method returns the Python wrapper for a C++ object. More... | |
virtual Type | getTypeId () const |
bool | isDerivedFrom (const Type type) const |
BaseClass & | operator= (const BaseClass &)=default |
virtual void | setPyObject (PyObject *) |
virtual | ~BaseClass () |
Destruction. More... | |
Protected Member Functions | |
virtual void | initialize () |
virtual void | setAnchor () |
Protected Attributes | |
bool | altdown |
bool | button1down |
bool | button2down |
bool | button3down |
bool | ctrldown |
bool | invertZoom |
Qt::MouseButton | m_clickButton |
bool | m_clickPending |
int | m_currentmode |
KeyCombination | m_keyCombo |
bool | m_panPending |
int | m_reversePan |
int | m_reverseScroll |
QCursor | m_saveCursor |
QGVPage * | m_viewer |
bool | m_zoomPending |
bool | panningActive |
QPoint | panOrigin |
bool | shiftdown |
bool | zoomAtCursor |
bool | zoomingActive |
QPoint | zoomOrigin |
double | zoomStep |
Additional Inherited Members | |
Static Public Member Functions inherited from Base::BaseClass | |
static void * | create () |
static Type | getClassTypeId () |
static void | init () |
Static Protected Member Functions inherited from Base::BaseClass | |
static void | initSubclass (Base::Type &toInit, const char *ClassName, const char *ParentName, Type::instantiationMethod method=nullptr) |
TechDrawGui::QGVNavStyle::QGVNavStyle | ( | QGVPage * | qgvp | ) |
References initialize().
|
virtual |
|
virtual |
QGVPage * TechDrawGui::QGVNavStyle::getViewer | ( | void | ) |
Referenced by handleEnterEvent(), handleFocusOutEvent(), handleKeyPressEvent(), handleLeaveEvent(), handleMouseMoveEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTinkerCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent(), handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleTinkerCAD::handleMouseReleaseEvent(), initialize(), pan(), placeBalloon(), pseudoContextEvent(), startPan(), startZoom(), stopPan(), stopZoom(), and zoom().
|
virtual |
References TechDrawGui::QGVPage::getBalloonCursor(), and getViewer().
Referenced by TechDrawGui::QGVPage::enterEvent().
|
virtual |
References TechDrawGui::QGVPage::cancelBalloonPlacing(), and getViewer().
Referenced by TechDrawGui::QGVPage::focusOutEvent().
|
virtual |
Reimplemented in TechDrawGui::QGVNavStyleTouchpad.
References TechDrawGui::QGVPage::cancelBalloonPlacing(), Base::Console(), getViewer(), TechDrawGui::QGVPage::kbPanScroll(), Base::ConsoleSingleton::Message(), shiftdown, zoom(), and zoomStep.
Referenced by TechDrawGui::QGVPage::keyPressEvent().
|
virtual |
Reimplemented in TechDrawGui::QGVNavStyleBlender, TechDrawGui::QGVNavStyleCAD, TechDrawGui::QGVNavStyleMaya, TechDrawGui::QGVNavStyleOCC, TechDrawGui::QGVNavStyleOpenSCAD, and TechDrawGui::QGVNavStyleTouchpad.
References Base::Console(), Base::ConsoleSingleton::Message(), and shiftdown.
Referenced by TechDrawGui::QGVPage::keyReleaseEvent().
|
virtual |
References TechDrawGui::QGVPage::getBalloonCursor(), TechDrawGui::QGVPage::getBalloonCursorPos(), and getViewer().
Referenced by TechDrawGui::QGVPage::leaveEvent().
|
virtual |
Reimplemented in TechDrawGui::QGVNavStyleBlender, TechDrawGui::QGVNavStyleCAD, TechDrawGui::QGVNavStyleGesture, TechDrawGui::QGVNavStyleInventor, TechDrawGui::QGVNavStyleMaya, TechDrawGui::QGVNavStyleOCC, TechDrawGui::QGVNavStyleOpenSCAD, TechDrawGui::QGVNavStyleRevit, TechDrawGui::QGVNavStyleTinkerCAD, and TechDrawGui::QGVNavStyleTouchpad.
References getViewer(), pan(), panningActive, and TechDrawGui::QGVPage::setBalloonCursorPos().
Referenced by TechDrawGui::QGVPage::mouseMoveEvent().
|
virtual |
Reimplemented in TechDrawGui::QGVNavStyleBlender, TechDrawGui::QGVNavStyleCAD, TechDrawGui::QGVNavStyleGesture, TechDrawGui::QGVNavStyleInventor, TechDrawGui::QGVNavStyleMaya, TechDrawGui::QGVNavStyleOCC, TechDrawGui::QGVNavStyleOpenSCAD, TechDrawGui::QGVNavStyleRevit, and TechDrawGui::QGVNavStyleTinkerCAD.
References panningActive, and startPan().
Referenced by TechDrawGui::QGVPage::mousePressEvent().
|
virtual |
Reimplemented in TechDrawGui::QGVNavStyleBlender, TechDrawGui::QGVNavStyleCAD, TechDrawGui::QGVNavStyleGesture, TechDrawGui::QGVNavStyleInventor, TechDrawGui::QGVNavStyleMaya, TechDrawGui::QGVNavStyleOCC, TechDrawGui::QGVNavStyleOpenSCAD, TechDrawGui::QGVNavStyleRevit, and TechDrawGui::QGVNavStyleTinkerCAD.
References getViewer(), panningActive, placeBalloon(), and stopPan().
Referenced by TechDrawGui::QGVPage::mouseReleaseEvent().
|
virtual |
References invertZoom, and zoom().
Referenced by TechDrawGui::QGVPage::wheelEvent().
|
protectedvirtual |
References altdown, button1down, button2down, button3down, ctrldown, App::GetApplication(), ParameterGrp::GetBool(), ParameterGrp::GetFloat(), ParameterGrp::GetGroup(), ParameterGrp::GetInt(), App::Application::GetParameterGroupByPath(), App::Application::GetUserParameter(), getViewer(), invertZoom, m_clickButton, m_clickPending, m_panPending, m_reversePan, m_reverseScroll, m_saveCursor, m_zoomPending, panningActive, shiftdown, zoomAtCursor, zoomingActive, and zoomStep.
Referenced by QGVNavStyle().
|
virtual |
References draftgeoutils.edges::invert(), invertZoom, zoomOrigin, and zoomStep.
Referenced by TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), and TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent().
|
virtual |
References getViewer(), m_reversePan, m_reverseScroll, and panOrigin.
Referenced by handleMouseMoveEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTinkerCAD::handleMouseMoveEvent(), and TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent().
|
virtual |
References TechDrawGui::QGSPage::createBalloon(), TechDrawGui::QGVPage::getBalloonCursor(), TechDrawGui::QGVPage::getScene(), getViewer(), and TechDrawGui::QGVPage::setBalloonPlacing().
Referenced by handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseReleaseEvent(), and TechDrawGui::QGVNavStyleTinkerCAD::handleMouseReleaseEvent().
|
virtual |
|
protectedvirtual |
Reimplemented in TechDrawGui::QGVNavStyleTouchpad.
References m_viewer, and zoomAtCursor.
void TechDrawGui::QGVNavStyle::setViewer | ( | QGVPage * | qgvp | ) |
|
virtual |
|
virtual |
References getViewer(), m_panPending, panningActive, panOrigin, and TechDrawGui::QGVPage::setPanCursor().
Referenced by TechDrawGui::QGVNavStyleBlender::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTinkerCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent(), and handleMousePressEvent().
|
virtual |
References getViewer(), m_zoomPending, TechDrawGui::QGVPage::setZoomCursor(), zoomingActive, and zoomOrigin.
Referenced by TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), and TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent().
|
virtual |
References m_clickButton, and m_clickPending.
Referenced by TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), and TechDrawGui::QGVNavStyleRevit::handleMouseReleaseEvent().
|
virtual |
References getViewer(), m_panPending, panningActive, and TechDrawGui::QGVPage::resetCursor().
Referenced by TechDrawGui::QGVNavStyleBlender::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleTouchpad::handleKeyReleaseEvent(), handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseReleaseEvent(), and TechDrawGui::QGVNavStyleTinkerCAD::handleMouseReleaseEvent().
|
virtual |
References getViewer(), m_zoomPending, TechDrawGui::QGVPage::resetCursor(), and zoomingActive.
Referenced by TechDrawGui::QGVNavStyleCAD::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleTouchpad::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseReleaseEvent(), and TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent().
|
virtual |
References getViewer(), and m_zoomPending.
Referenced by handleKeyPressEvent(), TechDrawGui::QGVNavStyleTouchpad::handleKeyPressEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent(), and handleWheelEvent().
|
protected |
Referenced by draftguitools.gui_dimensions.Dimension::action(), and initialize().
|
protected |
Referenced by initialize().
|
protected |
Referenced by initialize().
|
protected |
Referenced by initialize().
|
protected |
Referenced by initialize().
|
protected |
Referenced by handleWheelEvent(), initialize(), and mouseZoomFactor().
|
protected |
|
protected |
Referenced by TechDrawGui::QGVNavStyleOpenSCAD::allowContextMenu(), TechDrawGui::QGVNavStyleRevit::allowContextMenu(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseReleaseEvent(), initialize(), startClick(), and stopClick().
|
protected |
|
protected |
|
protected |
|
protected |
Referenced by initialize(), and pan().
|
protected |
Referenced by initialize(), and pan().
|
protected |
Referenced by initialize().
|
protected |
Referenced by setAnchor(), and TechDrawGui::QGVNavStyleTouchpad::setAnchor().
|
protected |
|
protected |
Referenced by TechDrawGui::QGVNavStyleBlender::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleTouchpad::handleKeyReleaseEvent(), handleMouseMoveEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleGesture::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTinkerCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent(), handleMousePressEvent(), handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleBlender::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleRevit::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleTinkerCAD::handleMouseReleaseEvent(), initialize(), startPan(), and stopPan().
|
protected |
Referenced by pan(), and startPan().
|
protected |
Referenced by handleKeyPressEvent(), handleKeyReleaseEvent(), and initialize().
|
protected |
Referenced by initialize(), and setAnchor().
|
protected |
Referenced by TechDrawGui::QGVNavStyleCAD::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleTouchpad::handleKeyReleaseEvent(), TechDrawGui::QGVNavStyleCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleTouchpad::handleMouseMoveEvent(), TechDrawGui::QGVNavStyleInventor::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleMaya::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOCC::handleMouseReleaseEvent(), TechDrawGui::QGVNavStyleOpenSCAD::handleMouseReleaseEvent(), initialize(), startZoom(), and stopZoom().
|
protected |
Referenced by mouseZoomFactor(), and startZoom().
|
protected |