Changeset 69 in flair-src for trunk/lib/FlairSimulator/src/unexported


Ignore:
Timestamp:
Sep 2, 2016, 5:48:40 PM (8 years ago)
Author:
Sanahuja Guillaume
Message:

refonte camera simu

Location:
trunk/lib/FlairSimulator/src/unexported
Files:
3 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSimulator/src/unexported/FollowMeCamera.h

    r51 r69  
    44// %flair:license}
    55//  created:    2012/08/21
    6 //  filename:   AnimPoursuite.h
     6//  filename:   FollowMeCamera.h
    77//
    88//  author:     Guillaume Sanahuja
     
    1515/*********************************************************************/
    1616
    17 #ifndef ANIMPOURSUITE_H
    18 #define ANIMPOURSUITE_H
     17#ifndef FOLLOWMECAMERA_H
     18#define FOLLOWMECAMERA_H
    1919
    20 #include <ISceneNodeAnimator.h>
    21 #include <position2d.h>
    22 #include <vector3d.h>
     20#include "VisualizationCamera.h"
     21
    2322
    2423namespace flair {
    2524namespace simulator {
    2625
    27 class AnimPoursuite : public irr::scene::ISceneNodeAnimator {
     26class FollowMeCamera : public VisualizationCamera {
    2827public:
    29   AnimPoursuite(const irr::scene::ISceneNode *parent,
     28  FollowMeCamera(const irr::scene::ISceneNode *parent,
    3029                float rotateSpeed = -500.0f, float zoomSpeed = 4.0f);
    31   ~AnimPoursuite();
     30  ~FollowMeCamera();
    3231
    3332  void animateNode(irr::scene::ISceneNode *node, irr::u32 timeMs);
    34   ISceneNodeAnimator *createClone(irr::scene::ISceneNode *node,
    35                                   irr::scene::ISceneManager *newManager = 0);
    36   bool MouseMoved(const irr::SEvent &event, irr::core::position2df MousePos);
    3733  void setPositionOffset(irr::core::vector3df newpos);
    3834  void setTargetOffset(irr::core::vector3df newpos);
    3935
    4036private:
    41   virtual bool isEventReceiverEnabled(void) const { return true; }
    42 
    4337  irr::core::vector3df pos_offset, target_offset;
    44   bool LMouseKey;
    4538  irr::core::position2df RotateStart;
    46   irr::core::position2df MousePos;
    4739  const irr::scene::ISceneNode *parent;
    4840  bool Rotating;
    4941  float RotY, RotZ;
    50   float rotateSpeed;
    51   float zoomSpeed;
    52   float currentZoom;
    5342  float sat(float value);
    5443};
     
    5746} // end namespace flair
    5847
    59 #endif // ANIMPOURSUITE_H
     48#endif // FOLLOWMECAMERA_H
  • trunk/lib/FlairSimulator/src/unexported/GenericObject.h

    r15 r69  
    2929#include <IVideoDriver.h>
    3030#include <ICameraSceneNode.h>
    31 #include "AnimPoursuite.h"
     31#include "FollowMeCamera.h"
    3232
    3333#include <IODevice.h>
  • trunk/lib/FlairSimulator/src/unexported/Gui_impl.h

    r15 r69  
    3030class IMeshSceneNode;
    3131class ITriangleSelector;
     32//class ICameraSceneNode;
    3233}
    3334namespace video {
     
    4849class GenericObject;
    4950class Gui;
     51class FixedCamera;
    5052}
    5153}
     
    8385  size_t dbtSize(std::vector<flair::simulator::Model *> modeles);
    8486  char *dbtbuf;
     87  flair::simulator::FixedCamera *fixedCamera;
    8588  flair::simulator::Gui *self;
     89  //irr::scene::ICameraSceneNode * camera;
    8690};
    8791
  • trunk/lib/FlairSimulator/src/unexported/Model_impl.h

    r15 r69  
    3838namespace simulator {
    3939class Simulator;
    40 class AnimPoursuite;
     40class FollowMeCamera;
    4141}
    4242}
     
    5252class IMetaTriangleSelector;
    5353class ISceneNodeAnimatorCollisionResponse;
    54 class ICameraSceneNode;
    5554}
    5655}
     
    9493  irr::core::aabbox3d<irr::f32> box;
    9594  void SynchronizationPoint();
    96   irr::scene::ICameraSceneNode *camera;
    97   flair::simulator::AnimPoursuite *animator;
     95  flair::simulator::FollowMeCamera *camera;
    9896  irr::scene::ITriangleSelector *selector;
    9997#endif
Note: See TracChangeset for help on using the changeset viewer.