Add optional argument moveToCenter (by default false) to avoid to move camera when using standard views

This commit is contained in:
wmayer
2012-07-09 13:38:21 +02:00
parent 49483307fa
commit 572008b297
5 changed files with 20 additions and 17 deletions

View File

@@ -1309,9 +1309,9 @@ void View3DInventorViewer::pubSeekToPoint(const SbVec3f& pos)
this->seekToPoint(pos);
}
void View3DInventorViewer::setCameraOrientation(const SbRotation& rot)
void View3DInventorViewer::setCameraOrientation(const SbRotation& rot, SbBool moveTocenter)
{
navigation->setCameraOrientation(rot);
navigation->setCameraOrientation(rot, moveTocenter);
}
void View3DInventorViewer::setCameraType(SoType t)