VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Attributes
makVrv::DtRasterSource Struct Reference

Configuration for an osgEarth ImageLayer used as a spatial sound trigger.

Three sampling modes are supported:

Public Types

enum  Mode { Mode::SDF, Mode::Classification, Mode::PolygonizedRaster }
 

Public Attributes

std::string layerName
 
Mode mode = Mode::PolygonizedRaster
 
double sdfMaxDistanceMeters = 500.0
 
std::vector< std::string > classValues
 

Member Enumeration Documentation

Sampling mode.

Enumerator
SDF 
Classification 
PolygonizedRaster 

Member Data Documentation

std::string makVrv::DtRasterSource::layerName

Name of the osgEarth ImageLayer, e.g. "forest-sdf" or "data:landcover-composite".

Referenced by makVrv::serialize().

Mode makVrv::DtRasterSource::mode = Mode::PolygonizedRaster

Sampling mode. Defaults to PolygonizedRaster.

Referenced by makVrv::serialize().

double makVrv::DtRasterSource::sdfMaxDistanceMeters = 500.0

SDF mode only. Physical distance in metres encoded at pixel 0.0. Must be >= fadeDistanceMeters on the channel to avoid clipping the fade.

Referenced by makVrv::serialize().

std::vector<std::string> makVrv::DtRasterSource::classValues

Classification and PolygonizedRaster modes. Accepted red-channel values (mapped to integer 0-255 as strings). The trigger is active when the pixel matches any entry (OR logic). An empty list matches nothing.

Referenced by makVrv::serialize().


The documentation for this struct was generated from the following file:

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)