17 #include <osg/observer_ptr>
20 #include <OpenThreads/Mutex>
26 namespace SilverLining
29 class ThreadCameraStreamData;
73 virtual SilverLining::ThreadCameraStreamData* getOrCreateSilverLiningTcsData(
const osg::Camera* osgCamera,
const SilverLining::Atmosphere* atmosphere);
76 virtual SilverLining::ThreadCameraStreamData* findSilverLiningTcsData(
const osg::Camera* osgCamera,
const SilverLining::Atmosphere* atmosphere);
80 virtual void flushInvalidCameras(SilverLining::Atmosphere* atmosphere,
const boost::function<
void(SilverLining::ThreadCameraStreamData*)>& callback);
83 virtual void deleteAll(SilverLining::Atmosphere* atmosphere);
86 virtual void deleteCloudLayer(
unsigned int layerHandle, SilverLining::Atmosphere* atmosphere);
89 virtual void reloadShaders(SilverLining::Atmosphere* atmosphere,
const std::vector<unsigned int>& shaderVector);
93 typedef std::pair< osg::observer_ptr<const osg::Camera>,
const SilverLining::Atmosphere* >
MapKey;
const char * creatorTypeName< DtSilverLiningCameraManager >(void)
template specialization for the creator (pass the class being created to the creatorTypeName template...
Definition: DtSilverLiningCameraManager.h:48
MapOsgCamerasToTcsDatas myMapOsgCamerasToTcsDatas
Definition: DtSilverLiningCameraManager.h:96
DtDe & myDe
Definition: DtSilverLiningCameraManager.h:91
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
std::map< MapKey, SilverLining::ThreadCameraStreamData * > MapOsgCamerasToTcsDatas
Definition: DtSilverLiningCameraManager.h:95
Definition: DtSilverLiningCameraManager.h:50
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
OpenThreads::Mutex myMapMutex
the map can be accessed from cull or draw of the sky/cloud.
Definition: DtSilverLiningCameraManager.h:100
DtVirtualBaseClassCreator< DtSilverLiningCameraManager > DtSilverLiningCameraManagerCreator
creator
Definition: DtSilverLiningCameraManager.h:41
friend DtSilverLiningCameraManagerCreator
only creator can create
Definition: DtSilverLiningCameraManager.h:54
OpenThreads::Mutex Mutex
Definition: DtOsgThreadingUtils.h:12
static std::atomic< int > theCameraId
Definition: DtSilverLiningCameraManager.h:104
std::pair< osg::observer_ptr< const osg::Camera >, const SilverLining::Atmosphere * > MapKey
Definition: DtSilverLiningCameraManager.h:93
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69