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) 2026 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
13 
14 #pragma once
15 
16 
17 #include <vrvOsg/DtModelScaler.h>
18 
23 
25 
26 #include <osgUtil/CullVisitor>
27 
28 #include <osg/BoundingBox>
29 #include <osg/BoundingSphere>
30 #include <osg/Vec2>
31 
32 
33 #include <matrix/vlMath.h>
34 #include <algorithm>
35 #include <math.h>
36 
37 #ifdef min
38 #undef min
39 #endif
40 
41 namespace makVrv
42 {
46  class DT_DLL_VRVOSG DtOsgCullVisitorParameters : public osg::Referenced
47  {
48  public:
49 
52  : osg::Referenced()
53  , mySkyFlag(true)
54  , myDynamicLightsFlag(true)
55  , myDynamicOceanFlag(true)
56  , myOceanSeaLevelRenderBias(0.0f)
57  , myCameraAboveWater(true)
58  , myOrthoFlag(false)
59  , myCameraResolution( 1.0 )
60  , myTerrainRadius( 1.0 )
61  , myScalingFlag( true )
62  , myClampedPixelSize( 1.0 )
63  , myEntityLodScaleFactor( 1.0f )
64  , myTerrainLodScaleFactor( 1.0f )
65  , myCoordinateSystemChanged( false )
66  , myAltitude2D( 0. )
67  , myDynamicWaterVisibilityEnable(true)
68  , myDynamicWaterVisibilityMax(75.)
69  , myModelScaler( 0 )
70  , myTerrainMagnificationScaleFactor(1.)
71  , myCameraVelocity( 0, 0, 0 )
72  , myModelSet(DtModelSetId::Models3D)
73  , myIncludeLightPoints(true)
74  , myCurrentScaleFactor(1.0)
75  , myIndirectDistScaleEnabled(false)
76  , myIndirectDistScale(1.0)
77  , myChannelLodScale(1.0f)
78  , myFocusPoints()
79  , mySensorMask(DtOsgNodeFlags::FlagVisibleSensorOn)
80  {
81  // intentional noop
82  }
83 
85  inline void setTerrainLodScaleFactor( float sf )
86  {
87  myTerrainLodScaleFactor = sf;
88  }
89 
91  inline float terrainLodScaleFactor() const
92  {
93  return myTerrainLodScaleFactor;
94  }
95 
100  inline void setEntityLodScaleFactor(float lodDistanceScale)
101  {
102  myEntityLodScaleFactor = lodDistanceScale;
103  }
104 
106  inline float entityLodScaleFactor() const
107  {
108  return myEntityLodScaleFactor;
109  }
110 
112  void setCameraResolution(double factor)
113  {
114  myCameraResolution = factor;
115  }
116 
118  inline double cameraResolution() const
119  {
120  return myCameraResolution;
121  }
123  void setCameraVelocity(double x, double y, double z)
124  {
125  myCameraVelocity = osg::Vec3d(x,y,z);
126  }
127 
129  inline const osg::Vec3d& cameraVelocity() const
130  {
131  return myCameraVelocity;
132  }
133 
135  void setTerrainRadius(double rad)
136  {
137  myTerrainRadius = rad;
138  }
139 
141  void setAltitude2D( double altitude )
142  {
143  myAltitude2D = altitude;
144  }
145 
147  double altitude2D() const
148  {
149  return myAltitude2D;
150  }
151 
153  inline DtModelSetId modelSet() const
154  {
155  return myModelSet;
156  }
157 
159  void setModelSet(DtModelSetId modelSet)
160  {
161  myModelSet = modelSet;
162  }
163 
165  inline double terrainRadius() const
166  {
167  return myTerrainRadius;
168  }
169 
171  void setOrthoCulling(bool ortho)
172  {
173  myOrthoFlag = ortho;
174  }
175 
177  inline bool orthoCulling() const
178  {
179  return myOrthoFlag;
180  }
181 
183  {
184  myLodCenterSettings = settings;
185  }
186 
188  {
189  return myLodCenterSettings;
190  }
191 
193  inline void setSkyRendering(bool renderSky)
194  {
195  mySkyFlag = renderSky;
196 
197  }
198 
200  inline bool skyRendering() const
201  {
202  return mySkyFlag;
203  }
204 
206  inline void setDynamicLights(bool enabled)
207  {
208  myDynamicLightsFlag = enabled;
209  }
210 
212  inline bool dynamicLights() const
213  {
214  return myDynamicLightsFlag;
215  }
216 
218  inline void setDynamicOcean(bool enabled)
219  {
220  myDynamicOceanFlag = enabled;
221  }
222 
224  inline bool dynamicOcean() const
225  {
226  return myDynamicOceanFlag;
227  }
228 
230  inline void setOceanSeaLevelRenderBias(float meters)
231  {
232  myOceanSeaLevelRenderBias = meters;
233  }
234 
236  inline float oceanSeaLevelRenderBias() const
237  {
238  return myOceanSeaLevelRenderBias;
239  }
240 
242  inline void setCameraAboveWater(bool aboveWater)
243  {
244  myCameraAboveWater = aboveWater;
245  }
246 
248  inline bool cameraAboveWater() const
249  {
250  return myCameraAboveWater;
251  }
252 
254  void setScaling( bool scaling )
255  {
256  myScalingFlag = scaling;
257  }
258 
260  inline bool scaling() const
261  {
262  return myScalingFlag;
263  }
264 
266  void setCoordinateSystemChanged( bool changed )
267  {
268  myCoordinateSystemChanged = changed;
269  }
270 
272  inline bool coordinateSystemChanged() const
273  {
274  return myCoordinateSystemChanged;
275  }
276 
279  inline void setModelScaler( DtModelScaler* scaler )
280  {
281  myModelScaler = scaler;
282  }
283 
285  {
286  return myModelScaler;
287  }
288 
290  inline double calculateModelScale( const osg::Camera& camera,
291  const osg::Node& node ) const
292  {
293  if ( myModelScaler.valid() )
294  {
295  return myModelScaler->calculateScale( *this, camera, node );
296  }
297  else
298  {
299  return 1.;
300  }
301  }
302 
307  void setClampedPixelSize(double d)
308  {
309  myClampedPixelSize = d;
310  }
311 
313  double clampedPixelSize() const
314  {
315  return myClampedPixelSize;
316  }
317 
321  inline void setDynamicWaterVisibilityEnable( bool enable )
322  {
323  myDynamicWaterVisibilityEnable = enable;
324  }
325 
327  inline bool dynamicWaterVisibilityEnable() const
328  {
329  return myDynamicWaterVisibilityEnable;
330  }
331 
334  inline void setDynamicWaterVisibilityMax( double visMax )
335  {
336  myDynamicWaterVisibilityMax = visMax;
337  }
338 
341  inline double dynamicWaterVisibilityMax() const
342  {
343  return myDynamicWaterVisibilityMax;
344  }
345 
348  inline void setTerrainMagnificationScaleFactor(float factor)
349  {
350  myTerrainMagnificationScaleFactor = factor;
351  }
352 
355  inline float terrainMagnificationScaleFactor() const
356  {
357  return myTerrainMagnificationScaleFactor;
358  }
359 
361  inline void setIncludeLightPoints(bool flag)
362  {
363  myIncludeLightPoints = flag;
364  }
365 
367  inline bool includeLightPoints() const
368  {
369  return myIncludeLightPoints;
370  }
371 
375  {
376  return myCurrentScaleFactor;
377  }
378 
381  inline void setCurrentTraversalScaleFactor(float currentScaleFactor)
382  {
383  myCurrentScaleFactor = currentScaleFactor;
384  }
385 
387  inline void setIndirectDistanceScaleEnabled(bool enabled)
388  {
389  myIndirectDistScaleEnabled = enabled;
390  }
391 
393  inline bool indirectDistanceScaleEnabled() const
394  {
395  return myIndirectDistScaleEnabled;
396  }
397 
399  inline void setIndirectDistanceScale(float scale)
400  {
401  myIndirectDistScale = scale;
402  }
403 
405  inline float indirectDistanceScale() const
406  {
407  return myIndirectDistScale;
408  }
409 
411  inline void setChannelLodScale(float scale)
412  {
413  myChannelLodScale = scale;
414  }
415 
417  inline float channelLodScale() const
418  {
419  return myChannelLodScale;
420  }
421 
424  inline void setFocusPoints(std::vector<osg::Vec3d>& points)
425  {
426  myFocusPoints = points;
427  }
428 
431  inline std::vector<osg::Vec3d>& focusPoints()
432  {
433  return myFocusPoints;
434  }
435 
437  inline void setSensorCullMask(uint32_t sensorMask)
438  {
439  mySensorMask = sensorMask;
440  }
441 
443  inline uint32_t getSensorCullMask()
444  {
445  return mySensorMask;
446  }
447 
449  virtual DtIndirectModelScalingAlgorithm indirectModelScalingAlgorithm(void) const;
450 
451  protected:
452 
455 
458  double myAltitude2D;
459  bool mySkyFlag;
472  osg::Vec3d myCameraVelocity;
478  std::vector<osg::Vec3d> myFocusPoints;
479  uint32_t mySensorMask;
480 
482 
484  };
485 
488  class DT_DLL_VRVOSG DtOsgFixedScaleParameters : public osg::Referenced
489  {
490  public:
492  : myFixedPixelSize( 1.0 )
493  , myLength( 0.0 )
494  , myWidth( 0.0 )
495  , myHeight( 0.0 )
496  , myScaleX(true)
497  , myScaleY(true)
498  , myScaleZ(true)
499  {
500 }
501 
503  {
504  }
505 
506  void setFixedPixelSize(double d)
507  {
508  myFixedPixelSize = d;
509  }
510 
511  double fixedPixelSize() const
512  {
513  return myFixedPixelSize;
514  }
515 
516  void setDimensions(double length, double width, double height)
517  {
518  myLength = length; myWidth = width; myHeight = height;
519  }
520 
521  inline double length() const
522  {
523  return myLength;
524  }
525 
526  inline double width() const
527  {
528  return myWidth;
529  }
530 
531  inline double height() const
532  {
533  return myHeight;
534  }
535 
536  inline void calculateScaleFactors(const osgUtil::CullVisitor& visitor,
537  const osg::BoundingSphere& sphere, DtOsgCullVisitorParameters* info,
538  double& scaleFactorX, double& scaleFactorY, double& scaleFactorZ) const
539  {
540  double clampedSize =
541  visitor.clampedPixelSize( sphere.center(), info->terrainRadius() );
542  info->setClampedPixelSize(clampedSize);
543 
544  calculateScaleFactors( sphere, *info, scaleFactorX,
545  scaleFactorY, scaleFactorZ );
546  }
547 
548  inline void calculateScaleFactors(const osg::BoundingSphere& sphere, const DtOsgCullVisitorParameters& info,
549  double& scaleFactorX, double& scaleFactorY, double& scaleFactorZ) const
550  {
551  scaleFactorX = scaleFactorY = scaleFactorZ = 1.0;
552 
553  double metersPerPixel = info.terrainRadius() / info.clampedPixelSize(); // Meters per pixel
554  double curPixels = myWidth / metersPerPixel; // Pixels needed to draw
555 
556  if (myScaleX)
557  {
558  scaleFactorX = myFixedPixelSize / curPixels;
559  }
560 
561  if (myScaleY)
562  {
563  scaleFactorY = scaleFactorX;
564  }
565 
566  if (myScaleX)
567  {
568  scaleFactorZ = 1.0;
569  }
570  }
571 
572  void setScaleX(bool b)
573  {
574  myScaleX = b;
575  }
576 
577  inline bool scaleX() const
578  {
579  return myScaleX;
580  }
581 
582  void setScaleXY(bool b)
583  {
584  myScaleY = b;
585  }
586 
587  inline bool scaleY() const
588  {
589  return myScaleY;
590  }
591 
592  void setScaleZ(bool b)
593  {
594  myScaleZ = b;
595  }
596 
597  inline bool scaleZ() const
598  {
599  return myScaleZ;
600  }
601 
602  protected:
604  double myLength, myWidth, myHeight;
605  bool myScaleX, myScaleY, myScaleZ;
606  };
607 
608 }
609 
610 
double myAltitude2D
Definition: DtOsgCullVisitorParameters.h:458
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:431
void setDynamicWaterVisibilityMax(double visMax)
Set the maximum value to which water visibility will be set when dynamic water visibility is enabled...
Definition: DtOsgCullVisitorParameters.h:334
float myCurrentScaleFactor
Definition: DtOsgCullVisitorParameters.h:475
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:424
bool myScaleZ
Definition: DtOsgCullVisitorParameters.h:605
Object used to calculate fixed scale of object based on how many pixels on screen it should take up...
Definition: DtOsgCullVisitorParameters.h:488
double fixedPixelSize() const
Definition: DtOsgCullVisitorParameters.h:511
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:279
bool myDynamicOceanFlag
Definition: DtOsgCullVisitorParameters.h:461
double length(const dvec3 &theVec)
Definition: DtVecUtils.h:20
void setSkyRendering(bool renderSky)
Set whether the sky is being rendered.
Definition: DtOsgCullVisitorParameters.h:193
void setClampedPixelSize(double d)
Set the clamped pixel size calculated when using DtOsgFixedScaleParameters. This is ust used to pass ...
Definition: DtOsgCullVisitorParameters.h:307
double myTerrainRadius
Definition: DtOsgCullVisitorParameters.h:457
double altitude2D() const
Return the (implied) 2D altitude.
Definition: DtOsgCullVisitorParameters.h:147
double clampedPixelSize() const
Retrieve the clamped pixel size set in setClampedPixelSize.
Definition: DtOsgCullVisitorParameters.h:313
void setTerrainLodScaleFactor(float sf)
Set the LOD scale factor that affects LODing and paging of terrain visuals.
Definition: DtOsgCullVisitorParameters.h:85
void setCameraResolution(double factor)
Set the zoom factor that effects LODing.
Definition: DtOsgCullVisitorParameters.h:112
bool myCameraAboveWater
Definition: DtOsgCullVisitorParameters.h:463
#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:218
Definition: featureContext.h:36
osg::ref_ptr< DtModelScaler > myModelScaler
Definition: DtOsgCullVisitorParameters.h:470
Contains makVrv:DtOsgNodeTraversalFlags class.
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:100
float myIndirectDistScale
Definition: DtOsgCullVisitorParameters.h:477
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:348
void setIndirectDistanceScaleEnabled(bool enabled)
Set if the distance for culling instanced data is enabled.
Definition: DtOsgCullVisitorParameters.h:387
float myTerrainLodScaleFactor
Definition: DtOsgCullVisitorParameters.h:453
DtOsgCullVisitorParameters()
CTOR.
Definition: DtOsgCullVisitorParameters.h:51
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:381
bool myIndirectDistScaleEnabled
Definition: DtOsgCullVisitorParameters.h:476
double length() const
Definition: DtOsgCullVisitorParameters.h:521
double terrainRadius() const
Get the terrain radius.
Definition: DtOsgCullVisitorParameters.h:165
double calculateModelScale(const osg::Camera &camera, const osg::Node &node) const
calculate the model scale using the registered XR scaler.
Definition: DtOsgCullVisitorParameters.h:290
Contains makVrv::DtIndirectModelScalingAlgorithm enumeration.
float myOceanSeaLevelRenderBias
Definition: DtOsgCullVisitorParameters.h:462
DtIndirectModelScalingAlgorithm
Definition: DtIndirectModelScalingAlgorithm.h:15
DtOsgFixedScaleParameters()
Definition: DtOsgCullVisitorParameters.h:491
bool scaleZ() const
Definition: DtOsgCullVisitorParameters.h:597
osg::Vec3d myCameraVelocity
Definition: DtOsgCullVisitorParameters.h:472
double myCameraResolution
Definition: DtOsgCullVisitorParameters.h:456
void setSensorCullMask(uint32_t sensorMask)
set the type of the currently active sensor
Definition: DtOsgCullVisitorParameters.h:437
bool cameraAboveWater() const
Get whether the camera is above water.
Definition: DtOsgCullVisitorParameters.h:248
void setScaleX(bool b)
Definition: DtOsgCullVisitorParameters.h:572
void setCameraVelocity(double x, double y, double z)
Set the camera velocity.
Definition: DtOsgCullVisitorParameters.h:123
float myTerrainMagnificationScaleFactor
Definition: DtOsgCullVisitorParameters.h:471
void setTerrainRadius(double rad)
Set the terrain radius.
Definition: DtOsgCullVisitorParameters.h:135
virtual ~DtOsgFixedScaleParameters()
Definition: DtOsgCullVisitorParameters.h:502
DtModelScaler * findModelScaler() const
Definition: DtOsgCullVisitorParameters.h:284
float channelLodScale() const
get the channel lod scale. This is only the channel configuration value and not the view magnificatio...
Definition: DtOsgCullVisitorParameters.h:417
Definition: DtObserverObject.h:71
void setDynamicLights(bool enabled)
Set whether dynamic lights are enabled.
Definition: DtOsgCullVisitorParameters.h:206
bool scaleX() const
Definition: DtOsgCullVisitorParameters.h:577
DtModelSetId myModelSet
Definition: DtOsgCullVisitorParameters.h:473
const osg::Vec3d & cameraVelocity() const
Get the camera velocity.
Definition: DtOsgCullVisitorParameters.h:129
bool scaling() const
Get whether scalable groups should be scaled by distance.
Definition: DtOsgCullVisitorParameters.h:260
float myEntityLodScaleFactor
Definition: DtOsgCullVisitorParameters.h:454
uint32_t mySensorMask
Definition: DtOsgCullVisitorParameters.h:479
void setDimensions(double length, double width, double height)
Definition: DtOsgCullVisitorParameters.h:516
float terrainLodScaleFactor() const
Return the current LOD scale factor for terrain visuals.
Definition: DtOsgCullVisitorParameters.h:91
Contains makVrv::DtObserverObject class declaration.
void setCoordinateSystemChanged(bool changed)
Set whether the coordinate system changed this frame.
Definition: DtOsgCullVisitorParameters.h:266
const DtObserverObject::DtLodCenterSettings & lodCenterSettings() const
Definition: DtOsgCullVisitorParameters.h:187
bool dynamicLights() const
Get whether dynamic lights rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:212
The osg cull vistor parameters class provides additional culling and intersector parameters for choos...
Definition: DtOsgCullVisitorParameters.h:46
void setDynamicWaterVisibilityEnable(bool enable)
Set dynamic water visibility, based on altitude. Water visibility will be scaled from its specified v...
Definition: DtOsgCullVisitorParameters.h:321
float oceanSeaLevelRenderBias() const
Returns the ocean sea level rendering bias in meters.
Definition: DtOsgCullVisitorParameters.h:236
DtObserverObject::DtLodCenterSettings myLodCenterSettings
Definition: DtOsgCullVisitorParameters.h:483
float myChannelLodScale
Definition: DtOsgCullVisitorParameters.h:481
float indirectDistanceScale() const
Get the distance for culling instanced data.
Definition: DtOsgCullVisitorParameters.h:405
void setLodCenterSettings(const DtObserverObject::DtLodCenterSettings &settings)
Definition: DtOsgCullVisitorParameters.h:182
void setOrthoCulling(bool ortho)
Set whether the culling should be doing in orthographic mode.
Definition: DtOsgCullVisitorParameters.h:171
double cameraResolution() const
Get the zoom factor.
Definition: DtOsgCullVisitorParameters.h:118
bool myDynamicWaterVisibilityEnable
Definition: DtOsgCullVisitorParameters.h:468
Contains the declaration of the makVrv::DtModelScaler class.
bool myIncludeLightPoints
Definition: DtOsgCullVisitorParameters.h:474
double myClampedPixelSize
Definition: DtOsgCullVisitorParameters.h:466
bool includeLightPoints() const
get the flag for including light points in this cull visitor traversal. If false then light points wi...
Definition: DtOsgCullVisitorParameters.h:367
bool dynamicOcean() const
Get whether a dynamic ocean rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:224
Contains the DtObserverModeManager class declaration.
void setScaling(bool scaling)
Set whether scalable groups should be scaled by distance.
Definition: DtOsgCullVisitorParameters.h:254
bool mySkyFlag
Definition: DtOsgCullVisitorParameters.h:459
bool indirectDistanceScaleEnabled() const
True if the distance for culling instanced data is enabled.
Definition: DtOsgCullVisitorParameters.h:393
double myDynamicWaterVisibilityMax
Definition: DtOsgCullVisitorParameters.h:469
double height() const
Definition: DtOsgCullVisitorParameters.h:531
void calculateScaleFactors(const osg::BoundingSphere &sphere, const DtOsgCullVisitorParameters &info, double &scaleFactorX, double &scaleFactorY, double &scaleFactorZ) const
Definition: DtOsgCullVisitorParameters.h:548
bool coordinateSystemChanged() const
Get whether the coordinate system changed this frame.
Definition: DtOsgCullVisitorParameters.h:272
void setChannelLodScale(float scale)
set the channel lod scale. This is only the channel configuration value and not the view magnificatio...
Definition: DtOsgCullVisitorParameters.h:411
void calculateScaleFactors(const osgUtil::CullVisitor &visitor, const osg::BoundingSphere &sphere, DtOsgCullVisitorParameters *info, double &scaleFactorX, double &scaleFactorY, double &scaleFactorZ) const
Definition: DtOsgCullVisitorParameters.h:536
double myWidth
Definition: DtOsgCullVisitorParameters.h:604
void setModelSet(DtModelSetId modelSet)
Set the model set currently being rendered.
Definition: DtOsgCullVisitorParameters.h:159
bool scaleY() const
Definition: DtOsgCullVisitorParameters.h:587
bool orthoCulling() const
Get whether the culling is to be done in 2D orthographic mode.
Definition: DtOsgCullVisitorParameters.h:177
bool myCoordinateSystemChanged
Definition: DtOsgCullVisitorParameters.h:467
float entityLodScaleFactor() const
Return the current LOD scale factor for entities.
Definition: DtOsgCullVisitorParameters.h:106
bool myScalingFlag
Definition: DtOsgCullVisitorParameters.h:465
double dynamicWaterVisibilityMax() const
Get the maximum value to which water visibility will be set when dynamic water visibility is enabled...
Definition: DtOsgCullVisitorParameters.h:341
bool skyRendering() const
Get whether the sky is being rendered.
Definition: DtOsgCullVisitorParameters.h:200
bool dynamicWaterVisibilityEnable() const
Get whether dynamic water is enabled.
Definition: DtOsgCullVisitorParameters.h:327
std::vector< osg::Vec3d > myFocusPoints
Definition: DtOsgCullVisitorParameters.h:478
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:361
void setOceanSeaLevelRenderBias(float meters)
Sets the ocean sea level rendering bias in meters.
Definition: DtOsgCullVisitorParameters.h:230
void setFixedPixelSize(double d)
Definition: DtOsgCullVisitorParameters.h:506
void setScaleZ(bool b)
Definition: DtOsgCullVisitorParameters.h:592
bool myDynamicLightsFlag
Definition: DtOsgCullVisitorParameters.h:460
uint32_t getSensorCullMask()
get the currently set sensor mask
Definition: DtOsgCullVisitorParameters.h:443
float terrainMagnificationScaleFactor() const
Get the amount that any view magnification value is reduced by when determining the distance to a pag...
Definition: DtOsgCullVisitorParameters.h:355
void setIndirectDistanceScale(float scale)
Set the distance for culling instanced data.
Definition: DtOsgCullVisitorParameters.h:399
double width() const
Definition: DtOsgCullVisitorParameters.h:526
void setScaleXY(bool b)
Definition: DtOsgCullVisitorParameters.h:582
DtModelSetId modelSet() const
Get the model set currently being rendered.
Definition: DtOsgCullVisitorParameters.h:153
static const unsigned int FlagVisibleSensorOn
scene camera will have one of these in it&#39;s cull mask DtOsgModelInstance provides setSensorMask to se...
Definition: DtOsgNodeTraversalFlags.h:69
void setAltitude2D(double altitude)
Set the (implied) altitude when orthoCulling.
Definition: DtOsgCullVisitorParameters.h:141
Contains various enum classes relating to model sets.
bool myOrthoFlag
Definition: DtOsgCullVisitorParameters.h:464
void setCameraAboveWater(bool aboveWater)
Set whether the camera is above water.
Definition: DtOsgCullVisitorParameters.h:242
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:374
double myFixedPixelSize
Definition: DtOsgCullVisitorParameters.h:603

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)