Rev | Line | |
---|
[69] | 1 | // %flair:license{
|
---|
| 2 | // This file is part of the Flair framework distributed under the
|
---|
| 3 | // CECILL-C License, Version 1.0.
|
---|
| 4 | // %flair:license}
|
---|
| 5 | // created: 2016/09/01
|
---|
| 6 | // filename: FixedCamera.h
|
---|
| 7 | //
|
---|
| 8 | // author: Guillaume Sanahuja
|
---|
| 9 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 10 | //
|
---|
| 11 | // version: $Id: $
|
---|
| 12 | //
|
---|
| 13 | // purpose: cclass for a fixed camera in the gui
|
---|
| 14 | //
|
---|
| 15 | /*********************************************************************/
|
---|
| 16 |
|
---|
| 17 | #ifndef FIXEDCAMERA_H
|
---|
| 18 | #define FIXEDCAMERA_H
|
---|
| 19 |
|
---|
| 20 | #include "VisualizationCamera.h"
|
---|
| 21 | #include <Vector3D.h>
|
---|
| 22 |
|
---|
| 23 | namespace flair {
|
---|
| 24 | namespace simulator {
|
---|
| 25 |
|
---|
| 26 | class FixedCamera : public VisualizationCamera {
|
---|
| 27 | public:
|
---|
[87] | 28 | FixedCamera(std::string name,core::Vector3D position,core::Vector3D lookat=core::Vector3D(0,0,0),float rotateSpeed = -500.0f, float zoomSpeed = .05f);
|
---|
[69] | 29 | ~FixedCamera();
|
---|
| 30 |
|
---|
| 31 | void animateNode(irr::scene::ISceneNode *node, irr::u32 timeMs);
|
---|
| 32 |
|
---|
| 33 | private:
|
---|
[70] | 34 | float sat(float value);
|
---|
[69] | 35 | irr::core::position2df RotateStart;
|
---|
[87] | 36 | irr::core::vector3df rotation;
|
---|
[69] | 37 | bool Rotating;
|
---|
[70] | 38 | float rotateSpeed;
|
---|
| 39 | float zoomSpeed;
|
---|
| 40 | float fov;
|
---|
[87] | 41 | bool init;
|
---|
[69] | 42 | };
|
---|
| 43 |
|
---|
| 44 | } // end namespace simulator
|
---|
| 45 | } // end namespace flair
|
---|
| 46 |
|
---|
| 47 | #endif // FIXEDCAMERA_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.