Gui: GestureNavigationStyle: remove logging

This commit is contained in:
DeepSOIC
2019-05-13 02:18:45 +03:00
committed by wmayer
parent fd9630c4a0
commit a0aa8ace52

View File

@@ -227,7 +227,6 @@ public:
public:
virtual void processEvent(NS::Event& ev) {
ev.log();
this->process_event(ev);
}
};
@@ -240,7 +239,6 @@ public:
IdleState(my_context ctx):my_base(ctx)
{
this->outermost_context().ns.setViewingMode(NavigationStyle::IDLE);
Base::Console().Log(" -> IdleState\n");
}
virtual ~IdleState(){}
@@ -495,7 +493,6 @@ public:
{
this->outermost_context().ns.setViewingMode(NavigationStyle::DRAGGING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
Base::Console().Log(" -> RotateState\n");
}
virtual ~RotateState(){}
@@ -537,7 +534,6 @@ public:
auto &ns = this->outermost_context().ns;
ns.setViewingMode(NavigationStyle::PANNING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
Base::Console().Log(" -> PanState\n");
this->ratio = ns.viewer->getSoRenderManager()->getViewportRegion().getViewportAspectRatio();
ns.pan(ns.viewer->getSoRenderManager()->getCamera());//set up panningplane
}
@@ -583,7 +579,6 @@ public:
auto &ns = this->outermost_context().ns;
ns.setViewingMode(NavigationStyle::PANNING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
Base::Console().Log(" -> StickyPanState\n");
this->ratio = ns.viewer->getSoRenderManager()->getViewportRegion().getViewportAspectRatio();
ns.pan(ns.viewer->getSoRenderManager()->getCamera());//set up panningplane
}
@@ -628,7 +623,6 @@ public:
auto &ns = this->outermost_context().ns;
ns.setViewingMode(NavigationStyle::DRAGGING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
Base::Console().Log(" -> TiltState\n");
ns.pan(ns.viewer->getSoRenderManager()->getCamera());//set up panningplane
}
virtual ~TiltState(){}
@@ -677,7 +671,6 @@ public:
auto &ns = this->outermost_context().ns;
ns.setViewingMode(NavigationStyle::PANNING);
this->base_pos = static_cast<const NS::Event*>(this->triggering_event())->inventor_event->getPosition();
Base::Console().Log(" -> GestureState\n");
ns.pan(ns.viewer->getSoRenderManager()->getCamera());//set up panningplane
this->ratio = ns.viewer->getSoRenderManager()->getViewportRegion().getViewportAspectRatio();
enableTilt = !(App::GetApplication().GetParameterGroupByPath
@@ -754,7 +747,6 @@ public:
public:
AwaitingReleaseState(my_context ctx):my_base(ctx)
{
Base::Console().Log(" -> AwaitingReleaseState\n");
}
virtual ~AwaitingReleaseState(){}
@@ -804,7 +796,6 @@ public:
{
auto &ns = this->outermost_context().ns;
ns.setViewingMode(NavigationStyle::INTERACT);
Base::Console().Log(" -> InteractState\n");
}
virtual ~InteractState(){}
@@ -966,11 +957,9 @@ void GestureNavigationStyle::onRollGesture(int direction)
{
std::string cmd;
if (direction == +1){
Base::Console().Log("Roll forward gesture\n");
cmd = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetASCII("GestureRollFwdCommand");
} else if (direction == -1) {
Base::Console().Log("Roll backward gesture\n");
cmd = App::GetApplication().GetParameterGroupByPath
("User parameter:BaseApp/Preferences/View")->GetASCII("GestureRollBackCommand");
}
@@ -1002,8 +991,6 @@ void GestureNavigationStyle::EventQueue::post(const NS::Event& ev)
{
ev.flags->processed = true;
this->push(*ev.asMouseButtonEvent());
Base::Console().Log("postponed: ");
ev.log();
}
void GestureNavigationStyle::EventQueue::discardAll()