VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgChannelSensor.h
Go to the documentation of this file.
1 /*****************************************************************************
2 * Copyright (c) 2020 MAK Technologies, Inc.
3 * All rights reserved.
4 *****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 #include <vrvOsg/DtOsgChannel.h>
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtSensor;
21 
23  {
24  protected:
26 
27  DtOsgChannelSensor(DtDe& de, DtOsgChannel* channel);
28 
29  public:
30  virtual ~DtOsgChannelSensor();
31 
32  DtOsgChannel* channel();
33 
35  DtSensor* findSensor();
36 
38  virtual void startUsingSensor(DtSensor* sensor);
39 
41  virtual void stopUsingSensor(DtSensor* sensor);
42 
44  virtual void slot_sensorRemoved(DtSensor* sensor);
45 
47  bool isInitalized();
48 
50  void resetInitalized();
51 
53  virtual void initialize();
54 
56  virtual void preUpdate();
57 
59  virtual void postUpdate();
60 
62  virtual void initializeRTTCamera();
63 
65  virtual bool forceHdrLuminanceOverride();
66 
68  virtual void calculateNearFar(double& zNear, double& zFar);
69 
70  private:
73 
76 
78  DtOsgChannelSensor& operator=(const DtOsgChannelSensor& other);
79 
80  protected:
86  };
87 
91  {
92  public:
95  static DtOsgChannelSensorCreator* instance(DtDe& theIG);
96 
98  static void registerInstance(DtDe& de, DtOsgChannelSensorCreator* instance);
99 
101  virtual DtOsgChannelSensor* create(DtDe& de, DtOsgChannel* channel);
102  };
103 
104 }
DtOsgChannel * myOsgChannel
Definition: DtOsgChannelSensor.h:83
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
Contains makVrv::DtOsgChannel class.
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
DtSignalConnectionManager myConnections
Definition: DtOsgChannelSensor.h:82
Definition: DtOsgChannelSensor.h:22
bool mySensorInitialized
Definition: DtOsgChannelSensor.h:85
This class provides the OSG-specific implementation of a DtChannel.
Definition: DtOsgChannel.h:55
The channel sensor creator for the DtOsgChannelSensor used for camerafx.
Definition: DtOsgChannelSensor.h:90
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
Definition of a sensor.
Definition: DtSensor.h:30
DtSensor * mySensor
Definition: DtOsgChannelSensor.h:84
Base class to provide boost signal/slot management.
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:72
DtDe & myDe
Definition: DtOsgChannelSensor.h:81

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)