Changeset 69 in flair-src for trunk/lib/FlairSimulator/src/Model.h


Ignore:
Timestamp:
09/02/16 17:48:40 (5 years ago)
Author:
Sanahuja Guillaume
Message:

refonte camera simu

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairSimulator/src/Model.h

    r15 r69  
    2525#ifdef GL
    2626#include <aabbox3d.h>
     27#include <IEventReceiver.h>
    2728namespace irr {
    2829class SEvent;
     
    5152namespace simulator {
    5253class Simulator;
    53 class AnimPoursuite;
     54class FollowMeCamera;
    5455
    55 class Model : public core::IODevice {
     56class Model : public core::IODevice
     57#ifdef GL
     58, public irr::IEventReceiver
     59#endif
     60 {
    5661  friend class ::Gui_impl;
    5762  friend class ::Simulator_impl;
    5863  friend class ::Model_impl;
    59   friend class AnimPoursuite;
    6064  friend class sensor::SensorGL;
    6165
     
    8084  virtual void WritedbtBuf(char *dbtbuf) = 0;
    8185  virtual void ReaddbtBuf(char *dbtbuf) = 0;
    82   virtual bool OnEvent(const irr::SEvent &event) = 0;
     86
     87  //default event handling
     88  bool OnEvent(const irr::SEvent &event) { return false;};
    8389
    8490  //! Sets the value of the camera's far clipping plane (default: 2000.0f)
     
    9399  virtual void CalcModel(void) = 0;
    94100#ifdef GL
    95   AnimPoursuite *getCamera(void) const;
     101  FollowMeCamera *getFollowMeCamera(void) const;
    96102  virtual void AnimateModel(void) = 0;
    97103  // void setPosition(core::Vector3D pos);
Note: See TracChangeset for help on using the changeset viewer.