+ rename methods to a more obvious name
git-svn-id: https://free-cad.svn.sourceforge.net/svnroot/free-cad/trunk@5106 e8eeb9e2-ec13-0410-a4a9-efa5cf37419d
This commit is contained in:
@@ -281,7 +281,7 @@ void NavigationStyle::seekToPoint(const SbVec3f& scenepos)
|
||||
viewer->seekToPoint(scenepos);
|
||||
}
|
||||
|
||||
SbBool NavigationStyle::moveToPoint(const SbVec2s screenpos)
|
||||
SbBool NavigationStyle::lookAtPoint(const SbVec2s screenpos)
|
||||
{
|
||||
SoCamera* cam = viewer->getCamera();
|
||||
if (cam == 0) return FALSE;
|
||||
@@ -299,11 +299,11 @@ SbBool NavigationStyle::moveToPoint(const SbVec2s screenpos)
|
||||
|
||||
SbVec3f hitpoint;
|
||||
hitpoint = picked->getPoint();
|
||||
setCameraPosition(hitpoint);
|
||||
lookAtPoint(hitpoint);
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void NavigationStyle::setCameraPosition(const SbVec3f& pos)
|
||||
void NavigationStyle::lookAtPoint(const SbVec3f& pos)
|
||||
{
|
||||
SoCamera* cam = viewer->getCamera();
|
||||
if (cam == 0) return;
|
||||
|
||||
Reference in New Issue
Block a user