+ 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:
parent
a87e19073e
commit
7023236741
|
@ -247,7 +247,7 @@ SbBool BlenderNavigationStyle::processSoEvent(const SoEvent * const ev)
|
|||
float dci = (float)QApplication::doubleClickInterval()/1000.0f;
|
||||
// is it just a middle click?
|
||||
if (tmp.getValue() < dci && !this->lockrecenter) {
|
||||
if (!this->moveToPoint(pos)) {
|
||||
if (!this->lookAtPoint(pos)) {
|
||||
panToCenter(panningplane, posn);
|
||||
this->interactiveCountDec();
|
||||
}
|
||||
|
|
|
@ -276,7 +276,7 @@ SbBool CADNavigationStyle::processSoEvent(const SoEvent * const ev)
|
|||
float dci = (float)QApplication::doubleClickInterval()/1000.0f;
|
||||
// is it just a middle click?
|
||||
if (tmp.getValue() < dci && !this->lockrecenter) {
|
||||
if (!this->moveToPoint(pos)) {
|
||||
if (!this->lookAtPoint(pos)) {
|
||||
panToCenter(panningplane, posn);
|
||||
this->interactiveCountDec();
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev)
|
|||
float dci = (float)QApplication::doubleClickInterval()/1000.0f;
|
||||
// is it just a left click?
|
||||
if (tmp.getValue() < dci && !this->lockrecenter) {
|
||||
if (!this->moveToPoint(pos)) {
|
||||
if (!this->lookAtPoint(pos)) {
|
||||
panToCenter(panningplane, posn);
|
||||
this->interactiveCountDec();
|
||||
}
|
||||
|
@ -240,7 +240,7 @@ SbBool InventorNavigationStyle::processSoEvent(const SoEvent * const ev)
|
|||
float dci = (float)QApplication::doubleClickInterval()/1000.0f;
|
||||
// is it just a middle click?
|
||||
if (tmp.getValue() < dci && !this->lockrecenter) {
|
||||
if (!this->moveToPoint(pos)) {
|
||||
if (!this->lookAtPoint(pos)) {
|
||||
panToCenter(panningplane, posn);
|
||||
this->interactiveCountDec();
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -116,7 +116,7 @@ public:
|
|||
void redraw();
|
||||
|
||||
void setCameraOrientation(const SbRotation& rot);
|
||||
void setCameraPosition(const SbVec3f&);
|
||||
void lookAtPoint(const SbVec3f&);
|
||||
void boxZoom(const SbBox2s& box);
|
||||
virtual void viewAll();
|
||||
|
||||
|
@ -150,7 +150,7 @@ protected:
|
|||
void setSeekMode(SbBool enable);
|
||||
SbBool seekToPoint(const SbVec2s screenpos);
|
||||
void seekToPoint(const SbVec3f& scenepos);
|
||||
SbBool moveToPoint(const SbVec2s screenpos);
|
||||
SbBool lookAtPoint(const SbVec2s screenpos);
|
||||
|
||||
void reorientCamera(SoCamera * camera, const SbRotation & rot);
|
||||
void panCamera(SoCamera * camera,
|
||||
|
|
Loading…
Reference in New Issue
Block a user