source: flair-src/trunk/lib/FlairSimulator/src/unexported/FollowMeCamera.h@ 309

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

simu cameras

File size: 1.3 KB
RevLine 
[10]1// %flair:license{
[15]2// This file is part of the Flair framework distributed under the
3// CECILL-C License, Version 1.0.
[10]4// %flair:license}
[8]5// created: 2012/08/21
[69]6// filename: FollowMeCamera.h
[8]7//
8// author: Guillaume Sanahuja
9// Copyright Heudiasyc UMR UTC/CNRS 7253
10//
11// version: $Id: $
12//
13// purpose: classe definissant une animation poursuite pour camera
14//
15/*********************************************************************/
16
[69]17#ifndef FOLLOWMECAMERA_H
18#define FOLLOWMECAMERA_H
[8]19
[69]20#include "VisualizationCamera.h"
[8]21
[69]22
[15]23namespace flair {
24namespace simulator {
[8]25
[69]26class FollowMeCamera : public VisualizationCamera {
[15]27public:
[70]28 FollowMeCamera(const irr::scene::ISceneNode *parent,std::string name,
[15]29 float rotateSpeed = -500.0f, float zoomSpeed = 4.0f);
[69]30 ~FollowMeCamera();
[8]31
[15]32 void animateNode(irr::scene::ISceneNode *node, irr::u32 timeMs);
33 void setPositionOffset(irr::core::vector3df newpos);
34 void setTargetOffset(irr::core::vector3df newpos);
[8]35
[15]36private:
37 irr::core::vector3df pos_offset, target_offset;
38 irr::core::position2df RotateStart;
39 const irr::scene::ISceneNode *parent;
40 bool Rotating;
41 float RotY, RotZ;
42 float sat(float value);
[70]43 float rotateSpeed;
44 float zoomSpeed;
[15]45};
[8]46
47} // end namespace simulator
48} // end namespace flair
49
[69]50#endif // FOLLOWMECAMERA_H
Note: See TracBrowser for help on using the repository browser.