19 #ifndef GLSCENEZOOMANDPAN_H_
20 #define GLSCENEZOOMANDPAN_H_
22 #include <tulip/tulipconf.h>
23 #include <tulip/Vector.h>
24 #include <tulip/Coord.h>
48 this->nbAnimationSteps = nbAnimationSteps;
56 virtual void animationStep(
int animationStep) = 0;
88 GlSceneZoomAndPan(
GlScene *glScene,
const BoundingBox &boundingBox,
const std::string &layerName=
"Main",
const int nbAnimationSteps = 50,
const bool optimalPath =
true,
const double p = sqrt(1.6));
101 return nbAnimationSteps;
108 this->nbAnimationSteps = nbAnimationSteps;
115 void zoomAndPanAnimationStep(
int animationStep);
120 Vector<int, 4> viewport;
121 int nbAnimationSteps;
124 Coord camCenterStart, camCenterEnd;
125 double w0, w1, u0, u1, b0, b1, r0, r1, S, sA, sB, wm;
127 float zoomAreaWidth, zoomAreaHeight;
void setNbAnimationSteps(const int nbAnimationSteps)
void setNbAnimationSteps(int nbAnimationSteps)
A class which encapsulate a Tulip OpenGL scene animation This class aims to encapsulate a Tulip OpenG...
A convenient class to perform Zoom and Pan animation on Tulip OpenGL scene.
This class represents the 3D bounding box of an object. It is mostly used to determine whether or not...
Tulip OpenGL camera object.
int getNbAnimationsStep() const