diff --git a/src/Gui/BlenderNavigationStyle.cpp b/src/Gui/BlenderNavigationStyle.cpp index 7d1a6d2d1d..766ded8dc8 100644 --- a/src/Gui/BlenderNavigationStyle.cpp +++ b/src/Gui/BlenderNavigationStyle.cpp @@ -304,7 +304,7 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev) // Spaceball & Joystick handling if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; diff --git a/src/Gui/CADNavigationStyle.cpp b/src/Gui/CADNavigationStyle.cpp index d6ac60433f..e3fcc859e6 100644 --- a/src/Gui/CADNavigationStyle.cpp +++ b/src/Gui/CADNavigationStyle.cpp @@ -346,7 +346,7 @@ SbBool CADNavigationStyle::processSoEvent(const SoEvent * const ev) // Spaceball & Joystick handling if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; diff --git a/src/Gui/GestureNavigationStyle.cpp b/src/Gui/GestureNavigationStyle.cpp index 1613aaef63..61c183c923 100644 --- a/src/Gui/GestureNavigationStyle.cpp +++ b/src/Gui/GestureNavigationStyle.cpp @@ -311,7 +311,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) //mode-independent spaceball/joystick handling if (evIsLoc3) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; @@ -547,7 +547,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) processed=true; } else if (gesture->state == SoGestureEvent::SbGSUpdate){ if(type.isDerivedFrom(SoGesturePinchEvent::getClassTypeId())){ - const SoGesturePinchEvent* const event = static_cast(ev); + const SoGesturePinchEvent* const event = static_cast(ev); if (this->zoomAtCursor){ //this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom. SbVec2f panDist = this->normalizePixelPos(event->deltaCenter.getValue()); @@ -559,7 +559,7 @@ SbBool GestureNavigationStyle::processSoEvent(const SoEvent * const ev) processed = true; } if(type.isDerivedFrom(SoGesturePanEvent::getClassTypeId())){ - const SoGesturePanEvent* const event = static_cast(ev); + const SoGesturePanEvent* const event = static_cast(ev); //this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom. SbVec2f panDist = this->normalizePixelPos(event->deltaOffset); NavigationStyle::panCamera(viewer->getSoRenderManager()->getCamera(), ratio, this->panningplane, panDist, SbVec2f(0,0)); diff --git a/src/Gui/InventorNavigationStyle.cpp b/src/Gui/InventorNavigationStyle.cpp index 341036200a..58f7f83e9a 100644 --- a/src/Gui/InventorNavigationStyle.cpp +++ b/src/Gui/InventorNavigationStyle.cpp @@ -320,7 +320,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev) // Spaceball & Joystick handling if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; diff --git a/src/Gui/MayaGestureNavigationStyle.cpp b/src/Gui/MayaGestureNavigationStyle.cpp index d4bc97755c..98da13a2aa 100644 --- a/src/Gui/MayaGestureNavigationStyle.cpp +++ b/src/Gui/MayaGestureNavigationStyle.cpp @@ -314,7 +314,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) //mode-independent spaceball/joystick handling if (evIsLoc3) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; @@ -549,7 +549,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) processed=true; } else if (gesture->state == SoGestureEvent::SbGSUpdate){ if(type.isDerivedFrom(SoGesturePinchEvent::getClassTypeId())){ - const SoGesturePinchEvent* const event = static_cast(ev); + const SoGesturePinchEvent* const event = static_cast(ev); if (this->zoomAtCursor){ //this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom. SbVec2f panDist = this->normalizePixelPos(event->deltaCenter.getValue()); @@ -561,7 +561,7 @@ SbBool MayaGestureNavigationStyle::processSoEvent(const SoEvent * const ev) processed = true; } if(type.isDerivedFrom(SoGesturePanEvent::getClassTypeId())){ - const SoGesturePanEvent* const event = static_cast(ev); + const SoGesturePanEvent* const event = static_cast(ev); //this is just dealing with the pan part of pinch gesture. Taking care of zooming to pos is done in doZoom. SbVec2f panDist = this->normalizePixelPos(event->deltaOffset); NavigationStyle::panCamera(viewer->getSoRenderManager()->getCamera(), ratio, this->panningplane, panDist, SbVec2f(0,0)); diff --git a/src/Gui/OpenCascadeNavigationStyle.cpp b/src/Gui/OpenCascadeNavigationStyle.cpp index 097ea18775..87a1dc7a07 100644 --- a/src/Gui/OpenCascadeNavigationStyle.cpp +++ b/src/Gui/OpenCascadeNavigationStyle.cpp @@ -313,7 +313,7 @@ SbBool OpenCascadeNavigationStyle::processSoEvent(const SoEvent * const ev) // Spaceball & Joystick handling if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; diff --git a/src/Gui/RevitNavigationStyle.cpp b/src/Gui/RevitNavigationStyle.cpp index 8f5fddb821..074ccba102 100644 --- a/src/Gui/RevitNavigationStyle.cpp +++ b/src/Gui/RevitNavigationStyle.cpp @@ -302,7 +302,7 @@ SbBool RevitNavigationStyle::processSoEvent(const SoEvent * const ev) // Spaceball & Joystick handling if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true; diff --git a/src/Gui/TouchpadNavigationStyle.cpp b/src/Gui/TouchpadNavigationStyle.cpp index df6864cfb2..b1510a5904 100644 --- a/src/Gui/TouchpadNavigationStyle.cpp +++ b/src/Gui/TouchpadNavigationStyle.cpp @@ -284,7 +284,7 @@ SbBool TouchpadNavigationStyle::processSoEvent(const SoEvent * const ev) // Spaceball & Joystick handling if (type.isDerivedFrom(SoMotion3Event::getClassTypeId())) { - const SoMotion3Event * const event = static_cast(ev); + const SoMotion3Event * const event = static_cast(ev); if (event) this->processMotionEvent(event); processed = true;