9 #ifndef GlobeEngine_ArcBallCamera_h
10 #define GlobeEngine_ArcBallCamera_h
13 #include <vmmlib/quaternion.hpp>
17 #define Epsilon 1.0e-5
32 this->
adjustWidth = 1.0f / ((_viewport.x() - 1.0f) * 0.5f);
33 this->
adjustHeight = 1.0f / ((_viewport.y() - 1.0f) * 0.5f);
36 vmml::Vector3d
mapToSphere(
const vmml::Vector2d NewPt);
~ArcBallCamera()
Definition: ArcBallCamera.cpp:23
void clear()
Definition: ArcBallCamera.cpp:27
vmml::Vector2d firstMousePt
Definition: ArcBallCamera.h:82
vmml::Vector2d activePan
Definition: ArcBallCamera.h:66
void setMousePointer(float _x, float _y)
Definition: ArcBallCamera.cpp:158
vmml::Matrix4d activeRot
Definition: ArcBallCamera.h:63
void update()
Definition: ArcBallCamera.cpp:63
void setCenter(vmml::Vector3d)
Definition: ArcBallCamera.cpp:286
void setPanning(bool _in)
Definition: ArcBallCamera.cpp:274
vmml::Matrix4d zoomMatrix
Definition: ArcBallCamera.h:65
void setClicked(bool _in)
Definition: ArcBallCamera.cpp:149
vmml::Vector2d lastPan
Definition: ArcBallCamera.h:67
float zoomFactorLimit
Definition: ArcBallCamera.h:85
Definition: ArcBallCamera.h:19
vmml::Matrix4d lastRot
Definition: ArcBallCamera.h:64
bool isRotating
Definition: ArcBallCamera.h:75
vmml::Vector3d initPos
Definition: ArcBallCamera.h:83
vmml::Vector3d lastVec
Definition: ArcBallCamera.h:60
void setZoomFactorLimit(double _radius)
Definition: ArcBallCamera.cpp:226
vmml::Vector3d getCenter()
Definition: ArcBallCamera.cpp:290
vmml::Vector3d center
Definition: ArcBallCamera.h:70
void resetPanning()
Definition: ArcBallCamera.cpp:281
void setZooming(bool _in)
Definition: ArcBallCamera.cpp:238
vmml::Matrix4d trans
Definition: ArcBallCamera.h:69
vmml::Quaterniond calculateRotationQuat()
Definition: ArcBallCamera.cpp:120
vmml::Vector2d MousePt
Definition: ArcBallCamera.h:81
bool isPanning
Definition: ArcBallCamera.h:77
double adjustWidth
Definition: ArcBallCamera.h:72
bool isDragging
Definition: ArcBallCamera.h:76
vmml::Vector3d activeVec
Definition: ArcBallCamera.h:61
void create()
Definition: ArcBallCamera.h:25
vmml::Quaterniond rot_quat
Definition: ArcBallCamera.h:59
void setBounds(vmml::Vector2d _viewport)
Definition: ArcBallCamera.h:29
double zoomfactor
Definition: ArcBallCamera.h:79
Definition: ViewFrustum.h:18
Definition: AvalancheTrainingSimulationEngine.h:28
void calculateViewMatrix()
Definition: ArcBallCamera.cpp:294
ArcBallCamera()
Definition: ArcBallCamera.cpp:18
vmml::Vector3d mapToSphere(const vmml::Vector2d NewPt)
Definition: ArcBallCamera.cpp:89
void resetZoom()
Definition: ArcBallCamera.cpp:269
vmml::Matrix4d setRotationFromQuaternion(vmml::Quaterniond q1)
Definition: ArcBallCamera.cpp:202
double adjustHeight
Definition: ArcBallCamera.h:73