VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtOsgCullVisitorParameters.h
Go to the documentation of this file.
1 /*****************************************************************************
2  * Copyright (c) 2025 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
13 
14 #pragma once
15 
16 
17 #include <vrvOsg/DtModelScaler.h>
18 
23 
24 #include <osgUtil/CullVisitor>
25 
26 #include <osg/BoundingBox>
27 #include <osg/BoundingSphere>
28 #include <osg/Vec2>
29 
30 
31 #include <matrix/vlMath.h>
32 #include <algorithm>
33 #include <math.h>
34 
35 #ifdef min
36 #undef min
37 #endif
38 
39 namespace makVrv
40 {
44  class DT_DLL_VRVOSG DtOsgCullVisitorParameters : public osg::Referenced
45  {
46  public:
47 
50  : osg::Referenced()
51  , mySkyFlag(true)
52  , myDynamicLightsFlag(true)
53  , myDynamicOceanFlag(true)
54  , myOceanSeaLevelRenderBias(0.0f)
55  , myCameraAboveWater(true)
56  , myOrthoFlag(false)
57  , myCameraResolution( 1.0 )
58  , myTerrainRadius( 1.0 )
59  , myScalingFlag( true )
60  , myClampedPixelSize( 1.0 )
61  , myEntityLodScaleFactor( 1.0f )
62  , myTerrainLodScaleFactor( 1.0f )
63  , myCoordinateSystemChanged( false )
64  , myAltitude2D( 0. )
65  , myDynamicWaterVisibilityEnable(true)
66  , myDynamicWaterVisibilityMax(75.)
67  , myModelScaler( 0 )
68  , myTerrainMagnificationHighLodAngle(DtDeg2Rad(15))
69  , myTerrainMagnificationScaleFactor(1.)
70  , myCameraVelocity( 0, 0, 0 )
71  , myModelSet(DtModelSetId::Models3D)
72  , myIncludeLightPoints(true)
73  , myCurrentScaleFactor(1.0)
74  , myIndirectDistScaleEnabled(false)
75  , myIndirectDistScale(1.0)
76  , myChannelLodScale(1.0f)
77  , myFocusPoints()
78  {
79  // intentional noop
80  }
81 
83  inline void setTerrainLodScaleFactor( float sf )
84  {
85  myTerrainLodScaleFactor = sf;
86  }
87 
89  inline float terrainLodScaleFactor() const
90  {
91  return myTerrainLodScaleFactor;
92  }
93 
98  inline void setEntityLodScaleFactor(float lodDistanceScale)
99  {
100  myEntityLodScaleFactor = lodDistanceScale;
101  }
102 
104  inline float entityLodScaleFactor() const
105  {
106  return myEntityLodScaleFactor;
107  }
108 
110  void setCameraResolution(double factor)
111  {
112  myCameraResolution = factor;
113  }
114 
116  inline double cameraResolution() const
117  {
118  return myCameraResolution;
119  }
121  void setCameraVelocity(double x, double y, double z)
122  {
123  myCameraVelocity = osg::Vec3d(x,y,z);
124  }
125 
127  inline const osg::Vec3d& cameraVelocity() const
128  {
129  return myCameraVelocity;
130  }
131 
133  void setTerrainRadius(double rad)
134  {
135  myTerrainRadius = rad;
136  }
137 
139  void setAltitude2D( double altitude )
140  {
141  myAltitude2D = altitude;
142  }
143 
145  double altitude2D() const
146  {
147  return myAltitude2D;
148  }
149 
151  inline DtModelSetId modelSet() const
152  {
153  return myModelSet;
154  }
155 
157  void setModelSet(DtModelSetId modelSet)
158  {
159  myModelSet = modelSet;
160  }
161 
163  inline double terrainRadius() const
164  {
165  return myTerrainRadius;
166  }
167 
169  void setOrthoCulling(bool ortho)
170  {
171  myOrthoFlag = ortho;
172  }
173 
175  inline bool orthoCulling() const
176  {
177  return myOrthoFlag;
178  }
179 
181  {
182  myLodCenterSettings = settings;
183  }
184 
186  {
187  return myLodCenterSettings;
188  }
189 
191  inline void setSkyRendering(bool renderSky)
192  {
193  mySkyFlag = renderSky;
194 
195  }
196 
198  inline bool skyRendering() const
199  {
200  return mySkyFlag;
201  }
202 
204  inline void setDynamicLights(bool enabled)
205  {
206  myDynamicLightsFlag = enabled;
207  }
208 
210  inline bool dynamicLights() const
211  {
212  return myDynamicLightsFlag;
213  }
214 
216  inline void setDynamicOcean(bool enabled)
217  {
218  myDynamicOceanFlag = enabled;
219  }
220 
222  inline bool dynamicOcean() const
223  {
224  return myDynamicOceanFlag;
225  }
226 
228  inline void setOceanSeaLevelRenderBias(float meters)
229  {
230  myOceanSeaLevelRenderBias = meters;
231  }
232 
234  inline float oceanSeaLevelRenderBias() const
235  {
236  return myOceanSeaLevelRenderBias;
237  }
238 
240  inline void setCameraAboveWater(bool aboveWater)
241  {
242  myCameraAboveWater = aboveWater;
243  }
244 
246  inline bool cameraAboveWater() const
247  {
248  return myCameraAboveWater;
249  }
250 
252  void setScaling( bool scaling )
253  {
254  myScalingFlag = scaling;
255  }
256 
258  inline bool scaling() const
259  {
260  return myScalingFlag;
261  }
262 
264  void setCoordinateSystemChanged( bool changed )
265  {
266  myCoordinateSystemChanged = changed;
267  }
268 
270  inline bool coordinateSystemChanged() const
271  {
272  return myCoordinateSystemChanged;
273  }
274 
277  inline void setModelScaler( DtModelScaler* scaler )
278  {
279  myModelScaler = scaler;
280  }
281 
283  {
284  return myModelScaler;
285  }
286 
288  inline double calculateModelScale( const osg::Camera& camera,
289  const osg::Node& node ) const
290  {
291  if ( myModelScaler.valid() )
292  {
293  return myModelScaler->calculateScale( *this, camera, node );
294  }
295  else
296  {
297  return 1.;
298  }
299  }
300 
305  void setClampedPixelSize(double d)
306  {
307  myClampedPixelSize = d;
308  }
309 
311  double clampedPixelSize() const
312  {
313  return myClampedPixelSize;
314  }
315 
319  inline void setDynamicWaterVisibilityEnable( bool enable )
320  {
321  myDynamicWaterVisibilityEnable = enable;
322  }
323 
325  inline bool dynamicWaterVisibilityEnable() const
326  {
327  return myDynamicWaterVisibilityEnable;
328  }
329 
332  inline void setDynamicWaterVisibilityMax( double visMax )
333  {
334  myDynamicWaterVisibilityMax = visMax;
335  }
336 
339  inline double dynamicWaterVisibilityMax() const
340  {
341  return myDynamicWaterVisibilityMax;
342  }
343 
346  inline void setTerrainMagnificationScaleFactor(float factor)
347  {
348  myTerrainMagnificationScaleFactor = factor;
349  }
350 
353  inline float terrainMagnificationScaleFactor() const
354  {
355  return myTerrainMagnificationScaleFactor;
356  }
357 
364  inline void setTerrainMagnificationHighLodAngle(float radians)
365  {
366  myTerrainMagnificationHighLodAngle = radians;
367  }
368 
373  inline float terrainMagnificationHighLodAngle() const
374  {
375  return myTerrainMagnificationHighLodAngle;
376  }
377 
379  inline void setIncludeLightPoints(bool flag)
380  {
381  myIncludeLightPoints = flag;
382  }
383 
385  inline bool includeLightPoints() const
386  {
387  return myIncludeLightPoints;
388  }
389 
393  {
394  return myCurrentScaleFactor;
395  }
396 
399  inline void setCurrentTraversalScaleFactor(float currentScaleFactor)
400  {
401  myCurrentScaleFactor = currentScaleFactor;
402  }
403 
405  inline void setIndirectDistanceScaleEnabled(bool enabled)
406  {
407  myIndirectDistScaleEnabled = enabled;
408  }
409 
411  inline bool indirectDistanceScaleEnabled() const
412  {
413  return myIndirectDistScaleEnabled;
414  }
415 
417  inline void setIndirectDistanceScale(float scale)
418  {
419  myIndirectDistScale = scale;
420  }
421 
423  inline float indirectDistanceScale() const
424  {
425  return myIndirectDistScale;
426  }
427 
429  inline void setChannelLodScale(float scale)
430  {
431  myChannelLodScale = scale;
432  }
433 
435  inline float channelLodScale() const
436  {
437  return myChannelLodScale;
438  }
439 
442  inline void setFocusPoints(std::vector<osg::Vec3d>& points)
443  {
444  myFocusPoints = points;
445  }
446 
449  inline std::vector<osg::Vec3d>& focusPoints()
450  {
451  return myFocusPoints;
452  }
453 
455  virtual DtIndirectModelScalingAlgorithm indirectModelScalingAlgorithm(void) const;
456 
457  protected:
458 
461 
464  double myAltitude2D;
465  bool mySkyFlag;
479  osg::Vec3d myCameraVelocity;
485  std::vector<osg::Vec3d> myFocusPoints;
486 
488 
490  };
491 
494  class DT_DLL_VRVOSG DtOsgFixedScaleParameters : public osg::Referenced
495  {
496  public:
498  : myFixedPixelSize( 1.0 )
499  , myLength( 0.0 )
500  , myWidth( 0.0 )
501  , myHeight( 0.0 )
502  , myScaleX(true)
503  , myScaleY(true)
504  , myScaleZ(true)
505  {
506 }
507 
509  {
510  }
511 
512  void setFixedPixelSize(double d)
513  {
514  myFixedPixelSize = d;
515  }
516 
517  double fixedPixelSize() const
518  {
519  return myFixedPixelSize;
520  }
521 
522  void setDimensions(double length, double width, double height)
523  {
524  myLength = length; myWidth = width; myHeight = height;
525  }
526 
527  inline double length() const
528  {
529  return myLength;
530  }
531 
532  inline double width() const
533  {
534  return myWidth;
535  }
536 
537  inline double height() const
538  {
539  return myHeight;
540  }
541 
542  inline void calculateScaleFactors(const osgUtil::CullVisitor& visitor,
543  const osg::BoundingSphere& sphere, DtOsgCullVisitorParameters* info,
544  double& scaleFactorX, double& scaleFactorY, double& scaleFactorZ) const
545  {
546  double clampedSize =
547  visitor.clampedPixelSize( sphere.center(), info->terrainRadius() );
548  info->setClampedPixelSize(clampedSize);
549 
550  calculateScaleFactors( sphere, *info, scaleFactorX,
551  scaleFactorY, scaleFactorZ );
552  }
553 
554  inline void calculateScaleFactors(const osg::BoundingSphere& sphere, const DtOsgCullVisitorParameters& info,
555  double& scaleFactorX, double& scaleFactorY, double& scaleFactorZ) const
556  {
557  scaleFactorX = scaleFactorY = scaleFactorZ = 1.0;
558 
559  double metersPerPixel = info.terrainRadius() / info.clampedPixelSize(); // Meters per pixel
560  double curPixels = myWidth / metersPerPixel; // Pixels needed to draw
561 
562  if (myScaleX)
563  {
564  scaleFactorX = myFixedPixelSize / curPixels;
565  }
566 
567  if (myScaleY)
568  {
569  scaleFactorY = scaleFactorX;
570  }
571 
572  if (myScaleX)
573  {
574  scaleFactorZ = 1.0;
575  }
576  }
577 
578  void setScaleX(bool b)
579  {
580  myScaleX = b;
581  }
582 
583  inline bool scaleX() const
584  {
585  return myScaleX;
586  }
587 
588  void setScaleXY(bool b)
589  {
590  myScaleY = b;
591  }
592 
593  inline bool scaleY() const
594  {
595  return myScaleY;
596  }
597 
598  void setScaleZ(bool b)
599  {
600  myScaleZ = b;
601  }
602 
603  inline bool scaleZ() const
604  {
605  return myScaleZ;
606  }
607 
608  protected:
610  double myLength, myWidth, myHeight;
611  bool myScaleX, myScaleY, myScaleZ;
612  };
613 
614 }
615 
616 
double myAltitude2D
Definition: DtOsgCullVisitorParameters.h:464
std::vector< osg::Vec3d > & focusPoints()
get the focus points. These are used to calculate the terrain intersections which are then used to li...
Definition: DtOsgCullVisitorParameters.h:449
void setDynamicWaterVisibilityMax(double visMax)
Set the maximum value to which water visibility will be set when dynamic water visibility is enabled...
Definition: DtOsgCullVisitorParameters.h:332
float myCurrentScaleFactor
Definition: DtOsgCullVisitorParameters.h:482
void setFocusPoints(std::vector< osg::Vec3d > &points)
set the focus points. These are used to calculate the terrain intersections which are then used to li...
Definition: DtOsgCullVisitorParameters.h:442
bool myScaleZ
Definition: DtOsgCullVisitorParameters.h:611
Object used to calculate fixed scale of object based on how many pixels on screen it should take up...
Definition: DtOsgCullVisitorParameters.h:494
double fixedPixelSize() const
Definition: DtOsgCullVisitorParameters.h:517
void setModelScaler(DtModelScaler *scaler)
Set the XR scaler to use. This will not typically be called by users to change the XR Node Scaler...
Definition: DtOsgCullVisitorParameters.h:277
bool myDynamicOceanFlag
Definition: DtOsgCullVisitorParameters.h:467
void setSkyRendering(bool renderSky)
Set whether the sky is being rendered.
Definition: DtOsgCullVisitorParameters.h:191
void setClampedPixelSize(double d)
Set the clamped pixel size calculated when using DtOsgFixedScaleParameters. This is ust used to pass ...
Definition: DtOsgCullVisitorParameters.h:305
double myTerrainRadius
Definition: DtOsgCullVisitorParameters.h:463
double altitude2D() const
Return the (implied) 2D altitude.
Definition: DtOsgCullVisitorParameters.h:145
double clampedPixelSize() const
Retrieve the clamped pixel size set in setClampedPixelSize.
Definition: DtOsgCullVisitorParameters.h:311
void setTerrainLodScaleFactor(float sf)
Set the LOD scale factor that affects LODing and paging of terrain visuals.
Definition: DtOsgCullVisitorParameters.h:83
void setCameraResolution(double factor)
Set the zoom factor that effects LODing.
Definition: DtOsgCullVisitorParameters.h:110
bool myCameraAboveWater
Definition: DtOsgCullVisitorParameters.h:469
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
The DtModelScaler prepares the data from the osg camera, osg node, and cull visitor parameters and th...
Definition: DtModelScaler.h:32
void setDynamicOcean(bool enabled)
Set whether a dynamic ocean rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:216
Definition: featureContext.h:36
osg::ref_ptr< DtModelScaler > myModelScaler
Definition: DtOsgCullVisitorParameters.h:476
void setEntityLodScaleFactor(float lodDistanceScale)
Set the LOD scale factor that affects LODing and culling of entities NOTE: The &#39;lod scale factor&#39; is ...
Definition: DtOsgCullVisitorParameters.h:98
float myIndirectDistScale
Definition: DtOsgCullVisitorParameters.h:484
void setTerrainMagnificationScaleFactor(float factor)
Set the amount that any view magnification value is reduced by when determining the distance to a pag...
Definition: DtOsgCullVisitorParameters.h:346
void setIndirectDistanceScaleEnabled(bool enabled)
Set if the distance for culling instanced data is enabled.
Definition: DtOsgCullVisitorParameters.h:405
float myTerrainLodScaleFactor
Definition: DtOsgCullVisitorParameters.h:459
DtOsgCullVisitorParameters()
CTOR.
Definition: DtOsgCullVisitorParameters.h:49
void setCurrentTraversalScaleFactor(float currentScaleFactor)
set the scale factor for the current place in the cull visitor traversal. this is used by the light p...
Definition: DtOsgCullVisitorParameters.h:399
bool myIndirectDistScaleEnabled
Definition: DtOsgCullVisitorParameters.h:483
double length() const
Definition: DtOsgCullVisitorParameters.h:527
double terrainRadius() const
Get the terrain radius.
Definition: DtOsgCullVisitorParameters.h:163
double calculateModelScale(const osg::Camera &camera, const osg::Node &node) const
calculate the model scale using the registered XR scaler.
Definition: DtOsgCullVisitorParameters.h:288
Contains makVrv::DtIndirectModelScalingAlgorithm enumeration.
float myOceanSeaLevelRenderBias
Definition: DtOsgCullVisitorParameters.h:468
DtIndirectModelScalingAlgorithm
Definition: DtIndirectModelScalingAlgorithm.h:15
DtOsgFixedScaleParameters()
Definition: DtOsgCullVisitorParameters.h:497
bool scaleZ() const
Definition: DtOsgCullVisitorParameters.h:603
osg::Vec3d myCameraVelocity
Definition: DtOsgCullVisitorParameters.h:479
double myCameraResolution
Definition: DtOsgCullVisitorParameters.h:462
bool cameraAboveWater() const
Get whether the camera is above water.
Definition: DtOsgCullVisitorParameters.h:246
void setScaleX(bool b)
Definition: DtOsgCullVisitorParameters.h:578
void setCameraVelocity(double x, double y, double z)
Set the camera velocity.
Definition: DtOsgCullVisitorParameters.h:121
float myTerrainMagnificationScaleFactor
Definition: DtOsgCullVisitorParameters.h:477
void setTerrainRadius(double rad)
Set the terrain radius.
Definition: DtOsgCullVisitorParameters.h:133
virtual ~DtOsgFixedScaleParameters()
Definition: DtOsgCullVisitorParameters.h:508
DtModelScaler * findModelScaler() const
Definition: DtOsgCullVisitorParameters.h:282
float channelLodScale() const
get the channel lod scale. This is only the channel configuration value and not the view magnificatio...
Definition: DtOsgCullVisitorParameters.h:435
Definition: DtObserverObject.h:71
void setDynamicLights(bool enabled)
Set whether dynamic lights are enabled.
Definition: DtOsgCullVisitorParameters.h:204
bool scaleX() const
Definition: DtOsgCullVisitorParameters.h:583
DtModelSetId myModelSet
Definition: DtOsgCullVisitorParameters.h:480
const osg::Vec3d & cameraVelocity() const
Get the camera velocity.
Definition: DtOsgCullVisitorParameters.h:127
bool scaling() const
Get whether scalable groups should be scaled by distance.
Definition: DtOsgCullVisitorParameters.h:258
float myEntityLodScaleFactor
Definition: DtOsgCullVisitorParameters.h:460
void setDimensions(double length, double width, double height)
Definition: DtOsgCullVisitorParameters.h:522
void setTerrainMagnificationHighLodAngle(float radians)
Set the angle used when paging in high LOD tiles, the angle (radians) represents the half angle...
Definition: DtOsgCullVisitorParameters.h:364
float terrainLodScaleFactor() const
Return the current LOD scale factor for terrain visuals.
Definition: DtOsgCullVisitorParameters.h:89
Contains makVrv::DtObserverObject class declaration.
void setCoordinateSystemChanged(bool changed)
Set whether the coordinate system changed this frame.
Definition: DtOsgCullVisitorParameters.h:264
const DtObserverObject::DtLodCenterSettings & lodCenterSettings() const
Definition: DtOsgCullVisitorParameters.h:185
bool dynamicLights() const
Get whether dynamic lights rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:210
The osg cull vistor parameters class provides additional culling and intersector parameters for choos...
Definition: DtOsgCullVisitorParameters.h:44
void setDynamicWaterVisibilityEnable(bool enable)
Set dynamic water visibility, based on altitude. Water visibility will be scaled from its specified v...
Definition: DtOsgCullVisitorParameters.h:319
float oceanSeaLevelRenderBias() const
Returns the ocean sea level rendering bias in meters.
Definition: DtOsgCullVisitorParameters.h:234
DtObserverObject::DtLodCenterSettings myLodCenterSettings
Definition: DtOsgCullVisitorParameters.h:489
float myChannelLodScale
Definition: DtOsgCullVisitorParameters.h:487
float indirectDistanceScale() const
Get the distance for culling instanced data.
Definition: DtOsgCullVisitorParameters.h:423
void setLodCenterSettings(const DtObserverObject::DtLodCenterSettings &settings)
Definition: DtOsgCullVisitorParameters.h:180
void setOrthoCulling(bool ortho)
Set whether the culling should be doing in orthographic mode.
Definition: DtOsgCullVisitorParameters.h:169
double cameraResolution() const
Get the zoom factor.
Definition: DtOsgCullVisitorParameters.h:116
bool myDynamicWaterVisibilityEnable
Definition: DtOsgCullVisitorParameters.h:474
Contains the declaration of the makVrv::DtModelScaler class.
bool myIncludeLightPoints
Definition: DtOsgCullVisitorParameters.h:481
double myClampedPixelSize
Definition: DtOsgCullVisitorParameters.h:472
bool includeLightPoints() const
get the flag for including light points in this cull visitor traversal. If false then light points wi...
Definition: DtOsgCullVisitorParameters.h:385
bool dynamicOcean() const
Get whether a dynamic ocean rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:222
Contains the DtObserverModeManager class declaration.
void setScaling(bool scaling)
Set whether scalable groups should be scaled by distance.
Definition: DtOsgCullVisitorParameters.h:252
bool mySkyFlag
Definition: DtOsgCullVisitorParameters.h:465
bool indirectDistanceScaleEnabled() const
True if the distance for culling instanced data is enabled.
Definition: DtOsgCullVisitorParameters.h:411
double myDynamicWaterVisibilityMax
Definition: DtOsgCullVisitorParameters.h:475
double height() const
Definition: DtOsgCullVisitorParameters.h:537
void calculateScaleFactors(const osg::BoundingSphere &sphere, const DtOsgCullVisitorParameters &info, double &scaleFactorX, double &scaleFactorY, double &scaleFactorZ) const
Definition: DtOsgCullVisitorParameters.h:554
bool coordinateSystemChanged() const
Get whether the coordinate system changed this frame.
Definition: DtOsgCullVisitorParameters.h:270
void setChannelLodScale(float scale)
set the channel lod scale. This is only the channel configuration value and not the view magnificatio...
Definition: DtOsgCullVisitorParameters.h:429
void calculateScaleFactors(const osgUtil::CullVisitor &visitor, const osg::BoundingSphere &sphere, DtOsgCullVisitorParameters *info, double &scaleFactorX, double &scaleFactorY, double &scaleFactorZ) const
Definition: DtOsgCullVisitorParameters.h:542
double myWidth
Definition: DtOsgCullVisitorParameters.h:610
DT_DLL_VRVCORE double length(const makVrv::DtCoordinateSystem &, const std::vector< DtVector > &vertices)
Returns the total distance of a segmented line defined by the provided vector of vertices. Coordinates are in local database coordinates. The coordinate system is used to convert between the local database coordinates and geocentric. All distance is in 2D – the Z value is ignored.
void setModelSet(DtModelSetId modelSet)
Set the model set currently being rendered.
Definition: DtOsgCullVisitorParameters.h:157
bool scaleY() const
Definition: DtOsgCullVisitorParameters.h:593
bool orthoCulling() const
Get whether the culling is to be done in 2D orthographic mode.
Definition: DtOsgCullVisitorParameters.h:175
bool myCoordinateSystemChanged
Definition: DtOsgCullVisitorParameters.h:473
float terrainMagnificationHighLodAngle() const
Get the viewing angle within which high LOD tiles will be used ex. rad angle=0.26179 = 15 degrees...
Definition: DtOsgCullVisitorParameters.h:373
float entityLodScaleFactor() const
Return the current LOD scale factor for entities.
Definition: DtOsgCullVisitorParameters.h:104
bool myScalingFlag
Definition: DtOsgCullVisitorParameters.h:471
double dynamicWaterVisibilityMax() const
Get the maximum value to which water visibility will be set when dynamic water visibility is enabled...
Definition: DtOsgCullVisitorParameters.h:339
bool skyRendering() const
Get whether the sky is being rendered.
Definition: DtOsgCullVisitorParameters.h:198
bool dynamicWaterVisibilityEnable() const
Get whether dynamic water is enabled.
Definition: DtOsgCullVisitorParameters.h:325
std::vector< osg::Vec3d > myFocusPoints
Definition: DtOsgCullVisitorParameters.h:485
DtModelSetId
Definition: DtModelSetEnums.h:19
void setIncludeLightPoints(bool flag)
set the flag for including light points in this cull visitor traversal. If false then light points wi...
Definition: DtOsgCullVisitorParameters.h:379
void setOceanSeaLevelRenderBias(float meters)
Sets the ocean sea level rendering bias in meters.
Definition: DtOsgCullVisitorParameters.h:228
void setFixedPixelSize(double d)
Definition: DtOsgCullVisitorParameters.h:512
void setScaleZ(bool b)
Definition: DtOsgCullVisitorParameters.h:598
bool myDynamicLightsFlag
Definition: DtOsgCullVisitorParameters.h:466
float myTerrainMagnificationHighLodAngle
Definition: DtOsgCullVisitorParameters.h:478
float terrainMagnificationScaleFactor() const
Get the amount that any view magnification value is reduced by when determining the distance to a pag...
Definition: DtOsgCullVisitorParameters.h:353
void setIndirectDistanceScale(float scale)
Set the distance for culling instanced data.
Definition: DtOsgCullVisitorParameters.h:417
double width() const
Definition: DtOsgCullVisitorParameters.h:532
void setScaleXY(bool b)
Definition: DtOsgCullVisitorParameters.h:588
DtModelSetId modelSet() const
Get the model set currently being rendered.
Definition: DtOsgCullVisitorParameters.h:151
void setAltitude2D(double altitude)
Set the (implied) altitude when orthoCulling.
Definition: DtOsgCullVisitorParameters.h:139
Contains various enum classes relating to model sets.
bool myOrthoFlag
Definition: DtOsgCullVisitorParameters.h:470
void setCameraAboveWater(bool aboveWater)
Set whether the camera is above water.
Definition: DtOsgCullVisitorParameters.h:240
float currentTraversalScaleFactor()
get the scale factor for the current place in the cull visitor traversal. this is used by the light p...
Definition: DtOsgCullVisitorParameters.h:392
double myFixedPixelSize
Definition: DtOsgCullVisitorParameters.h:609

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)