VR-Forces Development_Version 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);
65  virtual void slot_setFromRecord(const DtSensor* sensor, DtOsgChannel* osgChannel);
67 
68  protected:
69 
71  typedef std::map<DtChannel*, DtSenSim*> ChannelToSenSim;
74  };
75 
77  {
78  public:
79  DtSenSimPostProcessor(const std::string& postProcessType, bool handles2D, DtSenSim* senSim, DtDe& de);
80 
81  virtual ~DtSenSimPostProcessor();
82 
83  virtual void update(DtChannel *channel);
84 
85  protected:
88  };
89 
91  : public DtPostProcessorCreator
92  {
93  public:
96 
99 
101  virtual ~DtSenSimPostProcessorCreator();
102 
103  protected:
105  virtual DtPostProcessor* create(DtDe& de, const std::string& postProcessType);
106  };
107 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)