Loading...
Searching...
No Matches
Public Member Functions | List of all members
sdf::SDF_VERSION_NAMESPACE::HeightmapBlend Class Reference

Blend information to be used between textures on heightmaps. More...

#include <Heightmap.hh>

Public Member Functions

 HeightmapBlend ()
 Constructor.
 
sdf::ElementPtr Element () const
 Get a pointer to the SDF element that was used during load.
 
double FadeDistance () const
 Get the heightmap blend's fade distance.
 
Errors Load (ElementPtr _sdf)
 Load the heightmap blend geometry based on a element pointer.
 
double MinHeight () const
 Get the heightmap blend's minimum height.
 
void SetFadeDistance (double _fadeDistance)
 Set the distance over which the blend occurs.
 
void SetMinHeight (double _minHeight)
 Set the minimum height of the blend in meters.
 

Detailed Description

Blend information to be used between textures on heightmaps.

Constructor & Destructor Documentation

◆ HeightmapBlend()

sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::HeightmapBlend ( )

Constructor.

Member Function Documentation

◆ Element()

sdf::ElementPtr sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::Element ( ) const

Get a pointer to the SDF element that was used during load.

Returns
SDF element pointer. The value will be nullptr if Load has not been called.

◆ FadeDistance()

double sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::FadeDistance ( ) const

Get the heightmap blend's fade distance.

Returns
The fade distance of the heightmap blend in meters.

◆ Load()

Errors sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::Load ( ElementPtr  _sdf)

Load the heightmap blend geometry based on a element pointer.

This is not the usual entry point. Typical usage of the SDF DOM is through the Root object.

Parameters
[in]_sdfThe SDF Element pointer
Returns
Errors, which is a vector of Error objects. Each Error includes an error code and message. An empty vector indicates no error.

◆ MinHeight()

double sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::MinHeight ( ) const

Get the heightmap blend's minimum height.

Returns
The minimum height of the blend layer.

◆ SetFadeDistance()

void sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::SetFadeDistance ( double  _fadeDistance)

Set the distance over which the blend occurs.

Parameters
[in]_uriThe distance in meters.

◆ SetMinHeight()

void sdf::SDF_VERSION_NAMESPACE::HeightmapBlend::SetMinHeight ( double  _minHeight)

Set the minimum height of the blend in meters.

Parameters
[in]_uriThe minimum height of the blend in meters.

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