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) 2022 MAK Technologies, Inc.
3  * All rights reserved.
4  *****************************************************************************/
5 
13 
14 #pragma once
15 
16 
17 #include <vrvOsg/DtModelScaler.h>
18 
22 
23 #include <osgUtil/CullVisitor>
24 
25 #include <osg/BoundingBox>
26 #include <osg/BoundingSphere>
27 #include <osg/Vec2>
28 
29 
30 #include <matrix/vlMath.h>
31 #include <algorithm>
32 #include <math.h>
33 
34 #ifdef min
35 #undef min
36 #endif
37 
38 namespace makVrv
39 {
43  class DT_DLL_VRVOSG DtOsgCullVisitorParameters : public osg::Referenced
44  {
45  public:
46 
49  : osg::Referenced()
50  , mySkyFlag(true)
51  , myDynamicLightsFlag(true)
52  , myDynamicOceanFlag(true)
53  , myCameraAboveWater(true)
54  , myOrthoFlag(false)
55  , myCameraResolution( 1.0 )
56  , myTerrainRadius( 1.0 )
57  , myScalingFlag( true )
58  , myClampedPixelSize( 1.0 )
59  , myLodScaleFactor( 1.0 )
60  , myCoordinateSystemChanged( false )
61  , myAltitude2D( 0. )
62  , myDynamicWaterVisibilityEnable(true)
63  , myDynamicWaterVisibilityMax(75.)
64  , myModelScaler( 0 )
65  , myTerrainMagnificationHighLodAngle(DtDeg2Rad(15))
66  , myTerrainMagnificationScaleFactor(1.)
67  , myCameraVelocity( 0, 0, 0 )
68  , myModelSet(DtModelSetId::Models3D)
69  , myIncludeLightPoints(true)
70  , myCurrentScaleFactor(1.0)
71  , myIndirectDistScaleEnabled(false)
72  , myIndirectDistScale(1.0)
73  , myChannelLodScale(1.0f)
74  , myFocusPointEnabled(false)
75  , myFocusPoints()
76  {
77 
78  //Intentional nop
79  }
80 
83  inline void setLodScaleFactor( double sf )
84  {
85  myLodScaleFactor = sf;
86  }
87 
89  inline double lodScaleFactor() const
90  {
91  return myLodScaleFactor;
92  }
93 
95  void setCameraResolution(double factor)
96  {
97  myCameraResolution = factor;
98  }
99 
101  inline double cameraResolution() const
102  {
103  return myCameraResolution;
104  }
106  void setCameraVelocity(double x, double y, double z)
107  {
108  myCameraVelocity = osg::Vec3d(x,y,z);
109  }
110 
112  inline const osg::Vec3d& cameraVelocity() const
113  {
114  return myCameraVelocity;
115  }
116 
118  void setTerrainRadius(double rad)
119  {
120  myTerrainRadius = rad;
121  }
122 
124  void setAltitude2D( double altitude )
125  {
126  myAltitude2D = altitude;
127  }
128 
130  double altitude2D() const
131  {
132  return myAltitude2D;
133  }
134 
136  inline DtModelSetId modelSet() const
137  {
138  return myModelSet;
139  }
140 
142  void setModelSet(DtModelSetId modelSet)
143  {
144  myModelSet = modelSet;
145  }
146 
148  inline double terrainRadius() const
149  {
150  return myTerrainRadius;
151  }
152 
154  void setOrthoCulling(bool ortho)
155  {
156  myOrthoFlag = ortho;
157  }
158 
160  inline bool orthoCulling() const
161  {
162  return myOrthoFlag;
163  }
164 
166  inline void setSkyRendering(bool renderSky)
167  {
168  mySkyFlag = renderSky;
169 
170  }
171 
173  inline bool skyRendering() const
174  {
175  return mySkyFlag;
176  }
177 
179  inline void setDynamicLights(bool enabled)
180  {
181  myDynamicLightsFlag = enabled;
182  }
183 
185  inline bool dynamicLights() const
186  {
187  return myDynamicLightsFlag;
188  }
189 
191  inline void setDynamicOcean(bool enabled)
192  {
193  myDynamicOceanFlag = enabled;
194  }
195 
197  inline bool dynamicOcean() const
198  {
199  return myDynamicOceanFlag;
200  }
201 
203  inline void setCameraAboveWater(bool aboveWater)
204  {
205  myCameraAboveWater = aboveWater;
206  }
207 
209  inline bool cameraAboveWater() const
210  {
211  return myCameraAboveWater;
212  }
213 
215  void setScaling( bool scaling )
216  {
217  myScalingFlag = scaling;
218  }
219 
221  inline bool scaling() const
222  {
223  return myScalingFlag;
224  }
225 
227  void setCoordinateSystemChanged( bool changed )
228  {
229  myCoordinateSystemChanged = changed;
230  }
231 
233  inline bool coordinateSystemChanged() const
234  {
235  return myCoordinateSystemChanged;
236  }
237 
240  inline void setModelScaler( DtModelScaler* scaler )
241  {
242  myModelScaler = scaler;
243  }
244 
246  {
247  return myModelScaler;
248  }
249 
251  inline double calculateModelScale( const osg::Camera& camera,
252  const osg::Node& node ) const
253  {
254  if ( myModelScaler.valid() )
255  {
256  return myModelScaler->calculateScale( *this, camera, node );
257  }
258  else
259  {
260  return 1.;
261  }
262  }
263 
268  void setClampedPixelSize(double d)
269  {
270  myClampedPixelSize = d;
271  }
272 
274  double clampedPixelSize() const
275  {
276  return myClampedPixelSize;
277  }
278 
282  inline void setDynamicWaterVisibilityEnable( bool enable )
283  {
284  myDynamicWaterVisibilityEnable = enable;
285  }
286 
288  inline bool dynamicWaterVisibilityEnable() const
289  {
290  return myDynamicWaterVisibilityEnable;
291  }
292 
295  inline void setDynamicWaterVisibilityMax( double visMax )
296  {
297  myDynamicWaterVisibilityMax = visMax;
298  }
299 
302  inline double dynamicWaterVisibilityMax() const
303  {
304  return myDynamicWaterVisibilityMax;
305  }
306 
309  inline void setTerrainMagnificationScaleFactor(float factor)
310  {
311  myTerrainMagnificationScaleFactor = factor;
312  }
313 
316  inline float terrainMagnificationScaleFactor() const
317  {
318  return myTerrainMagnificationScaleFactor;
319  }
320 
327  inline void setTerrainMagnificationHighLodAngle(float radians)
328  {
329  myTerrainMagnificationHighLodAngle = radians;
330  }
331 
336  inline float terrainMagnificationHighLodAngle() const
337  {
338  return myTerrainMagnificationHighLodAngle;
339  }
340 
342  inline void setIncludeLightPoints(bool flag)
343  {
344  myIncludeLightPoints = flag;
345  }
346 
348  inline bool includeLightPoints() const
349  {
350  return myIncludeLightPoints;
351  }
352 
356  {
357  return myCurrentScaleFactor;
358  }
359 
362  inline void setCurrentTraversalScaleFactor(float currentScaleFactor)
363  {
364  myCurrentScaleFactor = currentScaleFactor;
365  }
366 
368  inline void setIndirectDistanceScaleEnabled(bool enabled)
369  {
370  myIndirectDistScaleEnabled = enabled;
371  }
372 
374  inline bool indirectDistanceScaleEnabled() const
375  {
376  return myIndirectDistScaleEnabled;
377  }
378 
380  inline void setIndirectDistanceScale(float scale)
381  {
382  myIndirectDistScale = scale;
383  }
384 
386  inline float indirectDistanceScale() const
387  {
388  return myIndirectDistScale;
389  }
390 
392  inline void setChannelLodScale(float scale)
393  {
394  myChannelLodScale = scale;
395  }
396 
398  inline float channelLodScale()
399  {
400  return myChannelLodScale;
401  }
402 
405  inline void setFocusPoints(std::vector<osg::Vec3d>& points)
406  {
407  myFocusPoints = points;
408  }
409 
412  inline std::vector<osg::Vec3d>& focusPoints()
413  {
414  return myFocusPoints;
415  }
416 
419  inline void setFocusPointEnabled(bool enable)
420  {
421  myFocusPointEnabled = enable;
422  }
423 
426  inline bool focusPointEnabled()
427  {
428  return myFocusPointEnabled;
429  }
430 
432  virtual DtIndirectModelScalingAlgorithm indirectModelScalingAlgorithm(void) const;
433 
434  protected:
435 
439  double myAltitude2D;
440  bool mySkyFlag;
453  osg::Vec3d myCameraVelocity;
459  std::vector<osg::Vec3d> myFocusPoints;
460 
463  };
464 
467  class DT_DLL_VRVOSG DtOsgFixedScaleParameters : public osg::Referenced
468  {
469  public:
471  : myFixedPixelSize( 1.0 )
472  , myLength( 0.0 )
473  , myWidth( 0.0 )
474  , myHeight( 0.0 )
475  , myScaleX(true)
476  , myScaleY(true)
477  , myScaleZ(true)
478  {
479 }
480 
482  {
483  }
484 
485  void setFixedPixelSize(double d)
486  {
487  myFixedPixelSize = d;
488  }
489 
490  double fixedPixelSize() const
491  {
492  return myFixedPixelSize;
493  }
494 
495  void setDimensions(double length, double width, double height)
496  {
497  myLength = length; myWidth = width; myHeight = height;
498  }
499 
500  inline double length() const
501  {
502  return myLength;
503  }
504 
505  inline double width() const
506  {
507  return myWidth;
508  }
509 
510  inline double height() const
511  {
512  return myHeight;
513  }
514 
515  inline void calculateScaleFactors(const osgUtil::CullVisitor& visitor,
516  const osg::BoundingSphere& sphere, DtOsgCullVisitorParameters* info,
517  double& scaleFactorX, double& scaleFactorY, double& scaleFactorZ) const
518  {
519  double clampedSize =
520  visitor.clampedPixelSize( sphere.center(), info->terrainRadius() );
521  info->setClampedPixelSize(clampedSize);
522 
523  calculateScaleFactors( sphere, *info, scaleFactorX,
524  scaleFactorY, scaleFactorZ );
525  }
526 
527  inline void calculateScaleFactors(const osg::BoundingSphere& sphere, const DtOsgCullVisitorParameters& info,
528  double& scaleFactorX, double& scaleFactorY, double& scaleFactorZ) const
529  {
530  scaleFactorX = scaleFactorY = scaleFactorZ = 1.0;
531 
532  double metersPerPixel = info.terrainRadius() / info.clampedPixelSize(); // Meters per pixel
533  double curPixels = myWidth / metersPerPixel; // Pixels needed to draw
534 
535  if (myScaleX)
536  {
537  scaleFactorX = myFixedPixelSize / curPixels;
538  }
539 
540  if (myScaleY)
541  {
542  scaleFactorY = scaleFactorX;
543  }
544 
545  if (myScaleX)
546  {
547  scaleFactorZ = 1.0;
548  }
549  }
550 
551  void setScaleX(bool b)
552  {
553  myScaleX = b;
554  }
555 
556  inline bool scaleX() const
557  {
558  return myScaleX;
559  }
560 
561  void setScaleXY(bool b)
562  {
563  myScaleY = b;
564  }
565 
566  inline bool scaleY() const
567  {
568  return myScaleY;
569  }
570 
571  void setScaleZ(bool b)
572  {
573  myScaleZ = b;
574  }
575 
576  inline bool scaleZ() const
577  {
578  return myScaleZ;
579  }
580 
581  protected:
583  double myLength, myWidth, myHeight;
584  bool myScaleX, myScaleY, myScaleZ;
585  };
586 
587 }
588 
589 
double myAltitude2D
Definition: DtOsgCullVisitorParameters.h:439
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:412
void setDynamicWaterVisibilityMax(double visMax)
Set the maximum value to which water visibility will be set when dynamic water visibility is enabled...
Definition: DtOsgCullVisitorParameters.h:295
float myCurrentScaleFactor
Definition: DtOsgCullVisitorParameters.h:456
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:405
bool myScaleZ
Definition: DtOsgCullVisitorParameters.h:584
bool myFocusPointEnabled
Definition: DtOsgCullVisitorParameters.h:462
Object used to calculate fixed scale of object based on how many pixels on screen it should take up...
Definition: DtOsgCullVisitorParameters.h:467
double fixedPixelSize() const
Definition: DtOsgCullVisitorParameters.h:490
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:240
double myLodScaleFactor
Definition: DtOsgCullVisitorParameters.h:436
bool myDynamicOceanFlag
Definition: DtOsgCullVisitorParameters.h:442
void setSkyRendering(bool renderSky)
Set whether the sky is being rendered.
Definition: DtOsgCullVisitorParameters.h:166
void setClampedPixelSize(double d)
Set the clamped pixel size calculated when using DtOsgFixedScaleParameters. This is ust used to pass ...
Definition: DtOsgCullVisitorParameters.h:268
double myTerrainRadius
Definition: DtOsgCullVisitorParameters.h:438
double altitude2D() const
Return the (implied) 2D altitude.
Definition: DtOsgCullVisitorParameters.h:130
double clampedPixelSize() const
Retrieve the clamped pixel size set in setClampedPixelSize.
Definition: DtOsgCullVisitorParameters.h:274
void setCameraResolution(double factor)
Set the zoom factor that effects LODing.
Definition: DtOsgCullVisitorParameters.h:95
bool myCameraAboveWater
Definition: DtOsgCullVisitorParameters.h:443
#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:191
Definition: featureContext.h:37
osg::ref_ptr< DtModelScaler > myModelScaler
Definition: DtOsgCullVisitorParameters.h:450
float myIndirectDistScale
Definition: DtOsgCullVisitorParameters.h:458
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:309
void setIndirectDistanceScaleEnabled(bool enabled)
Set if the distance for culling instanced data is enabled.
Definition: DtOsgCullVisitorParameters.h:368
DtOsgCullVisitorParameters()
CTOR.
Definition: DtOsgCullVisitorParameters.h:48
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:362
bool myIndirectDistScaleEnabled
Definition: DtOsgCullVisitorParameters.h:457
double length() const
Definition: DtOsgCullVisitorParameters.h:500
double terrainRadius() const
Get the terrain radius.
Definition: DtOsgCullVisitorParameters.h:148
double calculateModelScale(const osg::Camera &camera, const osg::Node &node) const
calculate the model scale using the registered XR scaler.
Definition: DtOsgCullVisitorParameters.h:251
Contains makVrv::DtIndirectModelScalingAlgorithm enumeration.
void setLodScaleFactor(double sf)
Set the LOD scale factor that affects LODing and paging; this is the product of the channels LOD scal...
Definition: DtOsgCullVisitorParameters.h:83
DtIndirectModelScalingAlgorithm
Definition: DtIndirectModelScalingAlgorithm.h:14
DtOsgFixedScaleParameters()
Definition: DtOsgCullVisitorParameters.h:470
bool scaleZ() const
Definition: DtOsgCullVisitorParameters.h:576
osg::Vec3d myCameraVelocity
Definition: DtOsgCullVisitorParameters.h:453
double myCameraResolution
Definition: DtOsgCullVisitorParameters.h:437
void setFocusPointEnabled(bool enable)
set the focust point enabled flag. If enabled the focus point distances and angles are used to calcul...
Definition: DtOsgCullVisitorParameters.h:419
bool cameraAboveWater() const
Get whether the camera is above water.
Definition: DtOsgCullVisitorParameters.h:209
void setScaleX(bool b)
Definition: DtOsgCullVisitorParameters.h:551
void setCameraVelocity(double x, double y, double z)
Set the camera velocity.
Definition: DtOsgCullVisitorParameters.h:106
float myTerrainMagnificationScaleFactor
Definition: DtOsgCullVisitorParameters.h:451
void setTerrainRadius(double rad)
Set the terrain radius.
Definition: DtOsgCullVisitorParameters.h:118
virtual ~DtOsgFixedScaleParameters()
Definition: DtOsgCullVisitorParameters.h:481
DtModelScaler * findModelScaler() const
Definition: DtOsgCullVisitorParameters.h:245
void setDynamicLights(bool enabled)
Set whether dynamic lights are enabled.
Definition: DtOsgCullVisitorParameters.h:179
bool scaleX() const
Definition: DtOsgCullVisitorParameters.h:556
DtModelSetId myModelSet
Definition: DtOsgCullVisitorParameters.h:454
const osg::Vec3d & cameraVelocity() const
Get the camera velocity.
Definition: DtOsgCullVisitorParameters.h:112
bool scaling() const
Get whether scalable groups should be scaled by distance.
Definition: DtOsgCullVisitorParameters.h:221
double lodScaleFactor() const
Return the current LOD scale factor.
Definition: DtOsgCullVisitorParameters.h:89
void setDimensions(double length, double width, double height)
Definition: DtOsgCullVisitorParameters.h:495
void setTerrainMagnificationHighLodAngle(float radians)
Set the angle used when paging in high LOD tiles, the angle (radians) represents the half angle...
Definition: DtOsgCullVisitorParameters.h:327
Contains makVrv::DtObserverObject class.
void setCoordinateSystemChanged(bool changed)
Set whether the coordinate system changed this frame.
Definition: DtOsgCullVisitorParameters.h:227
bool dynamicLights() const
Get whether dynamic lights rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:185
The osg cull vistor parameters class provides additional culling and intersector parameters for choos...
Definition: DtOsgCullVisitorParameters.h:43
void setDynamicWaterVisibilityEnable(bool enable)
Set dynamic water visibility, based on altitude. Water visibility will be scaled from its specified v...
Definition: DtOsgCullVisitorParameters.h:282
float myChannelLodScale
Definition: DtOsgCullVisitorParameters.h:461
float indirectDistanceScale() const
Get the distance for culling instanced data.
Definition: DtOsgCullVisitorParameters.h:386
void setOrthoCulling(bool ortho)
Set whether the culling should be doing in orthographic mode.
Definition: DtOsgCullVisitorParameters.h:154
double cameraResolution() const
Get the zoom factor.
Definition: DtOsgCullVisitorParameters.h:101
bool myDynamicWaterVisibilityEnable
Definition: DtOsgCullVisitorParameters.h:448
Contains the declaration of the makVrv::DtModelScaler class.
bool myIncludeLightPoints
Definition: DtOsgCullVisitorParameters.h:455
double myClampedPixelSize
Definition: DtOsgCullVisitorParameters.h:446
bool includeLightPoints() const
get the flag for including light points in this cull visitor traversal. If false then light points wi...
Definition: DtOsgCullVisitorParameters.h:348
bool dynamicOcean() const
Get whether a dynamic ocean rendering is enabled.
Definition: DtOsgCullVisitorParameters.h:197
void setScaling(bool scaling)
Set whether scalable groups should be scaled by distance.
Definition: DtOsgCullVisitorParameters.h:215
bool mySkyFlag
Definition: DtOsgCullVisitorParameters.h:440
bool indirectDistanceScaleEnabled() const
True if the distance for culling instanced data is enabled.
Definition: DtOsgCullVisitorParameters.h:374
double myDynamicWaterVisibilityMax
Definition: DtOsgCullVisitorParameters.h:449
double height() const
Definition: DtOsgCullVisitorParameters.h:510
void calculateScaleFactors(const osg::BoundingSphere &sphere, const DtOsgCullVisitorParameters &info, double &scaleFactorX, double &scaleFactorY, double &scaleFactorZ) const
Definition: DtOsgCullVisitorParameters.h:527
bool coordinateSystemChanged() const
Get whether the coordinate system changed this frame.
Definition: DtOsgCullVisitorParameters.h:233
void setChannelLodScale(float scale)
set the channel lod scale. This is only the channel configuration value and not the view magnificatio...
Definition: DtOsgCullVisitorParameters.h:392
void calculateScaleFactors(const osgUtil::CullVisitor &visitor, const osg::BoundingSphere &sphere, DtOsgCullVisitorParameters *info, double &scaleFactorX, double &scaleFactorY, double &scaleFactorZ) const
Definition: DtOsgCullVisitorParameters.h:515
double myWidth
Definition: DtOsgCullVisitorParameters.h:583
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:142
bool scaleY() const
Definition: DtOsgCullVisitorParameters.h:566
bool orthoCulling() const
Get whether the culling is to be done in 2D orthographic mode.
Definition: DtOsgCullVisitorParameters.h:160
bool myCoordinateSystemChanged
Definition: DtOsgCullVisitorParameters.h:447
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:336
bool myScalingFlag
Definition: DtOsgCullVisitorParameters.h:445
double dynamicWaterVisibilityMax() const
Get the maximum value to which water visibility will be set when dynamic water visibility is enabled...
Definition: DtOsgCullVisitorParameters.h:302
bool skyRendering() const
Get whether the sky is being rendered.
Definition: DtOsgCullVisitorParameters.h:173
bool dynamicWaterVisibilityEnable() const
Get whether dynamic water is enabled.
Definition: DtOsgCullVisitorParameters.h:288
std::vector< osg::Vec3d > myFocusPoints
Definition: DtOsgCullVisitorParameters.h:459
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:342
void setFixedPixelSize(double d)
Definition: DtOsgCullVisitorParameters.h:485
void setScaleZ(bool b)
Definition: DtOsgCullVisitorParameters.h:571
bool myDynamicLightsFlag
Definition: DtOsgCullVisitorParameters.h:441
float channelLodScale()
get the channel lod scale. This is only the channel configuration value and not the view magnificatio...
Definition: DtOsgCullVisitorParameters.h:398
float myTerrainMagnificationHighLodAngle
Definition: DtOsgCullVisitorParameters.h:452
float terrainMagnificationScaleFactor() const
Get the amount that any view magnification value is reduced by when determining the distance to a pag...
Definition: DtOsgCullVisitorParameters.h:316
void setIndirectDistanceScale(float scale)
Set the distance for culling instanced data.
Definition: DtOsgCullVisitorParameters.h:380
double width() const
Definition: DtOsgCullVisitorParameters.h:505
void setScaleXY(bool b)
Definition: DtOsgCullVisitorParameters.h:561
DtModelSetId modelSet() const
Get the model set currently being rendered.
Definition: DtOsgCullVisitorParameters.h:136
bool focusPointEnabled()
get the focust point enabled flag. If enabled the focus point distances and angles are used to calcul...
Definition: DtOsgCullVisitorParameters.h:426
void setAltitude2D(double altitude)
Set the (implied) altitude when orthoCulling.
Definition: DtOsgCullVisitorParameters.h:124
Contains various enum classes relating to model sets.
bool myOrthoFlag
Definition: DtOsgCullVisitorParameters.h:444
void setCameraAboveWater(bool aboveWater)
Set whether the camera is above water.
Definition: DtOsgCullVisitorParameters.h:203
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:355
double myFixedPixelSize
Definition: DtOsgCullVisitorParameters.h:582

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)