Commit 09f7c63d authored by Mike Kremer's avatar Mike Kremer
Browse files

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
parent 968e2010
...@@ -452,7 +452,7 @@ void MovePlugin::moveObject(ACG::Matrix4x4d mat, int _id) { ...@@ -452,7 +452,7 @@ void MovePlugin::moveObject(ACG::Matrix4x4d mat, int _id) {
return; return;
} }
emit updatedObject(_id); emit updatedObject(_id, UPDATE_GEOMETRY);
emit createBackup(_id,"Move"); emit createBackup(_id,"Move");
} }
...@@ -477,7 +477,7 @@ void MovePlugin::moveSelection(ACG::Matrix4x4d mat, int _id) { ...@@ -477,7 +477,7 @@ void MovePlugin::moveSelection(ACG::Matrix4x4d mat, int _id) {
else if (selectionType_ == EDGE) else if (selectionType_ == EDGE)
transformEdgeSelection( _id , mat ); transformEdgeSelection( _id , mat );
emit updatedObject(_id); emit updatedObject(_id, UPDATE_GEOMETRY);
// emit createBackup(_id,"MoveSelection"); // emit createBackup(_id,"MoveSelection");
} }
...@@ -1050,7 +1050,7 @@ void MovePlugin::slotTranslation() { ...@@ -1050,7 +1050,7 @@ void MovePlugin::slotTranslation() {
object->manipulatorNode()->set_center( object->manipulatorNode()->set_center(
object->manipulatorNode()->center() + translation); object->manipulatorNode()->center() + translation);
emit createBackup(object->id(), "Translation"); emit createBackup(object->id(), "Translation");
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_GEOMETRY);
} }
} else { } else {
return; return;
...@@ -1205,7 +1205,7 @@ void MovePlugin::slotRotate() { ...@@ -1205,7 +1205,7 @@ void MovePlugin::slotRotate() {
updateManipulatorDialog(); updateManipulatorDialog();
emit createBackup(object->id(), "Rotation"); emit createBackup(object->id(), "Rotation");
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_GEOMETRY);
} }
} }
...@@ -1281,7 +1281,7 @@ void MovePlugin::slotScale() { ...@@ -1281,7 +1281,7 @@ void MovePlugin::slotScale() {
updateManipulatorDialog(); updateManipulatorDialog();
emit createBackup(object->id(), "Scaling"); emit createBackup(object->id(), "Scaling");
emit updatedObject(object->id()); emit updatedObject(object->id(), UPDATE_GEOMETRY);
} }
} }
...@@ -1378,7 +1378,7 @@ void MovePlugin::slotMoveToOrigin() { ...@@ -1378,7 +1378,7 @@ void MovePlugin::slotMoveToOrigin() {
} }
#endif #endif
emit updatedObject( o_it->id() ); emit updatedObject( o_it->id(), UPDATE_GEOMETRY );
updateManipulatorDialog(); updateManipulatorDialog();
o_it->manipulatorNode()->loadIdentity(); o_it->manipulatorNode()->loadIdentity();
...@@ -1462,7 +1462,7 @@ void MovePlugin::slotUnifyBoundingBoxDiagonal() ...@@ -1462,7 +1462,7 @@ void MovePlugin::slotUnifyBoundingBoxDiagonal()
#endif #endif
} }
emit updatedObject( o_it->id() ); emit updatedObject( o_it->id(), UPDATE_GEOMETRY );
} }
......
...@@ -88,7 +88,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface, ...@@ -88,7 +88,7 @@ class MovePlugin : public QObject, BaseInterface, MouseInterface, KeyInterface,
signals: signals:
// BaseInterface // BaseInterface
void updateView(); void updateView();
void updatedObject(int); void updatedObject(int, UpdateType _type);
void nodeVisibilityChanged(int); void nodeVisibilityChanged(int);
// PickingInterface // PickingInterface
......
...@@ -162,7 +162,7 @@ void MovePlugin::translate( int _objectId , Vector _vector) { ...@@ -162,7 +162,7 @@ void MovePlugin::translate( int _objectId , Vector _vector) {
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
emit scriptInfo( "translate( ObjectId , Vector(" + emit scriptInfo( "translate( ObjectId , Vector(" +
QString::number( _vector[0] ) + " , " + QString::number( _vector[0] ) + " , " +
...@@ -234,7 +234,7 @@ void MovePlugin::translate( int _objectId , IdList _vHandles, Vector _vector ){ ...@@ -234,7 +234,7 @@ void MovePlugin::translate( int _objectId , IdList _vHandles, Vector _vector ){
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
emit scriptInfo( "translate( ObjectId , Vector(" + emit scriptInfo( "translate( ObjectId , Vector(" +
QString::number( _vector[0] ) + " , " + QString::number( _vector[0] ) + " , " +
...@@ -305,7 +305,7 @@ void MovePlugin::translateSelection( int _objectId , Vector _vector) { ...@@ -305,7 +305,7 @@ void MovePlugin::translateSelection( int _objectId , Vector _vector) {
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
emit scriptInfo( "translate( ObjectId , Vector(" + emit scriptInfo( "translate( ObjectId , Vector(" +
QString::number( _vector[0] ) + " , " + QString::number( _vector[0] ) + " , " +
...@@ -377,7 +377,7 @@ void MovePlugin::transform( int _objectId , Matrix4x4 _matrix ){ ...@@ -377,7 +377,7 @@ void MovePlugin::transform( int _objectId , Matrix4x4 _matrix ){
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
QString matString; QString matString;
for (int i=0; i < 4; i++) for (int i=0; i < 4; i++)
...@@ -464,7 +464,7 @@ void MovePlugin::transform( int _objectId , IdList _vHandles, Matrix4x4 _matrix ...@@ -464,7 +464,7 @@ void MovePlugin::transform( int _objectId , IdList _vHandles, Matrix4x4 _matrix
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
QString matString; QString matString;
for (int i=0; i < 4; i++) for (int i=0; i < 4; i++)
...@@ -547,7 +547,7 @@ void MovePlugin::transformVertexSelection( int _objectId , Matrix4x4 _matrix ){ ...@@ -547,7 +547,7 @@ void MovePlugin::transformVertexSelection( int _objectId , Matrix4x4 _matrix ){
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
QString matString; QString matString;
for (int i=0; i < 4; i++) for (int i=0; i < 4; i++)
...@@ -651,7 +651,7 @@ void MovePlugin::transformFaceSelection( int _objectId , Matrix4x4 _matrix ){ ...@@ -651,7 +651,7 @@ void MovePlugin::transformFaceSelection( int _objectId , Matrix4x4 _matrix ){
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
QString matString; QString matString;
for (int i=0; i < 4; i++) for (int i=0; i < 4; i++)
...@@ -771,7 +771,7 @@ void MovePlugin::transformEdgeSelection( int _objectId , Matrix4x4 _matrix ){ ...@@ -771,7 +771,7 @@ void MovePlugin::transformEdgeSelection( int _objectId , Matrix4x4 _matrix ){
} }
#endif #endif
emit updatedObject(_objectId); emit updatedObject(_objectId, UPDATE_GEOMETRY);
QString matString; QString matString;
for (int i=0; i < 4; i++) for (int i=0; i < 4; i++)
......
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