VR-Forces 4.1 Class Documentation
DtSenSimSensorModule.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #include <vrvSenSim/vrvSenSim.h>
11 
12 #include <vrvCore/DtSensorModule.h>
13 
14 #include <osg/Camera>
15 
16 namespace makVrv
17 {
18  class SenSim;
19 
25  {
26  public:
29 
31  virtual ~DtSenSimSensorModule();
32 
36  virtual std::string name() const;
37 
41  virtual std::string displayName() const;
42 
44  virtual void enableSensor(DtSensor& sensor, DtChannel& channel);
45 
47  virtual void disableSensor(DtSensor& sensor, DtChannel& channel);
48 
50  virtual void defaultSensorConfiguration(
52 
53  protected:
54  //@name Handlers for sensor attribute changes
56  virtual void slot_attributeChangedBool(SenSim* sensim, const std::string attributeName, bool val);
57  virtual void slot_attributeChangedFloat(SenSim* sensim, const std::string attributeName, float val);
59 
61  virtual void slot_viewportChanged(DtChannel* channel, int x, int y, int width, int height);
62 
63  protected:
64  osg::Camera::DrawCallback* myCameraCallback;
65 
67  typedef std::map<DtChannel*, SenSim*> ChannelToSenSim;
69  };
70 }

Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (www.mak.com)