close Warning: Can't use blame annotator:
svn blame failed on trunk/lib/FlairSimulator/src/VisualizationCamera.h: 200029 - Couldn't perform atomic initialization

source: flair-src/trunk/lib/FlairSimulator/src/VisualizationCamera.h@ 69

Last change on this file since 69 was 69, checked in by Sanahuja Guillaume, 8 years ago

refonte camera simu

File size: 1.4 KB
RevLine 
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: VisualizationCamera.h
7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: cclass for a visualization camera in the gui
14//
15/*********************************************************************/
16
17#ifndef VISUALIZATIONCAMERA_H
18#define VISUALIZATIONCAMERA_H
19
20#include <ISceneNodeAnimator.h>
21#include <position2d.h>
22#include <Vector3D.h>
23
24namespace irr {
25 namespace scene {
26 class ICameraSceneNode;
27 }
28}
29
30namespace flair {
31namespace simulator {
32
33class VisualizationCamera : private irr::scene::ISceneNodeAnimator {
34public:
35 VisualizationCamera(float rotateSpeed = -500.0f, float zoomSpeed = 4.0f);
36 ~VisualizationCamera();
37
38 ISceneNodeAnimator *createClone(irr::scene::ISceneNode *node,
39 irr::scene::ISceneManager *newManager = 0);
40 virtual bool OnEvent(const irr::SEvent& event);
41 irr::scene::ICameraSceneNode *getCameraSceneNode(void);
42
43private:
44 virtual bool isEventReceiverEnabled(void) const { return true; }
45
46protected:
47 bool LMouseKey;
48 irr::scene::ICameraSceneNode *camera;
49 irr::core::position2df MousePos;
50 float rotateSpeed;
51 float zoomSpeed;
52 float currentZoom;
53};
54
55} // end namespace simulator
56} // end namespace flair
57
58#endif // VISUALIZATIONCAMERA_H
Note: See TracBrowser for help on using the repository browser.