From 09f7c63d8fe751077bafc488f7bad9e62c8aaff6 Mon Sep 17 00:00:00 2001 From: Mike Kremer Date: Wed, 10 Mar 2010 15:23:09 +0000 Subject: [PATCH] Move plugin now makes use of the new UpdateType spec of updatedObject(). git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@8707 383ad7c9-94d9-4d36-a494-682f7c89f535 --- MovePlugin.cc | 14 +++++++------- MovePlugin.hh | 2 +- MovePluginScript.cc | 16 ++++++++-------- 3 files changed, 16 insertions(+), 16 deletions(-) diff --git a/MovePlugin.cc b/MovePlugin.cc index 77fe803..f70a9bd 100644 --- a/MovePlugin.cc +++ b/MovePlugin.cc @@ -452,7 +452,7 @@ void MovePlugin::moveObject(ACG::Matrix4x4d mat, int _id) { return; } - emit updatedObject(_id); + emit updatedObject(_id, UPDATE_GEOMETRY); emit createBackup(_id,"Move"); } @@ -477,7 +477,7 @@ void MovePlugin::moveSelection(ACG::Matrix4x4d mat, int _id) { else if (selectionType_ == EDGE) transformEdgeSelection( _id , mat ); - emit updatedObject(_id); + emit updatedObject(_id, UPDATE_GEOMETRY); // emit createBackup(_id,"MoveSelection"); } @@ -1050,7 +1050,7 @@ void MovePlugin::slotTranslation() { object->manipulatorNode()->set_center( object->manipulatorNode()->center() + translation); emit createBackup(object->id(), "Translation"); - emit updatedObject(object->id()); + emit updatedObject(object->id(), UPDATE_GEOMETRY); } } else { return; @@ -1205,7 +1205,7 @@ void MovePlugin::slotRotate() { updateManipulatorDialog(); emit createBackup(object->id(), "Rotation"); - emit updatedObject(object->id()); + emit updatedObject(object->id(), UPDATE_GEOMETRY); } } @@ -1281,7 +1281,7 @@ void MovePlugin::slotScale() { updateManipulatorDialog(); emit createBackup(object->id(), "Scaling"); - emit updatedObject(object->id()); + emit updatedObject(object->id(), UPDATE_GEOMETRY); } } @@ -1378,7 +1378,7 @@ void MovePlugin::slotMoveToOrigin() { } #endif - emit updatedObject( o_it->id() ); + emit updatedObject( o_it->id(), UPDATE_GEOMETRY ); updateManipulatorDialog(); o_it->manipulatorNode()->loadIdentity(); @@ -1462,7 +1462,7 @@ void MovePlugin::slotUnifyBoundingBoxDiagonal() #endif } - emit updatedObject( o_it->id() ); + emit updatedObject( o_it->id(), UPDATE_GEOMETRY ); } diff --git a/MovePlugin.hh b/MovePlugin.hh index 4bca882..fae671c 100644 --- a/MovePlugin.hh +++ b/MovePlugin.hh @@ -88,7 +88,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface, signals: // BaseInterface void updateView(); - void updatedObject(int); + void updatedObject(int, UpdateType _type); void nodeVisibilityChanged(int); // PickingInterface diff --git a/MovePluginScript.cc b/MovePluginScript.cc index 7261315..524da49 100644 --- a/MovePluginScript.cc +++ b/MovePluginScript.cc @@ -162,7 +162,7 @@ void MovePlugin::translate( int _objectId , Vector _vector) { } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); emit scriptInfo( "translate( ObjectId , Vector(" + QString::number( _vector[0] ) + " , " + @@ -234,7 +234,7 @@ void MovePlugin::translate( int _objectId , IdList _vHandles, Vector _vector ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); emit scriptInfo( "translate( ObjectId , Vector(" + QString::number( _vector[0] ) + " , " + @@ -305,7 +305,7 @@ void MovePlugin::translateSelection( int _objectId , Vector _vector) { } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); emit scriptInfo( "translate( ObjectId , Vector(" + QString::number( _vector[0] ) + " , " + @@ -377,7 +377,7 @@ void MovePlugin::transform( int _objectId , Matrix4x4 _matrix ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -464,7 +464,7 @@ void MovePlugin::transform( int _objectId , IdList _vHandles, Matrix4x4 _matrix } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -547,7 +547,7 @@ void MovePlugin::transformVertexSelection( int _objectId , Matrix4x4 _matrix ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -651,7 +651,7 @@ void MovePlugin::transformFaceSelection( int _objectId , Matrix4x4 _matrix ){ #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) @@ -771,7 +771,7 @@ void MovePlugin::transformEdgeSelection( int _objectId , Matrix4x4 _matrix ){ } #endif - emit updatedObject(_objectId); + emit updatedObject(_objectId, UPDATE_GEOMETRY); QString matString; for (int i=0; i < 4; i++) -- GitLab