VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtWeatherAreaGroup.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2026 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvOsg/vrvOsg.h>
13 
14 #include <osg/Camera>
15 #include <osg/Group>
16 
17 #include <vrvMath/DtCamera.h>
19 
25 #include <vrvOsg/DtWeatherLayer.h>
28 
30 
31 #include <vrvCore/DtCloudLayer.h>
33 
34 #include <matrix/vlVector.h>
35 
36 
37 namespace makVrv
38 {
39  // Forward declarations.
40  class DtJobSplitter;
41  class DtOsgFogComponent;
42  class DtWeatherArea;
43  class DtWeatherFogFroxelGrid;
44 
45 
76  class DT_DLL_VRVOSG DtWeatherAreaGroup : public osg::Group
77  {
78  public:
79 
82  {
83  SensorMaterialTypeNone = 0,
89  SensorMaterialTypeCount
90  };
91 
94  {
95  DrawItemTypeNone = 0,
100  };
101 
104 
106  DtWeatherAreaGroup(const DtWeatherAreaGroup& orig, const osg::CopyOp& opr);
107 
109  virtual ~DtWeatherAreaGroup();
110 
112  DtWeatherAreaGroup() = delete;
113 
115  DtWeatherAreaGroup(const DtWeatherAreaGroup &other) = delete;
116 
118  DtWeatherAreaGroup &operator=(const DtWeatherAreaGroup &other) = delete;
119 
120  public:
121 
123  virtual void init();
124 
126  virtual void releaseGLObjects(osg::State* state = 0) const override;
127 
129  virtual osg::Object* clone(const osg::CopyOp& copyop) const { return new DtWeatherAreaGroup(*this, copyop); }
130  virtual osg::Object* cloneType() const { return NULL; }
131 
133  virtual void deleteGeode();
134 
135  // !\brief Gets the sensor node associated with the given material type
136  // !\param matType The material type enumeration.
137  virtual osg::Node* getOrCreateSensorNode(SensorMaterialType matType);
138 
140  virtual void removeCloudLayer(DtCloudLayerId layerId);
141 
144  virtual bool removeHeightFog(DtUniqueID uniqueId);
145 
147  virtual void removeCloudLayers();
148 
150  virtual void addGroundFog(DtCloudLayerId layerId, const DtVector& position,
151  float orientation, float cornerRadius, const DtVector& bounds,
152  double density, bool infinite, bool relative, bool altitudeIsHAT);
153 
156  virtual DtUniqueID addHeightFog(const DtVector& position, float orientation,
157  float cornerRadius, const DtVector& bounds, double density, bool relative);
158 
160  virtual void addPatchyGroundFog(DtCloudLayerId layerId,
161  const DtVector& position, float orientation, float cornerRadius,
162  const DtVector& bounds, double density, bool relative);
163 
165  virtual void addSandstorm(DtCloudLayerId layerId, const DtVector& position,
166  float orientation, float cornerRadius, const DtVector& bounds,
167  double density, bool infinite, bool relative, bool altitudeIsHAT);
168 
170  virtual void addBlowingDustArea(DtCloudLayerId layerId,
171  const DtVector& position, float orientation, float cornerRadius,
172  const DtVector& bounds, bool relative);
173 
175  virtual void addBlowingSandArea(DtCloudLayerId layerId,
176  const DtVector& position, float orientation, float cornerRadius,
177  const DtVector& bounds, bool relative);
178 
180  virtual void addBlowingSnowArea(DtCloudLayerId layerId,
181  const DtVector& position, float orientation, float cornerRadius,
182  const DtVector& bounds, bool relative);
183 
191  virtual DtUniqueID addPrecipitationShaft(osg::Vec3d& position,
192  const osg::Matrixd& rotation, const DtVector& bounds,
193  const float cornerRadius, const float intensity);
194 
197  virtual void removePrecipitationShaft(DtUniqueID uniqueId);
198 
203  virtual void setWeatherPrecipitationShaftBounds(DtUniqueID uniqueId,
204  const DtVector& bounds, const float cornerRadius);
205 
210  virtual void setWeatherPrecipitationShaftTransform(DtUniqueID uniqueId,
211  const osg::Vec3d& position, const osg::Matrixd& rotation);
212 
216  virtual void setWeatherPrecipitationShaftIntensity(DtUniqueID uniqueId,
217  const float intensity);
218 
222  virtual void setWeatherPrecipitationShaftBaseColor(DtUniqueID uniqueId,
223  const DtVector& color);
224 
229  virtual void setWeatherPrecipitationShaftWind(DtUniqueID uniqueId,
230  const float windDirectionRad, const float windSpeedMps);
231 
235  virtual void setWeatherPrecipitationShaftEnabled(DtUniqueID uniqueId, bool enabled);
236 
244  virtual DtUniqueID addLightning(osg::Vec3d& position,
245  const osg::Matrixd& rotation, const DtVector& bounds,
246  const float cornerRadius, const float intensity);
247 
250  virtual void removeLightning(DtUniqueID uniqueId);
251 
256  virtual void setWeatherLightningBounds(DtUniqueID uniqueId,
257  const DtVector& bounds, const float cornerRadius);
258 
263  virtual void setWeatherLightningTransform(DtUniqueID uniqueId,
264  const osg::Vec3d& position, const osg::Matrixd& rotation);
265 
269  virtual void setWeatherLightningIntensity(DtUniqueID uniqueId,
270  const float intensity);
271 
275  virtual void setWeatherLightningEnabled(DtUniqueID uniqueId, bool enabled);
276 
280  virtual void setCloudLayerDensity(DtCloudLayerId layerId, float density);
281 
285  virtual void setHeightFogDensity(DtUniqueID uniqueId, float density);
286 
290  virtual void setCloudLayerEnabled(DtCloudLayerId layerId, bool enabled);
291 
295  virtual void setHeightFogEnabled(DtUniqueID uniqueId, bool enabled);
296 
298  virtual void setCloudLayerPositionAndOrientation(DtCloudLayerId layerId,
299  const DtVector& position, float orientation);
300 
302  virtual void setHeightFogPositionAndOrientation(DtUniqueID uniqueId,
303  const DtVector& position, float orientation, bool relative);
304 
310  virtual void setCloudLayerBaseColor(DtCloudLayerId layerId,
311  float red, float green, float blue);
312 
318  virtual void setHeightFogBaseColor(DtUniqueID uniqueId,
319  float red, float green, float blue);
320 
325  virtual void setHeightFogBounds(DtUniqueID uniqueId,
326  const DtVector& bounds, const float cornerRadius);
327 
331  virtual void setCloudLayerParticleSizeVariation(DtCloudLayerId layerId,
332  float variation);
333 
337  virtual void setCloudLayerPatternedLook(DtCloudLayerId layerId,
338  bool patternedEnable);
339 
344  virtual void setCloudLayerWind(DtCloudLayerId layerId,
345  float windDirectionRad, float windSpeedMps);
346 
350  virtual void setGlobalWind(float windDirectionRad, float windSpeedMps);
351 
353  virtual void drawObjects(osg::RenderInfo& renderInfo,
354  const DtWeatherAreaDrawable& drawable);
355 
359  virtual void gatherWeatherAreas(const osg::Vec3d& position,
360  std::vector<DtWeatherArea*>& areas);
361 
367  virtual bool computeLocalPrecipitation(const DtVector& location,
368  int& precipType, float& intensity);
369 
375  virtual bool computeLocalGroundRainAccumulation(const DtVector& location,
376  float& depth, float& blend);
377 
379  virtual bool shouldActivateRaindrops() const;
380 
387  virtual bool computeLocalWind(const DtVector& location, float& speedMps, float& directionRad);
388 
395  virtual bool computeLocalVisibility(const DtVector& location,
396  float& visibilityMeters, float& blend);
397 
403  virtual bool bindFogFroxelTexture(const int unit, const unsigned int renderContextId);
404 
406  virtual float fogFroxelMaxDistance() const;
407 
408  protected:
409 
412  struct DrawItem
413  {
415  : mySortDistance(0)
416  , mySortPriority(0)
417  , myItemType(DrawItemTypeNone)
418  , myItem(0)
419  {
420  // intentional noop
421  }
422 
423  int mySortDistance; // squared distance from camera
424  int mySortPriority; // lower number draws first
426  void* myItem;
427  };
428 
431  {
432  public:
433  bool operator()(const DtWeatherAreaGroup::DrawItem& lhs,
434  const DtWeatherAreaGroup::DrawItem& rhs);
435  };
436 
439  {
441  : myUniqueId(-1)
442  , myEnabled(true)
443  , myBasisPos(0,0,0)
444  , myCameraBasisDirty(false)
445  , myPosition(0,0,0)
446  , myAltitude(0)
447  , myDensity(0.001f)
448  , myAltitudeBlend(0)
449  , myDensityBlend(0)
450  , myCornerRadius(1)
451  , myBounds(1,1,1)
452  , myBaseColor(1,1,1)
453  {
454  //intentional nop
455  }
456 
458  bool myEnabled;
459  osg::Vec3d myPosition;
460  osg::Vec3d myBasisPos;
461  osg::Matrixd myBasisRot;
462  bool myCameraBasisDirty; // true when transform was set relative to camera
463  float myAltitude;
464  float myDensity;
468  DtVector myBounds; // x = length, y = width, z = thickness
470  };
471 
474  {
480  };
481 
485  {
486  GroundFogPatchState() : myPatternTextureWidth(1.0f)
487  {
488  // intentional noop
489  }
490 
494  };
495 
498  {
501  };
502 
506  {
509  };
510 
513  {
515  };
516 
518  virtual void initGroundFogPatchState();
519 
521  virtual void initSandstormState();
522 
524  virtual void initGroundFogEffectState();
525 
527  virtual void initPrecipitationShaftState();
528 
530  virtual void initLightningState();
531 
533  virtual void loadShaders();
534 
536  virtual void loadGroundFogPatchShaders();
537 
539  virtual void loadSandstormShaders();
540 
542  virtual void loadGroundFogEffectShaders();
543 
545  virtual void loadPrecipitationShaftShaders();
546 
548  virtual void loadLightningShaders();
549 
551  virtual void clearDrawBins();
552 
554  virtual void updateImGui();
555 
557  virtual void debugAreaBounds();
558 
560  void flushDrawBin(osg::RenderInfo& renderInfo,
561  const DtWeatherAreaDrawable& drawable, std::vector<DrawItem>& drawBin);
562 
564  virtual void drawGroundFogPatchArea(DtGroundFogPatchArea::DrawData& drawData,
565  DtGroundFogPatchArea* area, const bool stateDirty);
566 
568  virtual void drawGroundFogEffect(DtGroundFogEffect::DrawData& drawData,
569  DtGroundFogPatchArea* area, const bool stateDirty);
570 
572  virtual void drawPrecipitationShaft(
574  DtWeatherPrecipitationShaft* shaft, const bool stateDirty);
575 
577  virtual void drawLightning(DtWeatherLightning::DrawData& drawData,
578  DtWeatherLightning* lightning, const bool stateDirty);
579 
583  virtual void applyState(DtGroundFogPatchArea::DrawData& drawData,
584  GroundFogPatchState& mutableState) const;
585 
587  virtual void applyState(DtGroundFogEffect::DrawData& drawData) const;
588 
590  virtual void applyState(DtWeatherPrecipitationShaft::DrawData& drawData) const;
591 
593  virtual void applyState(DtWeatherLightning::DrawData& drawData) const;
594 
596  virtual void initSoftnessUniforms(osg::StateSet& ss,
597  SoftnessUniforms& softnessUniforms);
598 
602  virtual void setupSoftness(osg::Camera* camera,
603  SoftnessUniforms& softnessUniforms) const;
604 
606  void connectSignals();
607 
609  virtual void slot_reloadShaders();
610 
612  virtual void slot_simulationUpdate();
613 
615  virtual void slot_weatherAreaObjectAdded(DtUniqueID id, DtWeatherAreaObject*);
616 
618  virtual void slot_weatherAreaObjectToBeRemoved(DtUniqueID id, DtWeatherAreaObject*);
619 
621  virtual void slot_weatherAreaObjectTransformChanged(DtUniqueID id,
622  const DtVector& position, const float orientation);
623 
625  virtual void slot_weatherAreaObjectBoundsChanged(DtUniqueID id,
626  const DtVector& bounds, const float cornerRadius);
627 
629  virtual void slot_weatherAreaObjectPrecipitationIntensityChanged(
630  DtUniqueID id, const float intensity);
631 
633  virtual void slot_weatherAreaObjectPrecipitationTypeChanged(
634  DtUniqueID id, const unsigned int type);
635 
637  virtual void slot_weatherAreaObjectGroundRainAccumulationChanged(
638  DtUniqueID id, const float depth);
639 
641  virtual void slot_weatherAreaObjectFogColorChanged(DtUniqueID id,
642  const DtVector& color);
643 
645  virtual void slot_weatherAreaObjectVisibilityDistanceChanged(
646  DtUniqueID id, const float distance);
647 
649  virtual void slot_weatherAreaObjectOvercastChanged(DtUniqueID id,
650  const float distance);
651 
653  virtual void slot_weatherAreaObjectLightningEnabledChanged(
654  DtUniqueID id, const bool enabled);
655 
657  virtual void slot_weatherAreaObjectWindChanged(
658  DtUniqueID id, const float direction, const float speed);
659 
661  virtual void slot_weatherAreaObjectCloudLayerAdded(
662  DtUniqueID id, DtCloudLayerId layerId, int cloudType);
663 
665  virtual void slot_weatherAreaObjectCloudLayerRemoved(
666  DtUniqueID id, DtCloudLayerId layerId);
667 
669  virtual void traverse(osg::NodeVisitor& nv);
670 
672  virtual DtOsgFogComponent* findFogComponent() const;
673 
675  virtual void disableCameraHeightFog(osg::Camera* camera);
676 
679  virtual void cullUpdate(osg::Camera* cam);
680 
683  virtual void cullUpdateHeightFog(osg::Camera* cam);
684 
686  virtual void updateHeightFogItemBasis(HeightFogItem* pItem, const osg::Vec3d& camPos);
687 
694  virtual void computeHeightFogBlending(HeightFogItem* pItem, const osg::Vec3d& camPos,
695  float& totalAltitudeBlend, float& totalDensityBlend) const;
696 
698  virtual void updateCameraHeightFog(osg::Camera* camera, const Vector3_32& hfColor,
699  float hfAltitude, float hfDensity, float hfDistance, bool heightFogEnabled);
700 
702  virtual void releaseGroundFogPatchGLObjects(osg::State* state) const;
703 
705  virtual void releaseGroundFogEffectGLObjects(osg::State* state) const;
706 
708  virtual void releaseWeatherPrecipitationShaftGLObjects(osg::State* state) const;
709 
711  virtual void releaseWeatherLightningGLObjects(osg::State* state) const;
712 
713  protected:
714 
716 
719 
720  osg::ref_ptr<osg::Node> mySensorNodes[SensorMaterialTypeCount];
721 
725 
729 
733 
739 
740  std::vector<DrawItem> myPreSortBin;
741  std::vector<DrawItem> mySortBinPreClouds;
742  std::vector<DrawItem> mySortBinPostClouds;
743  std::vector<DrawItem> mySortBinTransparent;
744 
745  // Needs to be mutable because it's used during draw implementation.
751 
752  typedef std::map< DtUniqueID, HeightFogItem > DtHeightFogMap;
754 
755  typedef std::map< DtCloudLayerId, DtUniqueID > DtCloudLayerIdToUniqueIdMap;
757 
759 
760  double myLastTime;
761  float myTimeStep;
762 
764 
766 
768 
770 
771  private:
772 
775  osg::Node* getChildNodeByName(osg::Group* parent, const char* name);
776 
778  typedef std::map< DtCloudLayerId, DtGroundFogPatchArea* > DtGroundFogPatchAreaMap;
780 
782  typedef std::map< DtCloudLayerId, DtWeatherArea* > DtWeatherAreaMap;
784 
786  typedef std::map< DtUniqueID, DtWeatherArea* > DtWeatherAreaObjectMap;
788 
790  typedef std::map< DtUniqueID, DtWeatherPrecipitationShaft* > DtWeatherPrecipitationShaftMap;
792 
794  typedef std::map< DtUniqueID, DtWeatherLightning* > DtWeatherLightningMap;
796  };
797 
798 
799 
802  {
803 
804  public:
807 
809  virtual ~DtWeatherAreaGroupCreator();
810 
813 
815  DtWeatherAreaGroupCreator &operator=(const DtWeatherAreaGroupCreator &other) = delete;
816 
818  static DtWeatherAreaGroupCreator& instance(DtDe& theIG);
819 
821  static void registerInstance(DtDe& theIG, DtWeatherAreaGroupCreator* anInstance);
822 
824  virtual DtWeatherAreaGroup* create(DtDe&);
825  };
826 }
827 
828 
std::vector< DrawItem > myPreSortBin
Definition: DtWeatherAreaGroup.h:740
DT_DLL_EXAMPLESCENEROOTPLUGIN void init(DtDe &anIG)
DtUniqueID myUniqueId
Definition: DtWeatherAreaGroup.h:457
osg::ref_ptr< makVrv::DtWeatherAreaDrawable > mySortTransparentDrawable
Definition: DtWeatherAreaGroup.h:732
DtDe & myDe
Definition: DtWeatherAreaGroup.h:715
Vector3_32 myBaseColor
Definition: DtWeatherAreaGroup.h:469
Contains DtWeatherAreaObjectManager class.
Contains makVrv::DtWeatherLayer class.
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
std::map< DtCloudLayerId, DtUniqueID > DtCloudLayerIdToUniqueIdMap
Definition: DtWeatherAreaGroup.h:755
A structure used to hold data for drawing.
Definition: DtGroundFogEffect.h:53
HeightFogItem()
Definition: DtWeatherAreaGroup.h:440
The weather area object represents a set localized environmental conditions such as local rain and fo...
Definition: DtWeatherAreaObject.h:33
std::map< DtUniqueID, DtWeatherArea * > DtWeatherAreaObjectMap
This is mutable because it&#39;s used as part of the const drawImplementation.
Definition: DtWeatherAreaGroup.h:786
osg::ref_ptr< osg::Uniform > myViewMatrixInvUniform
Definition: DtWeatherAreaGroup.h:508
osg::Vec3d myPosition
Definition: DtWeatherAreaGroup.h:459
DtSignalConnectionManager myConnections
Definition: DtWeatherAreaGroup.h:765
DtHeightFogMap myHeightFogMap
Definition: DtWeatherAreaGroup.h:753
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
osg::ref_ptr< osg::Group > mySortPreCloudsGroupNode
Definition: DtWeatherAreaGroup.h:722
double myLastTime
Definition: DtWeatherAreaGroup.h:760
DtWeatherPrecipitationShaftMap myMutableWeatherPrecipitationShaftMap
Definition: DtWeatherAreaGroup.h:791
A structure to hold depth softness uniforms for shaders.
Definition: DtWeatherAreaGroup.h:473
osg::Vec3d myBasisPos
Definition: DtWeatherAreaGroup.h:460
osg::ref_ptr< osg::Uniform > myInvPersMatrixUniform
Definition: DtWeatherAreaGroup.h:475
Creator that is used to create the weather area group.
Definition: DtWeatherAreaGroup.h:801
float myAltitudeBlend
Definition: DtWeatherAreaGroup.h:465
GroundFogPatchState myMutableGroundFogPatchState
Definition: DtWeatherAreaGroup.h:746
osg::ref_ptr< osg::Group > myGroundFogPatchSensorGroup
Definition: DtWeatherAreaGroup.h:734
bool myCameraBasisDirty
Definition: DtWeatherAreaGroup.h:462
A structure to hold draw state information for ground fog effect shaders.
Definition: DtWeatherAreaGroup.h:497
PrecipitationShaftState myMutablePrecipitationShaftState
Definition: DtWeatherAreaGroup.h:749
Contains makVrv::DtGroundFogPatchArea class.
Definition: DtWeatherAreaGroup.h:99
DtWeatherFogFroxelGrid * myWeatherFogFroxelGrid
Definition: DtWeatherAreaGroup.h:767
bool myEnabled
Definition: DtWeatherAreaGroup.h:458
osg::ref_ptr< osg::Uniform > mySoftnessUniform
Definition: DtWeatherAreaGroup.h:479
float myWindSpeedMps
Definition: DtWeatherAreaGroup.h:717
osg::ref_ptr< osg::Group > mySortTransparentGroupNode
Definition: DtWeatherAreaGroup.h:730
A structure used to hold data for drawing.
Definition: DtWeatherLightning.h:70
DtCloudLayerIdToUniqueIdMap myCloudLayerIdToUniqueIdMap
Definition: DtWeatherAreaGroup.h:756
this class is used to split work up between threads.
Definition: DtJobSplitter.h:64
DtGroundFogPatchAreaMap myMutableGroundFogPatchAreaMap
Definition: DtWeatherAreaGroup.h:779
A structure to hold data for a height fog object.
Definition: DtWeatherAreaGroup.h:438
This class simulates and renders a precipitation shaft area. The area volume is filled with a density...
Definition: DtWeatherPrecipitationShaft.h:63
A drawable used for drawing items related to weather areas. The class serves as a draw point entry an...
Definition: DtWeatherAreaDrawable.h:30
A group node which serves as a root for weather areas, patchy ground fog areas and effects...
Definition: DtWeatherAreaGroup.h:76
DtJobSplitter * myJobSplitter
Definition: DtWeatherAreaGroup.h:763
virtual osg::Object * clone(const osg::CopyOp &copyop) const
required functions for derriving from osg::Group
Definition: DtWeatherAreaGroup.h:129
osg::ref_ptr< makVrv::DtWeatherAreaDrawable > mySortPostCloudsDrawable
Definition: DtWeatherAreaGroup.h:728
GroundFogPatchState()
Definition: DtWeatherAreaGroup.h:486
osg::ref_ptr< osg::Uniform > myViewMatrixInvUniform
Definition: DtWeatherAreaGroup.h:500
DrawItem()
Definition: DtWeatherAreaGroup.h:414
SensorMaterialType
brief Sensor material type enumerations used for sensorfx.
Definition: DtWeatherAreaGroup.h:81
Camera forward declarations.
std::vector< DrawItem > mySortBinTransparent
Definition: DtWeatherAreaGroup.h:743
SoftnessUniforms mySoftnessUniforms
Definition: DtWeatherAreaGroup.h:507
bool myDebugAreaBoundsEnabled
Definition: DtWeatherAreaGroup.h:769
This class simulates and renders a lightning area. The area will randomly create lightning within a s...
Definition: DtWeatherLightning.h:63
A structure to hold draw state information for lightning shaders.
Definition: DtWeatherAreaGroup.h:512
osg::ref_ptr< osg::Group > myWeatherPrecipitationShaftSensorGroup
Definition: DtWeatherAreaGroup.h:737
Contains makVrv::DtOsgCullVisitor class.
std::map< DtCloudLayerId, DtWeatherArea * > DtWeatherAreaMap
This is mutable because it&#39;s used as part of the const drawImplementation.
Definition: DtWeatherAreaGroup.h:782
SoftnessUniforms mySoftnessUniforms
Definition: DtWeatherAreaGroup.h:514
float myAltitude
Definition: DtWeatherAreaGroup.h:463
DT_DLL_VRVCORE double distance(const makVrv::DtCoordinateSystem &, const DtVector &from, const DtVector &to)
Returns the distance from the two points. Coordinates are in local database coordinates The coordinat...
osg::ref_ptr< osg::Group > myWeatherLightningSensorGroup
Definition: DtWeatherAreaGroup.h:738
osg::ref_ptr< osg::Uniform > myPersMatrixUniform
Definition: DtWeatherAreaGroup.h:476
DrawItemType
brief Draw item type enumerations used for sorting bins.
Definition: DtWeatherAreaGroup.h:93
SoftnessUniforms mySoftnessUniforms
Definition: DtWeatherAreaGroup.h:491
osg::ref_ptr< makVrv::DtWeatherAreaDrawable > mySortPreCloudsDrawable
Definition: DtWeatherAreaGroup.h:724
float myPatternTextureWidth
Definition: DtWeatherAreaGroup.h:493
float myDensity
Definition: DtWeatherAreaGroup.h:464
osg::ref_ptr< osg::Group > myGroundFogEffectSensorGroup
Definition: DtWeatherAreaGroup.h:736
Class to manage disconnection of boost connections on deletion.
Definition: DtSignalConnectionManager.h:20
osg::ref_ptr< osg::Group > mySortPostCloudsGroupNode
Definition: DtWeatherAreaGroup.h:726
State component that injects Fog rendering capabilities into a state set.
Definition: DtOsgFogComponent.h:34
std::vector< DrawItem > mySortBinPostClouds
Definition: DtWeatherAreaGroup.h:742
GroundFogPatchState myMutableSandstormState
Definition: DtWeatherAreaGroup.h:747
DtWeatherAreaObjectMap myMutableWeatherAreaObjectMap
Definition: DtWeatherAreaGroup.h:787
osg::ref_ptr< osg::Geode > mySortPreCloudsGeode
Definition: DtWeatherAreaGroup.h:723
int mySortDistance
Definition: DtWeatherAreaGroup.h:423
Contains vrvCore::DtCloudLayerRecord declaration.
osg::ref_ptr< osg::Uniform > myViewportUniform
Definition: DtWeatherAreaGroup.h:477
float myTimeStep
Definition: DtWeatherAreaGroup.h:761
DtWeatherFogFroxelGrid uses a frustum voxel grid to compute density/translucency at voxel locations b...
Definition: DtWeatherFogFroxelGrid.h:56
LightningState myMutableLightningState
Definition: DtWeatherAreaGroup.h:750
A structure used to hold data for drawing.
Definition: DtWeatherPrecipitationShaft.h:70
unsigned long long DtUniqueID
Definition: DtUniqueID.h:19
DtWeatherLightningMap myMutableWeatherLightningMap
Definition: DtWeatherAreaGroup.h:795
std::map< DtUniqueID, DtWeatherLightning * > DtWeatherLightningMap
This is mutable because it&#39;s used as part of the const drawImplementation.
Definition: DtWeatherAreaGroup.h:794
A structure to hold draw state information for precipitation shaft shaders.
Definition: DtWeatherAreaGroup.h:505
std::map< DtUniqueID, DtWeatherPrecipitationShaft * > DtWeatherPrecipitationShaftMap
This is mutable because it&#39;s used as part of the const drawImplementation.
Definition: DtWeatherAreaGroup.h:790
An area of ground fog patch items and effects. One ground fog patch area is associated with a non-inf...
Definition: DtGroundFogPatchArea.h:71
Functor for comparing draw items by sorting distance.
Definition: DtWeatherAreaGroup.h:430
std::map< DtUniqueID, HeightFogItem > DtHeightFogMap
Definition: DtWeatherAreaGroup.h:752
Frustum_64 myFrustum
Definition: DtWeatherAreaGroup.h:758
float myDensityBlend
Definition: DtWeatherAreaGroup.h:466
Base class to provide boost signal/slot management.
void * myItem
Definition: DtWeatherAreaGroup.h:426
float myCornerRadius
Definition: DtWeatherAreaGroup.h:467
osg::Matrixd myBasisRot
Definition: DtWeatherAreaGroup.h:461
Contains makVrv::DtWeatherAreaDrawable class.
osg::ref_ptr< osg::Group > mySandstormSensorGroup
Definition: DtWeatherAreaGroup.h:735
osg::ref_ptr< osg::Uniform > myIsReflectionUniform
Definition: DtWeatherAreaGroup.h:478
long long DtCloudLayerId
Definition: DtCloudLayer.h:26
Contains makVrv::DtGroundFogEffect class.
Camera class.
Contains DLL export macros.
std::map< DtCloudLayerId, DtGroundFogPatchArea * > DtGroundFogPatchAreaMap
This is mutable because it&#39;s used as part of the const drawImplementation.
Definition: DtWeatherAreaGroup.h:778
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:76
Contains the makVrv::DtOsgCullVisitorParameters class. Visual mode information is set into the camera...
std::vector< DrawItem > mySortBinPreClouds
Definition: DtWeatherAreaGroup.h:741
GroundFogEffectState myMutableGroundFogEffectState
Definition: DtWeatherAreaGroup.h:748
osg::ref_ptr< osg::Uniform > myViewMatrixInvUniform
Definition: DtWeatherAreaGroup.h:492
A structure to hold data for a draw item. A draw item is placed in a draw item sorting bin...
Definition: DtWeatherAreaGroup.h:412
A structure used to hold data for drawing.
Definition: DtGroundFogPatchArea.h:84
A structure to hold draw state information for ground fog patch (and sandstorm) shaders.
Definition: DtWeatherAreaGroup.h:484
DrawItemType myItemType
Definition: DtWeatherAreaGroup.h:425
osg::ref_ptr< osg::Geode > mySortPostCloudsGeode
Definition: DtWeatherAreaGroup.h:727
Contains makVrv::DtWeatherLightning class.
Contains makVrv::DtWeatherPrecipitationShaft class.
int mySortPriority
Definition: DtWeatherAreaGroup.h:424
osg::ref_ptr< osg::Geode > mySortTransparentGeode
Definition: DtWeatherAreaGroup.h:731
DtWeatherAreaMap myMutableWeatherAreaMap
Definition: DtWeatherAreaGroup.h:783
SoftnessUniforms mySoftnessUniforms
Definition: DtWeatherAreaGroup.h:499
float myWindDirectionRad
Definition: DtWeatherAreaGroup.h:718
virtual osg::Object * cloneType() const
Definition: DtWeatherAreaGroup.h:130
DtVector myBounds
Definition: DtWeatherAreaGroup.h:468

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)