17 #include <osg/RenderInfo>
55 virtual void init(
int gridSize,
float patchSize);
58 virtual void draw(osg::RenderInfo& renderInfo)
const;
62 virtual void updateAlphaFade(
double time);
67 virtual void cullUpdate(
const osg::Vec3d& camPos,
DtJobSplitter* jobSplitter);
71 virtual void setTransform(
const osg::Vec3d& position);
74 virtual const osg::Vec3d& position()
const;
77 virtual const float* skeleton()
const;
83 virtual void getBonePosition(
int boneIndex,
float patchSize, osg::Vec3d& position);
88 virtual void setBoneHeight(
int boneIndex,
float height);
92 virtual void setDesiredAlphaFade(
float value);
96 virtual void setAlphaFade(
float value);
99 virtual float alphaFade()
const;
103 virtual void SetCulled(
bool culled);
106 virtual bool culled()
const;
111 virtual void setBoneHeightExtents(
float min,
float max);
116 virtual void getBoneHeightExtents(
float& min,
float& max);
119 virtual void computeBoneHeightExtents();
123 virtual void runSort(
const osg::Vec3& localCamPos);
129 virtual void computeSortDepth(
const osg::Vec3& camPos);
132 virtual void fillSortedIndices();
140 static int theSortBackToFront(
const void* arg0,
const void* arg1);
143 static void theSortJob(
void* data);
229 static const std::string& theClassName();
bool myCulled
Definition: DtGroundFogPatch.h:191
Virtual base class.
Definition: DtVirtualBaseClass.h:22
unsigned short myVertexStart
Definition: DtGroundFogPatch.h:163
float myBoneHeightMax
Definition: DtGroundFogPatch.h:193
DtGroundFogPatch * myPatch
Definition: DtGroundFogPatch.h:177
double myLastTime
Definition: DtGroundFogPatch.h:188
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
unsigned short * myIndices
Definition: DtGroundFogPatch.h:182
DtDe & myDe
Definition: DtGroundFogPatch.h:232
osg::Vec3d myPosition
Definition: DtGroundFogPatch.h:187
this class is used to split work up between threads.
Definition: DtJobSplitter.h:64
an object used to represent 1 patch of a patchy ground fog system.
Definition: DtGroundFogPatch.h:32
int myCellCount
Definition: DtGroundFogPatch.h:185
Contains makVrv::DtVirtualBaseClass class.
Contains makVrv::DtJobSplitter class.
SortJobData mySortJobData
Definition: DtGroundFogPatch.h:197
DtJobSplitterJob mySortJob
Definition: DtGroundFogPatch.h:198
unsigned short myIndiceCount
Definition: DtGroundFogPatch.h:181
int mySortDepth
Definition: DtGroundFogPatch.h:162
float myAlphaFade
Definition: DtGroundFogPatch.h:189
creator for DtGroundFogPatch
Definition: DtGroundFogPatch.h:203
a cell in the voxel grid
Definition: DtGroundFogPatch.h:152
SortJobData()
Definition: DtGroundFogPatch.h:170
Cell()
Definition: DtGroundFogPatch.h:154
int mySortDepth
Definition: DtGroundFogPatch.h:147
A generic structure to hold data for a job for use with DtJobSplitter.
Definition: DtJobSplitter.h:26
DT_DLL_DEBUGDRAWRENDERER void init(makVrv::DtDe &de)
Work function for the plugin initialization.
Cell * myCells
Definition: DtGroundFogPatch.h:184
Contains DLL export macros.
osg::Vec3 myCenter
Definition: DtGroundFogPatch.h:164
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
osg::Vec3 myCameraPos
Definition: DtGroundFogPatch.h:178
a structure to hold data for a sorting job
Definition: DtGroundFogPatch.h:168
float myAlphaFadeDesired
Definition: DtGroundFogPatch.h:190
float myBoneHeightMin
Definition: DtGroundFogPatch.h:192