The navigation style base class. More...
#include <NavigationStyle.h>
Public Types | |
enum | OrbitStyle { Turntable, Trackball } |
enum | SelectionMode { Lasso = 0, Rectangle = 1, BoxZoom = 2, Clip = 3 } |
enum | ViewerMode { IDLE, INTERACT, ZOOMING, BOXZOOM, PANNING, DRAGGING, SPINNING, SEEK_WAIT_MODE, SEEK_MODE, SELECTION } |
Public Member Functions | |
void | boxZoom (const SbBox2s &box) |
OrbitStyle | getOrbitStyle () const |
const std::vector< SbVec2s > & | getPolygon (SbBool *clip_inner=0) const |
virtual Base::Type | getTypeId (void) const |
int | getViewingMode () const |
SbBool | isAnimating (void) const |
SbBool | isAnimationEnabled (void) const |
SbBool | isPopupMenuEnabled (void) const |
SbBool | isSelecting () const |
SbBool | isZoomInverted () const |
void | lookAtPoint (const SbVec3f &) |
NavigationStyle () | |
NavigationStyle & | operator= (const NavigationStyle &ns) |
virtual SbBool | processEvent (const SoEvent *const ev) |
void | redraw () |
void | setAnimationEnabled (const SbBool enable) |
void | setCameraOrientation (const SbRotation &rot) |
void | setOrbitStyle (OrbitStyle style) |
void | setPopupMenuEnabled (const SbBool on) |
void | setViewer (View3DInventorViewer *) |
void | setViewingMode (const ViewerMode newmode) |
void | setZoomInverted (SbBool) |
void | startAnimating (const SbVec3f &axis, float velocity) |
void | startSelection (SelectionMode=Lasso) |
void | startSelection (AbstractMouseSelection *) |
void | stopAnimating (void) |
void | stopSelection () |
void | updateAnimation () |
virtual void | viewAll () |
virtual | ~NavigationStyle () |
Static Public Member Functions | |
static void * | create (void) |
static Base::Type | getClassTypeId (void) |
static void | init (void) |
Protected Member Functions | |
void | addToLog (const SbVec2s pos, const SbTime time) |
void | clearLog (void) |
SbBool | doSpin () |
void | finalize () |
int | getInteractiveCount (void) const |
SbBool | handleEventInForeground (const SoEvent *const e) |
void | initialize () |
void | interactiveCountDec (void) |
void | interactiveCountInc (void) |
SbBool | isSeekMode (void) const |
SbBool | isViewing (void) const |
SbBool | lookAtPoint (const SbVec2s screenpos) |
virtual void | openPopupMenu (const SbVec2s &position) |
void | pan (SoCamera *camera) |
void | panCamera (SoCamera *camera, float vpaspect, const SbPlane &panplane, const SbVec2f &previous, const SbVec2f ¤t) |
void | panToCenter (const SbPlane &pplane, const SbVec2f &currpos) |
virtual SbBool | processSoEvent (const SoEvent *const ev) |
void | reorientCamera (SoCamera *camera, const SbRotation &rot) |
Rotate the camera by the given amount, then reposition it so we're still pointing at the same focal point. | |
void | seekToPoint (const SbVec3f &scenepos) |
SbBool | seekToPoint (const SbVec2s screenpos) |
void | setSeekMode (SbBool enable) |
void | setViewing (SbBool) |
void | spin (const SbVec2f &pointerpos) |
Uses the sphere sheet projector to map the mouseposition onto a 3D point and find a rotation from this and the last calculated point. | |
void | zoom (SoCamera *camera, float diffvalue) |
Dependent on the camera type this will either shrink or expand the height of the viewport (orthogonal camera) or move the camera closer or further away from the focal point in the scene. | |
void | zoomByCursor (const SbVec2f &thispos, const SbVec2f &prevpos) |
Protected Attributes | |
SbBool | altdown |
SbBool | button1down |
SbBool | button2down |
SbBool | button3down |
SbTime | centerTime |
SbBool | ctrldown |
ViewerMode | currentmode |
SbBool | invertZoom |
SbVec2f | lastmouseposition |
SbBool | lockrecenter |
struct { | |
short historysize | |
SbVec2s * position | |
short size | |
SbTime * time | |
} | log |
SbBool | menuenabled |
SbPlane | panningplane |
SbTime | prevRedrawTime |
SbBool | shiftdown |
View3DInventorViewer * | viewer |
Mouse model | |
SbBool | clipInner |
AbstractMouseSelection * | mouseSelection |
std::vector< SbVec2s > | pcPolygon |
Spinning data | |
SbBool | spinanimatingallowed |
SbRotation | spinincrement |
SbSphereSheetProjector * | spinprojector |
SbRotation | spinRotation |
int | spinsamplecounter |
Friends | |
struct | NavigationStyleP |
The navigation style base class.
Definition at line 68 of file NavigationStyle.h.
Definition at line 93 of file NavigationStyle.h.
Lasso |
Select objects using a lasso. |
Rectangle |
Select objects using a rectangle. |
BoxZoom |
Perform a box zoom. |
Clip |
Clip objects using a lasso. |
Definition at line 86 of file NavigationStyle.h.
IDLE | |
INTERACT | |
ZOOMING | |
BOXZOOM | |
PANNING | |
DRAGGING | |
SPINNING | |
SEEK_WAIT_MODE | |
SEEK_MODE | |
SELECTION |
Definition at line 73 of file NavigationStyle.h.
NavigationStyle::NavigationStyle | ( | ) |
Definition at line 158 of file NavigationStyle.cpp.
References initialize(), NavigationStyleP, PRIVATE, and Gui::NavigationStyleP::viewAnimationCB().
NavigationStyle::~NavigationStyle | ( | ) | [virtual] |
Definition at line 165 of file NavigationStyle.cpp.
References finalize(), and PRIVATE.
void NavigationStyle::addToLog | ( | const SbVec2s | pos, | |
const SbTime | time | |||
) | [protected] |
Definition at line 946 of file NavigationStyle.cpp.
References log.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void NavigationStyle::boxZoom | ( | const SbBox2s & | box | ) |
Definition at line 460 of file NavigationStyle.cpp.
References KDL::atan(), getClassTypeId(), panCamera(), draftTools::plane, scale, size, KDL::tan(), and viewer.
Referenced by Gui::View3DInventorViewer::boxZoom().
void NavigationStyle::clearLog | ( | void | ) | [protected] |
void * Gui::NavigationStyle::create | ( | void | ) | [static] |
Reimplemented from Base::BaseClass.
Reimplemented in Gui::UserNavigationStyle, Gui::InventorNavigationStyle, Gui::CADNavigationStyle, and Gui::BlenderNavigationStyle.
Definition at line 156 of file NavigationStyle.cpp.
SbBool NavigationStyle::doSpin | ( | ) | [protected] |
Definition at line 758 of file NavigationStyle.cpp.
References SketcherExample::f, lastmouseposition, log, spinanimatingallowed, spinprojector, spinRotation, and viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), and Gui::CADNavigationStyle::processSoEvent().
void NavigationStyle::finalize | ( | ) | [protected] |
Definition at line 220 of file NavigationStyle.cpp.
References log, and spinprojector.
Referenced by ~NavigationStyle().
Base::Type Gui::NavigationStyle::getClassTypeId | ( | void | ) | [static] |
Reimplemented from Base::BaseClass.
Reimplemented in Gui::UserNavigationStyle, Gui::InventorNavigationStyle, Gui::CADNavigationStyle, and Gui::BlenderNavigationStyle.
Definition at line 156 of file NavigationStyle.cpp.
Referenced by boxZoom(), Gui::View3DInventorViewer::setNavigationType(), and viewAll().
int NavigationStyle::getInteractiveCount | ( | void | ) | const [protected] |
Definition at line 237 of file NavigationStyle.cpp.
References viewer.
NavigationStyle::OrbitStyle NavigationStyle::getOrbitStyle | ( | ) | const |
Definition at line 248 of file NavigationStyle.cpp.
References FCSphereSheetProjector::getOrbitStyle(), and spinprojector.
const std::vector< SbVec2s > & NavigationStyle::getPolygon | ( | SbBool * | clip_inner = 0 |
) | const |
Definition at line 937 of file NavigationStyle.cpp.
References clipInner, and pcPolygon.
Referenced by Gui::View3DInventorViewer::getGLPolygon(), and Gui::View3DInventorViewer::getPolygon().
Base::Type Gui::NavigationStyle::getTypeId | ( | void | ) | const [virtual] |
Reimplemented from Base::BaseClass.
Reimplemented in Gui::UserNavigationStyle, Gui::InventorNavigationStyle, Gui::CADNavigationStyle, and Gui::BlenderNavigationStyle.
Definition at line 156 of file NavigationStyle.cpp.
Referenced by Gui::View3DInventorPy::getNavigationType(), openPopupMenu(), and Gui::View3DInventorViewer::setNavigationType().
int NavigationStyle::getViewingMode | ( | ) | const |
Definition at line 1038 of file NavigationStyle.cpp.
References currentmode.
Referenced by Gui::View3DInventorViewer::afterRealizeHook(), and Gui::View3DInventorViewer::setCursorEnabled().
SbBool NavigationStyle::handleEventInForeground | ( | const SoEvent *const | e | ) | [protected] |
Definition at line 808 of file NavigationStyle.cpp.
References viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void Gui::NavigationStyle::init | ( | void | ) | [static] |
Reimplemented from Base::BaseClass.
Reimplemented in Gui::UserNavigationStyle, Gui::InventorNavigationStyle, Gui::CADNavigationStyle, and Gui::BlenderNavigationStyle.
Definition at line 156 of file NavigationStyle.cpp.
void NavigationStyle::initialize | ( | ) | [protected] |
Definition at line 187 of file NavigationStyle.cpp.
References altdown, button1down, button2down, button3down, ctrldown, currentmode, SketcherExample::f, App::GetApplication(), App::Application::GetParameterGroupByPath(), IDLE, invertZoom, log, menuenabled, prevRedrawTime, shiftdown, spinanimatingallowed, spinincrement, spinprojector, spinRotation, and spinsamplecounter.
Referenced by NavigationStyle().
void NavigationStyle::interactiveCountDec | ( | void | ) | [protected] |
Definition at line 232 of file NavigationStyle.cpp.
References viewer.
Referenced by lookAtPoint(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), setCameraOrientation(), setViewingMode(), and Gui::NavigationStyleP::viewAnimationCB().
void NavigationStyle::interactiveCountInc | ( | void | ) | [protected] |
Definition at line 227 of file NavigationStyle.cpp.
References viewer.
Referenced by lookAtPoint(), setCameraOrientation(), and setViewingMode().
SbBool NavigationStyle::isAnimating | ( | void | ) | const |
Query if the model in the viewer is currently in spinning mode after a user drag.
Definition at line 845 of file NavigationStyle.cpp.
References currentmode, and SPINNING.
Referenced by Gui::View3DInventorViewer::isAnimating(), lookAtPoint(), setAnimationEnabled(), setCameraOrientation(), and updateAnimation().
SbBool NavigationStyle::isAnimationEnabled | ( | void | ) | const |
Query whether or not it is possible to start a spinning animation by releasing the left mouse button while dragging the mouse.
Definition at line 836 of file NavigationStyle.cpp.
References spinanimatingallowed.
Referenced by Gui::View3DInventorViewer::isAnimationEnabled(), lookAtPoint(), setCameraOrientation(), and startAnimating().
SbBool NavigationStyle::isPopupMenuEnabled | ( | void | ) | const |
Definition at line 1094 of file NavigationStyle.cpp.
References menuenabled.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool NavigationStyle::isSeekMode | ( | void | ) | const [protected] |
Definition at line 264 of file NavigationStyle.cpp.
References viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool NavigationStyle::isSelecting | ( | ) | const |
Definition at line 932 of file NavigationStyle.cpp.
References mouseSelection.
Referenced by Gui::View3DInventorViewer::isSelecting(), and startSelection().
SbBool NavigationStyle::isViewing | ( | void | ) | const [protected] |
Definition at line 254 of file NavigationStyle.cpp.
References viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), and stopAnimating().
SbBool NavigationStyle::isZoomInverted | ( | ) | const |
Definition at line 882 of file NavigationStyle.cpp.
References invertZoom.
SbBool NavigationStyle::lookAtPoint | ( | const SbVec2s | screenpos | ) | [protected] |
Definition at line 284 of file NavigationStyle.cpp.
References interactiveCountInc(), lookAtPoint(), and viewer.
void NavigationStyle::lookAtPoint | ( | const SbVec3f & | pos | ) |
Definition at line 306 of file NavigationStyle.cpp.
References SketcherExample::f, Py::int, interactiveCountDec(), interactiveCountInc(), isAnimating(), isAnimationEnabled(), PRIVATE, spinRotation, stopAnimating(), and viewer.
Referenced by lookAtPoint(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void NavigationStyle::openPopupMenu | ( | const SbVec2s & | position | ) | [protected, virtual] |
Definition at line 1099 of file NavigationStyle.cpp.
References Base::Type::fromName(), Base::Type::getAllDerivedFrom(), Gui::UserNavigationStyle::getClassTypeId(), Gui::MenuManager::getInstance(), getTypeId(), Gui::Application::Instance, RobotExample::pos, Gui::MenuManager::setupContextMenu(), Gui::Application::setupContextMenu(), Py::type(), and viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
NavigationStyle & NavigationStyle::operator= | ( | const NavigationStyle & | ns | ) |
Definition at line 174 of file NavigationStyle.cpp.
References menuenabled, panningplane, and spinanimatingallowed.
void NavigationStyle::pan | ( | SoCamera * | camera | ) | [protected] |
Definition at line 608 of file NavigationStyle.cpp.
References panningplane, and viewer.
Referenced by setViewingMode().
void NavigationStyle::panCamera | ( | SoCamera * | camera, | |
float | vpaspect, | |||
const SbPlane & | panplane, | |||
const SbVec2f & | previous, | |||
const SbVec2f & | current | |||
) | [protected] |
Definition at line 586 of file NavigationStyle.cpp.
Referenced by boxZoom(), panToCenter(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void NavigationStyle::panToCenter | ( | const SbPlane & | pplane, | |
const SbVec2f & | currpos | |||
) | [protected] |
Definition at line 623 of file NavigationStyle.cpp.
References panCamera(), and viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool NavigationStyle::processEvent | ( | const SoEvent *const | ev | ) | [virtual] |
Definition at line 1043 of file NavigationStyle.cpp.
References Gui::AbstractMouseSelection::Cancel, Gui::SelectionSingleton::clearSelection(), clipInner, Gui::AbstractMouseSelection::Continue, currentmode, Gui::AbstractMouseSelection::Finish, Gui::AbstractMouseSelection::getPositions(), Gui::AbstractMouseSelection::handleEvent(), Gui::AbstractMouseSelection::isInner(), mouseSelection, pcPolygon, processSoEvent(), Gui::AbstractMouseSelection::Restart, Gui::Selection(), SELECTION, and viewer.
Referenced by Gui::View3DInventorViewer::processSoEvent().
SbBool NavigationStyle::processSoEvent | ( | const SoEvent *const | ev | ) | [protected, virtual] |
Reimplemented in Gui::InventorNavigationStyle, Gui::CADNavigationStyle, and Gui::BlenderNavigationStyle.
Definition at line 1084 of file NavigationStyle.cpp.
References Gui::View3DInventorViewer::processSoEventBase(), and viewer.
Referenced by processEvent(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void NavigationStyle::redraw | ( | ) |
Definition at line 802 of file NavigationStyle.cpp.
References mouseSelection, and Gui::AbstractMouseSelection::redraw().
Referenced by Gui::View3DInventorViewer::actualRedraw().
void NavigationStyle::reorientCamera | ( | SoCamera * | camera, | |
const SbRotation & | rot | |||
) | [protected] |
Rotate the camera by the given amount, then reposition it so we're still pointing at the same focal point.
Definition at line 568 of file NavigationStyle.cpp.
Referenced by spin(), and updateAnimation().
void NavigationStyle::seekToPoint | ( | const SbVec3f & | scenepos | ) | [protected] |
Definition at line 279 of file NavigationStyle.cpp.
References viewer.
SbBool NavigationStyle::seekToPoint | ( | const SbVec2s | screenpos | ) | [protected] |
Definition at line 274 of file NavigationStyle.cpp.
References viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void NavigationStyle::setAnimationEnabled | ( | const SbBool | enable | ) |
Decide if it should be possible to start a spin animation of the model in the viewer by releasing the mouse button while dragging.
If the enable flag is FALSE
and we're currently animating, the spin will be stopped.
Definition at line 824 of file NavigationStyle.cpp.
References isAnimating(), spinanimatingallowed, and stopAnimating().
Referenced by Gui::View3DInventorViewer::setAnimationEnabled().
void NavigationStyle::setCameraOrientation | ( | const SbRotation & | rot | ) |
Definition at line 363 of file NavigationStyle.cpp.
References SketcherExample::f, Py::int, interactiveCountDec(), interactiveCountInc(), isAnimating(), isAnimationEnabled(), PRIVATE, spinRotation, stopAnimating(), and viewer.
Referenced by Gui::View3DInventorViewer::setCameraOrientation().
void NavigationStyle::setOrbitStyle | ( | NavigationStyle::OrbitStyle | style | ) |
Definition at line 242 of file NavigationStyle.cpp.
References FCSphereSheetProjector::setOrbitStyle(), and spinprojector.
Referenced by Gui::View3DInventor::OnChange().
void NavigationStyle::setPopupMenuEnabled | ( | const SbBool | on | ) |
Definition at line 1089 of file NavigationStyle.cpp.
References menuenabled.
void NavigationStyle::setSeekMode | ( | SbBool | enable | ) | [protected] |
Definition at line 269 of file NavigationStyle.cpp.
References Gui::View3DInventorViewer::setSeekMode(), and viewer.
void NavigationStyle::setViewer | ( | View3DInventorViewer * | view | ) |
Definition at line 182 of file NavigationStyle.cpp.
References viewer.
Referenced by Gui::View3DInventorViewer::setNavigationType().
void NavigationStyle::setViewing | ( | SbBool | enable | ) | [protected] |
Definition at line 259 of file NavigationStyle.cpp.
References Gui::View3DInventorViewer::setViewing(), and viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), and startAnimating().
void NavigationStyle::setViewingMode | ( | const ViewerMode | newmode | ) |
Definition at line 985 of file NavigationStyle.cpp.
References BOXZOOM, clearLog(), currentmode, DRAGGING, interactiveCountDec(), interactiveCountInc(), lastmouseposition, pan(), PANNING, SPINNING, spinprojector, viewer, and ZOOMING.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), Gui::View3DInventorViewer::setSeekMode(), Gui::View3DInventorViewer::setViewing(), startAnimating(), and stopAnimating().
void NavigationStyle::setZoomInverted | ( | SbBool | on | ) |
Definition at line 877 of file NavigationStyle.cpp.
References invertZoom.
Referenced by Gui::View3DInventor::OnChange().
void NavigationStyle::spin | ( | const SbVec2f & | pointerpos | ) | [protected] |
Uses the sphere sheet projector to map the mouseposition onto a 3D point and find a rotation from this and the last calculated point.
Definition at line 715 of file NavigationStyle.cpp.
References log, reorientCamera(), spinincrement, spinprojector, spinsamplecounter, and viewer.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
void NavigationStyle::startAnimating | ( | const SbVec3f & | axis, | |
float | velocity | |||
) |
Starts programmatically the viewer in animation mode. The given axis direction is always in screen coordinates, not in world coordinates.
Definition at line 854 of file NavigationStyle.cpp.
References isAnimationEnabled(), prevRedrawTime, setViewing(), setViewingMode(), spinincrement, SPINNING, and spinRotation.
Referenced by Gui::View3DInventorViewer::startAnimating().
void NavigationStyle::startSelection | ( | NavigationStyle::SelectionMode | mode = Lasso |
) |
Definition at line 896 of file NavigationStyle.cpp.
References BoxZoom, Clip, Gui::AbstractMouseSelection::grabMouseModel(), isSelecting(), Lasso, mouseSelection, Rectangle, stopSelection(), and viewer.
void NavigationStyle::startSelection | ( | AbstractMouseSelection * | mouse | ) |
Definition at line 887 of file NavigationStyle.cpp.
References Gui::AbstractMouseSelection::grabMouseModel(), mouseSelection, and viewer.
Referenced by Gui::View3DInventorViewer::startSelection().
void NavigationStyle::stopAnimating | ( | void | ) |
Definition at line 868 of file NavigationStyle.cpp.
References currentmode, IDLE, INTERACT, isViewing(), setViewingMode(), and SPINNING.
Referenced by lookAtPoint(), setAnimationEnabled(), setCameraOrientation(), and Gui::View3DInventorViewer::stopAnimating().
void NavigationStyle::stopSelection | ( | ) |
Definition at line 925 of file NavigationStyle.cpp.
References mouseSelection, and pcPolygon.
Referenced by startSelection(), and Gui::View3DInventorViewer::stopSelection().
void NavigationStyle::updateAnimation | ( | ) |
Definition at line 788 of file NavigationStyle.cpp.
References isAnimating(), prevRedrawTime, reorientCamera(), spinRotation, and viewer.
Referenced by Gui::View3DInventorViewer::actualRedraw().
void NavigationStyle::viewAll | ( | ) | [virtual] |
Definition at line 500 of file NavigationStyle.cpp.
References SketcherExample::f, getClassTypeId(), size, and viewer.
void NavigationStyle::zoom | ( | SoCamera * | camera, | |
float | diffvalue | |||
) | [protected] |
Dependent on the camera type this will either shrink or expand the height of the viewport (orthogonal camera) or move the camera closer or further away from the focal point in the scene.
Definition at line 634 of file NavigationStyle.cpp.
References KDL::exp(), KDL::sqrt(), and RobotExample::t.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), and zoomByCursor().
void NavigationStyle::zoomByCursor | ( | const SbVec2f & | thispos, | |
const SbVec2f & | prevpos | |||
) | [protected] |
Definition at line 705 of file NavigationStyle.cpp.
References SketcherExample::f, viewer, and zoom().
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
friend struct NavigationStyleP [friend] |
Definition at line 213 of file NavigationStyle.h.
Referenced by NavigationStyle().
SbBool Gui::NavigationStyle::altdown [protected] |
Definition at line 191 of file NavigationStyle.h.
Referenced by initialize(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool Gui::NavigationStyle::button1down [protected] |
Definition at line 192 of file NavigationStyle.h.
Referenced by initialize(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool Gui::NavigationStyle::button2down [protected] |
Definition at line 192 of file NavigationStyle.h.
Referenced by initialize(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool Gui::NavigationStyle::button3down [protected] |
Definition at line 192 of file NavigationStyle.h.
Referenced by initialize(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbTime Gui::NavigationStyle::centerTime [protected] |
Definition at line 188 of file NavigationStyle.h.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
SbBool Gui::NavigationStyle::clipInner [protected] |
Definition at line 199 of file NavigationStyle.h.
Referenced by getPolygon(), and processEvent().
SbBool Gui::NavigationStyle::ctrldown [protected] |
Definition at line 191 of file NavigationStyle.h.
Referenced by initialize(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
ViewerMode Gui::NavigationStyle::currentmode [protected] |
Definition at line 184 of file NavigationStyle.h.
Referenced by getViewingMode(), initialize(), isAnimating(), processEvent(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), setViewingMode(), and stopAnimating().
Definition at line 178 of file NavigationStyle.h.
SbBool Gui::NavigationStyle::invertZoom [protected] |
Definition at line 193 of file NavigationStyle.h.
Referenced by initialize(), isZoomInverted(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), and setZoomInverted().
SbVec2f Gui::NavigationStyle::lastmouseposition [protected] |
Definition at line 185 of file NavigationStyle.h.
Referenced by doSpin(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), and setViewingMode().
SbBool Gui::NavigationStyle::lockrecenter [protected] |
Definition at line 189 of file NavigationStyle.h.
Referenced by Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
struct { ... } Gui::NavigationStyle::log [protected] |
Referenced by addToLog(), clearLog(), doSpin(), finalize(), initialize(), and spin().
SbBool Gui::NavigationStyle::menuenabled [protected] |
Definition at line 190 of file NavigationStyle.h.
Referenced by initialize(), isPopupMenuEnabled(), operator=(), and setPopupMenuEnabled().
Definition at line 197 of file NavigationStyle.h.
Referenced by isSelecting(), processEvent(), redraw(), startSelection(), and stopSelection().
SbPlane Gui::NavigationStyle::panningplane [protected] |
Definition at line 186 of file NavigationStyle.h.
Referenced by operator=(), pan(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
std::vector<SbVec2s> Gui::NavigationStyle::pcPolygon [protected] |
Definition at line 198 of file NavigationStyle.h.
Referenced by getPolygon(), processEvent(), and stopSelection().
SbVec2s* Gui::NavigationStyle::position |
Definition at line 179 of file NavigationStyle.h.
SbTime Gui::NavigationStyle::prevRedrawTime [protected] |
Definition at line 187 of file NavigationStyle.h.
Referenced by initialize(), startAnimating(), and updateAnimation().
SbBool Gui::NavigationStyle::shiftdown [protected] |
Definition at line 191 of file NavigationStyle.h.
Referenced by initialize(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), and Gui::BlenderNavigationStyle::processSoEvent().
Definition at line 177 of file NavigationStyle.h.
Referenced by boxZoom(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), and viewAll().
SbBool Gui::NavigationStyle::spinanimatingallowed [protected] |
Definition at line 204 of file NavigationStyle.h.
Referenced by doSpin(), initialize(), isAnimationEnabled(), operator=(), and setAnimationEnabled().
SbRotation Gui::NavigationStyle::spinincrement [protected] |
Definition at line 206 of file NavigationStyle.h.
Referenced by initialize(), spin(), and startAnimating().
SbSphereSheetProjector* Gui::NavigationStyle::spinprojector [protected] |
Definition at line 208 of file NavigationStyle.h.
Referenced by doSpin(), finalize(), getOrbitStyle(), initialize(), setOrbitStyle(), setViewingMode(), and spin().
SbRotation Gui::NavigationStyle::spinRotation [protected] |
Definition at line 207 of file NavigationStyle.h.
Referenced by doSpin(), initialize(), lookAtPoint(), setCameraOrientation(), startAnimating(), updateAnimation(), and Gui::NavigationStyleP::viewAnimationCB().
int Gui::NavigationStyle::spinsamplecounter [protected] |
Definition at line 205 of file NavigationStyle.h.
Referenced by initialize(), and spin().
SbTime* Gui::NavigationStyle::time |
Definition at line 180 of file NavigationStyle.h.
View3DInventorViewer* Gui::NavigationStyle::viewer [protected] |
Definition at line 183 of file NavigationStyle.h.
Referenced by boxZoom(), doSpin(), getInteractiveCount(), handleEventInForeground(), interactiveCountDec(), interactiveCountInc(), isSeekMode(), isViewing(), lookAtPoint(), openPopupMenu(), pan(), panToCenter(), processEvent(), processSoEvent(), Gui::InventorNavigationStyle::processSoEvent(), Gui::CADNavigationStyle::processSoEvent(), Gui::BlenderNavigationStyle::processSoEvent(), seekToPoint(), setCameraOrientation(), setSeekMode(), setViewer(), setViewing(), setViewingMode(), spin(), startSelection(), updateAnimation(), viewAll(), Gui::NavigationStyleP::viewAnimationCB(), and zoomByCursor().