Commit 7238a6fc authored by Mike Kremer's avatar Mike Kremer

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 c44dafe1
......@@ -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 );
}
......
......@@ -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
......
......@@ -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++)
......
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