VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtSenSimSensorModule.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #include <vrvSenSim/vrvSenSim.h>
11 
12 #include <vrvCore/DtSensorModule.h>
13 
14 #include <vrvOsg/DtPostProcessor.h>
15 
16 #include <osg/Camera>
17 
18 namespace makVrv
19 {
20  class DtSenSim;
21  class DtDe;
22  class DtOsgChannel;
23 
29  {
30  public:
33 
35  virtual ~DtSenSimSensorModule();
36 
40  virtual std::string name() const;
41 
45  virtual std::string displayName() const;
46 
48  virtual void enableSensor(DtSensor& sensor, DtChannel& channel);
49 
51  virtual void disableSensor(DtSensor& sensor, DtChannel& channel);
52 
54  virtual void defaultSensorConfiguration(
56 
58  virtual DtSenSim* senSim(DtOsgChannel* osgChannel);
59 
60  protected:
61  //@name Handlers for sensor attribute changes
63  virtual void slot_attributeChangedBool(DtSenSim* sensim, const std::string attributeName, bool val);
64  virtual void slot_attributeChangedFloat(DtSenSim* sensim, const std::string attributeName, float val);
66 
68  virtual void slot_viewportChanged(DtChannel* channel, int x, int y, int width, int height);
69 
70  protected:
71 
73  typedef std::map<DtChannel*, DtSenSim*> ChannelToSenSim;
76  };
77 
79  {
80  public:
81  DtSenSimPostProcessor(const std::string& postProcessType, bool handles2D, DtSenSim* senSim, DtDe& de);
82 
83  virtual ~DtSenSimPostProcessor();
84 
85  virtual void update(DtChannel *channel);
86 
87  protected:
90  };
91 
93  : public DtPostProcessorCreator
94  {
95  public:
98 
101 
103  virtual ~DtSenSimPostProcessorCreator();
104 
105  protected:
107  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
108  };
109 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)