Skip to content

Commit

Permalink
Gui: GestureNavigationStyle: remove logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DeepSOIC authored and wwmayer committed May 14, 2019
1 parent 8a99785 commit 24e4502
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/Gui/GestureNavigationStyle.cpp
Expand Up @@ -227,7 +227,6 @@ class NS::NaviMachine : public sc::state_machine<NS::NaviMachine, NS::IdleState>

public:
virtual void processEvent(NS::Event& ev) {
ev.log();
this->process_event(ev);
}
};
Expand All @@ -240,7 +239,6 @@ class NS::IdleState : public sc::state<NS::IdleState, NS::NaviMachine>
IdleState(my_context ctx):my_base(ctx)
{
this->outermost_context().ns.setViewingMode(NavigationStyle::IDLE);
Base::Console().Log(" -> IdleState\n");
}
virtual ~IdleState(){}

Expand Down Expand Up @@ -495,7 +493,6 @@ class NS::RotateState : public sc::state<NS::RotateState, NS::NaviMachine>
{
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(){}

Expand Down Expand Up @@ -537,7 +534,6 @@ class NS::PanState : public sc::state<NS::PanState, NS::NaviMachine>
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
}
Expand Down Expand Up @@ -583,7 +579,6 @@ class NS::StickyPanState : public sc::state<NS::StickyPanState, NS::NaviMachine>
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
}
Expand Down Expand Up @@ -628,7 +623,6 @@ class NS::TiltState : public sc::state<NS::TiltState, NS::NaviMachine>
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(){}
Expand Down Expand Up @@ -677,7 +671,6 @@ class NS::GestureState : public sc::state<NS::GestureState, NS::NaviMachine>
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
Expand Down Expand Up @@ -754,7 +747,6 @@ class NS::AwaitingReleaseState : public sc::state<NS::AwaitingReleaseState, NS::
public:
AwaitingReleaseState(my_context ctx):my_base(ctx)
{
Base::Console().Log(" -> AwaitingReleaseState\n");
}
virtual ~AwaitingReleaseState(){}

Expand Down Expand Up @@ -804,7 +796,6 @@ class NS::InteractState : public sc::state<NS::InteractState, NS::NaviMachine>
{
auto &ns = this->outermost_context().ns;
ns.setViewingMode(NavigationStyle::INTERACT);
Base::Console().Log(" -> InteractState\n");
}
virtual ~InteractState(){}

Expand Down Expand Up @@ -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");
}
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit 24e4502

Please sign in to comment.