Commit e5380e08 authored by Jan Möbius's avatar Jan Möbius

Dennis:

Move Plugin : 
Emit-visibilityChanged-to-update-scene-bounding-box
-Emit-visibilityChanged-on-manipulator-resize

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@5567 383ad7c9-94d9-4d36-a494-682f7c89f535
parent cf2e2657
......@@ -167,6 +167,7 @@ void MovePlugin::slotMouseWheelEvent(QWheelEvent * _event, const std::string & /
manip_size_modifier_ = manip_size_modifier_ - (float)_event->delta() / 120.0 * 0.1;
for ( PluginFunctions::ObjectIterator o_it(PluginFunctions::ALL_OBJECTS) ; o_it != PluginFunctions::objectsEnd(); ++o_it)
o_it->manipulatorNode()->set_size(manip_size_ * manip_size_modifier_);
emit visibilityChanged (-1);
}
......@@ -192,6 +193,9 @@ void MovePlugin::slotMouseEvent( QMouseEvent* _event )
ACG::SceneGraph::MouseEventAction action(_event);
PluginFunctions::traverse(action);
if (_event->buttons() == Qt::LeftButton)
emit visibilityChanged (-1);
}
}
......
......@@ -73,6 +73,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, PickingInterfa
// BaseInterface
void updateView();
void updatedObject(int);
void visibilityChanged(int);
// PickingInterface
void addPickMode( const std::string _mode );
......@@ -97,6 +98,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, PickingInterfa
// ToolbarInterface
void addToolbar(QToolBar* _toolbar);
void getToolBar( QString _name, QToolBar*& _toolbar);
private slots :
// BaseInterface
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment