![]() |
VR-Forces 4.6 Class Documentation
|
The osg cull vistor parameters class provides additional culling and intersector parameters for choosing the LOD, and cull operations. More...

Public Member Functions | |
| DtOsgCullVisitorParameters () | |
| CTOR. | |
| void | setCameraMagnification (double mag) |
| Set the camera Magnification that affects LODing and paging. | |
| double | cameraMagnification () const |
| Return the current camera magnification. | |
| void | setCameraResolution (double factor) |
| Set the zoom factor that effects LODing. | |
| double | cameraResolution () const |
| Get the zoom factor. | |
| void | setCameraVelocity (double velocity) |
| Set the camera velocity. | |
| double | cameraVelocity () const |
| Get the camera velocity. | |
| void | setTerrainRadius (double rad) |
| Set the terrain radius. | |
| void | setAltitude2D (double altitude) |
| Set the (implied) altitude when orthoCulling. | |
| double | altitude2D () const |
| Return the (implied) 2D altitude. | |
| unsigned int | modelSet () const |
| Get the model set currently being rendered. | |
| void | setModelSet (unsigned int modelSet) |
| Set the model set currently being rendered. | |
| double | terrainRadius () const |
| Get the terrain radius. | |
| void | setOrthoCulling (bool ortho) |
| Set whether the culling should be doing in orthographic mode. | |
| bool | orthoCulling () const |
| Get whether the culling is to be done in 2D orthographic mode. | |
| void | setSkyRendering (bool renderSky) |
| Set whether the sky is being rendered. | |
| bool | skyRendering () const |
| Get whether the sky is being rendered. | |
| void | setDynamicLights (bool enabled) |
| Set whether dynamic lights are enabled. | |
| bool | dynamicLights () const |
| Get whether dynamic lights rendering is enabled. | |
| void | setDynamicOcean (bool enabled) |
| Set whether a dynamic ocean rendering is enabled. | |
| bool | dynamicOcean () const |
| Get whether a dynamic ocean rendering is enabled. | |
| void | setScaling (bool scaling) |
| Set whether scalable groups should be scaled by distance. | |
| bool | scaling () const |
| Get whether scalable groups should be scaled by distance. | |
| void | setScaleFactor (double scaleFactor) |
| Set the additional (on top of distance) scale factor to apply. | |
| double | scaleFactor () const |
| Get the additional (on top of distance) scale factor to apply. | |
| void | setCoordinateSystemChanged (bool changed) |
| Set whether the coordinate system changed this frame. | |
| bool | coordinateSystemChanged () const |
| Get whether the coordinate system changed this frame. | |
| void | setNodeXRScaler (DtOsgNodeXRScaler *scaler) |
| Set the XR scaler to use. | |
| double | calculateXRScale (const osg::Camera &camera, const osg::Node &node) |
| calculate the XR scale using the registered XR scaler. | |
| void | setScaleType (DtObserverObject::ScaleType scaleType) |
| Set the type of model scaling to perform. | |
| DtObserverObject::ScaleType | scaleType () const |
| Get the type of model scaling to perform. | |
| void | setClampedPixelSize (double d) |
| Set the clamped pixel size calculated when using DtOsgFixedScaleParameters. | |
| double | clampedPixelSize () const |
| Retrieve the clamped pixel size set in setClampedPixelSize. | |
| void | setDynamicWaterVisibilityEnable (bool enable) |
| Set dynamic water visibility, based on altitude. | |
| bool | dynamicWaterVisibilityEnable () const |
| Get whether dynamic water is enabled. | |
| void | setDynamicWaterVisibilityMax (double visMax) |
| Set the maximum value to which water visibility will be set when dynamic water visibility is enabled. | |
| double | dynamicWaterVisibilityMax () const |
| Get the maximum value to which water visibility will be set when dynamic water visibility is enabled. | |
| void | setPagedLodMagnificationScaleFactor (float factor) |
| Set the amount that any view magnification value is reduced by when determining the distance to a paged LOD. | |
| float | pagedLodMagnificationScaleFactor () const |
| Get the amount that any view magnification value is reduced by when determining the distance to a paged LOD. | |
| void | setPagedLodMagnificationHighLodAngle (float radians) |
| Set the angle used when paging in high LOD tiles, the angle (radians) represents the half angle, so view dir +/- angle is used like a camera FOV A smaller number results in fewer high LOD tiles and saves memory. | |
| float | pagedLodMagnificationHighLodAngle () const |
| Get the viewing angle within which high LOD tiles will be used ex. | |
| void | setIncludeLightPoints (bool flag) |
| set the flag for including light points in this cull visitor traversal. If false then light points will be ignored. | |
| bool | includeLightPoints () const |
| get the flag for including light points in this cull visitor traversal. If false then light points will be ignored. | |
| float | currentTraversalScaleFactor () |
| get the scale factor for the current place in the cull visitor traversal. | |
| void | setCurrentTraversalScaleFactor (float currentScaleFactor) |
| set the scale factor for the current place in the cull visitor traversal. | |
The osg cull vistor parameters class provides additional culling and intersector parameters for choosing the LOD, and cull operations.
|
inline |
CTOR.
|
inline |
Set the camera Magnification that affects LODing and paging.
|
inline |
Return the current camera magnification.
|
inline |
Set the zoom factor that effects LODing.
|
inline |
Get the zoom factor.
|
inline |
Set the camera velocity.
|
inline |
Get the camera velocity.
|
inline |
Set the terrain radius.
|
inline |
Set the (implied) altitude when orthoCulling.
|
inline |
Return the (implied) 2D altitude.
Get the model set currently being rendered.
Set the model set currently being rendered.
|
inline |
Get the terrain radius.
Referenced by makVrv::DtOsgFixedScaleParameters::calculateScaleFactors().
|
inline |
Set whether the culling should be doing in orthographic mode.
|
inline |
Get whether the culling is to be done in 2D orthographic mode.
|
inline |
Set whether the sky is being rendered.
|
inline |
Get whether the sky is being rendered.
|
inline |
Set whether dynamic lights are enabled.
|
inline |
Get whether dynamic lights rendering is enabled.
|
inline |
Set whether a dynamic ocean rendering is enabled.
|
inline |
Get whether a dynamic ocean rendering is enabled.
|
inline |
Set whether scalable groups should be scaled by distance.
|
inline |
Get whether scalable groups should be scaled by distance.
|
inline |
Set the additional (on top of distance) scale factor to apply.
|
inline |
Get the additional (on top of distance) scale factor to apply.
|
inline |
Set whether the coordinate system changed this frame.
|
inline |
Get whether the coordinate system changed this frame.
|
inline |
Set the XR scaler to use.
This will not typically be called by users to change the XR Node Scaler, register a new DtOsgNodeXRScalerCreator
|
inline |
calculate the XR scale using the registered XR scaler.
References makVrv::DtOsgNodeXRScaler::calculateXRScale().
|
inline |
Set the type of model scaling to perform.
|
inline |
Get the type of model scaling to perform.
|
inline |
Set the clamped pixel size calculated when using DtOsgFixedScaleParameters.
This is ust used to pass the value from one form of calculateScaleFactors to the other
Referenced by makVrv::DtOsgFixedScaleParameters::calculateScaleFactors().
|
inline |
Retrieve the clamped pixel size set in setClampedPixelSize.
Referenced by makVrv::DtOsgFixedScaleParameters::calculateScaleFactors().
|
inline |
Set dynamic water visibility, based on altitude.
Water visibility will be scaled from its specified value at 0 alt to the max value specified.
|
inline |
Get whether dynamic water is enabled.
|
inline |
Set the maximum value to which water visibility will be set when dynamic water visibility is enabled.
|
inline |
Get the maximum value to which water visibility will be set when dynamic water visibility is enabled.
|
inline |
Set the amount that any view magnification value is reduced by when determining the distance to a paged LOD.
|
inline |
Get the amount that any view magnification value is reduced by when determining the distance to a paged LOD.
|
inline |
Set the angle used when paging in high LOD tiles, the angle (radians) represents the half angle, so view dir +/- angle is used like a camera FOV A smaller number results in fewer high LOD tiles and saves memory.
A larger number will prevent cracks between tiles by bringing in more nearby high LOD tiles but will use more memory.
|
inline |
Get the viewing angle within which high LOD tiles will be used ex.
rad angle=0.26179 = 15 degrees, so view direction + 15 and -15 (so 30 deg total) will be used. Any tile centers in that range will use high LOD.
|
inline |
set the flag for including light points in this cull visitor traversal. If false then light points will be ignored.
|
inline |
get the flag for including light points in this cull visitor traversal. If false then light points will be ignored.
|
inline |
get the scale factor for the current place in the cull visitor traversal.
this is used by the light point node so it can know how much to scale the light point size.
|
inline |
set the scale factor for the current place in the cull visitor traversal.
this is used by the light point node so it can know how much to scale the light point size.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |