35 #ifndef DISP3DLIB_ORBITALCAMERACONTROLLER_H
36 #define DISP3DLIB_ORBITALCAMERACONTROLLER_H
42 #include <Qt3DExtras/QAbstractCameraController>
43 #include "../../disp3D_global.h"
49 #include <QSharedPointer>
91 Q_PROPERTY(
int rotating READ rotating WRITE setRotating)
94 typedef QSharedPointer<OrbitalCameraController>
SPtr;
95 typedef QSharedPointer<const OrbitalCameraController>
ConstSPtr;
115 void invertCameraRotation(
bool newStatusFlag);
123 void setRotating(
int count);
131 int rotating()
const;
141 void moveCamera(
const QAbstractCameraController::InputState &state,
float dt)
override;
147 void initController();
158 inline float distance(
const QVector3D &firstPoint,
const QVector3D &secondPoint)
const;
160 float m_fRotationInverseFactor = 1.0f;
161 const float m_fZoomInLimit = 0.04f;
162 const float m_fAutoRotationSpeed = 1.0f;
171 float OrbitalCameraController::distance(
const QVector3D &firstPoint,
const QVector3D &secondPoint)
const
173 return (secondPoint - firstPoint).length();
177 #endif // DISP3DLIB_ORBITALCAMERACONTROLLER_H