19 #include <unordered_set>
21 namespace makOsgSpeedTree
24 struct SForestRenderInfo;
34 class DtThreadCameraStreamDataManager;
74 virtual void slot_displayToBeDestroyed(
const std::string& displayName,
DtDe* de);
80 virtual void set3DLodDistances(
float fHighDetail3dDistance,
81 float fLowDetail3dDistance);
86 virtual void setBillboardStartEndDistances(
float fBillboardStartDistance,
87 float fBillboardEndDistance);
89 virtual void setTreesEnabled(
bool enabled);
90 virtual void enableBillboardRendering(
bool enable);
91 virtual void enable3DTreeRendering(
bool enable);
93 virtual void setAmbientScalar(
float val);
94 virtual void setDiffuseScalar(
float val);
95 virtual void setSpecularScalar(
float val);
96 virtual void setTransmissionScalar(
float val);
97 virtual void setAlphaScalar(
float val);
101 virtual void setVertexUserFunctionFileName(
102 const std::string& vertexUserFunctionFilename);
106 virtual void setMultiViewVertexUserFunctionFileName(
107 const std::string& vertexUserFunctionFilename);
111 virtual void setFragmentUserFunctionFileName(
112 const std::string& fragmentUserFunctionFilename);
115 virtual const std::string& vertexUserFunctionFileName()
const;
118 virtual const std::string& multiViewVertexUserFunctionFileName()
const;
121 virtual const std::string& fragmentUserFunctionFileName()
const;
124 virtual void setFreezeEnabled(
bool enable);
127 virtual bool freezeEnabled()
const;
130 virtual void setProfilingActive(
bool active);
135 virtual ProgramBlocks& programBlocks();
147 virtual void clearAllUserDataUniformLocationMaps();
150 virtual void incrementNumForestsRenderedThisFrame(
void);
153 virtual void resetNumForestsRenderedThisFrame(
void);
155 virtual int numForestsRenderedThisFrame(
void)
const;
158 virtual void connectSignals(
void);
159 virtual void disconnectSignals(
void);
161 virtual void slot_preTick(
void);
163 static void initRenderInfo(
164 makOsgSpeedTree::SForestRenderInfo& sForestRenderInfo);
Manager for DtThreadCameraStreamData Holds them as cameras come in. Deletes them as cameras go out (v...
Definition: DtThreadCameraStreamDataManager.h:86
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
#define DT_DLL_VRVST
Definition: vrvSt.h:20
DtSpeedTreeTcsUserDataCreator & myUserDataCreator
Definition: DtSpeedTreeCore.h:180
DtThreadCameraStreamDataManager & myTcsDataManager
Definition: DtSpeedTreeCore.h:179
Contains DLL export macros.
bool myFreezeEnabled
Definition: DtSpeedTreeCore.h:175
DtSpeedTreeCore wraps and provides the interface to makOsgSpeedTree.
Definition: DtSpeedTreeCore.h:38
std::string myVertexUserFunctionFilename
Definition: DtSpeedTreeCore.h:172
Variadic templated creator class for defining a DtVirtualBaseClass creator that is automatically regi...
Definition: DtVirtualBaseClassCreator.h:22
Contains makVrv::DtVirtualBaseClass class.
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
makOsgSpeedTree::Core * mySpeedTreeCore
Definition: DtSpeedTreeCore.h:169
DtSignalConnectionManager myConnections
Definition: DtSpeedTreeCore.h:170
ProgramBlocks myProgramBlocks
Definition: DtSpeedTreeCore.h:177
This represents per camera, context (tcs) specific data for speedtree.
Definition: DtSpeedTreeTcsUserData.h:26
Base class to provide boost signal/slot management.
std::string myFragmentUserFunctionFilename
Definition: DtSpeedTreeCore.h:174
std::unordered_set< int > ProgramBlocks
Definition: DtSpeedTreeCore.h:42
static DtSpeedTreeCore * mySpeedTreeCore
Definition: vrvSt.h:34
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
Contains makVrv::DtSpeedTreeTcsUserData class.
std::string myMultiViewVertexUserFunctionFileName
Definition: DtSpeedTreeCore.h:173
DtDe & myDe
Definition: DtSpeedTreeCore.h:167
virtual makOsgSpeedTree::Core * speedTreeCore(void)
Get a pointer to the makOsgSpeedTree::Core wrapped by this object.
Definition: DtSpeedTreeCore.h:69
std::atomic< int > myNumForestsRenderedThisFrame
Definition: DtSpeedTreeCore.h:182