Ignition Rendering

API Reference

5.1.0
HeightmapBlend Class Reference

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

#include <HeightmapDescriptor.hh>

Public Member Functions

 HeightmapBlend ()
 Constructor. More...
 
 HeightmapBlend (const HeightmapBlend &_blend)
 Copy constructor. More...
 
 HeightmapBlend (HeightmapBlend &&_blend) noexcept
 Move constructor. More...
 
virtual ~HeightmapBlend ()
 Destructor. More...
 
double FadeDistance () const
 Get the heightmap blend's fade distance. More...
 
double MinHeight () const
 Get the heightmap blend's minimum height. More...
 
HeightmapBlendoperator= (HeightmapBlend &&_blend)
 Move assignment operator. More...
 
HeightmapBlendoperator= (const HeightmapBlend &_blend)
 Copy Assignment operator. More...
 
void SetFadeDistance (double _fadeDistance)
 Set the distance over which the blend occurs. More...
 
void SetMinHeight (double _minHeight)
 Set the minimum height of the blend in meters. More...
 

Detailed Description

Blend information to be used between textures on heightmaps.

Constructor & Destructor Documentation

◆ HeightmapBlend() [1/3]

Constructor.

◆ HeightmapBlend() [2/3]

HeightmapBlend ( const HeightmapBlend _blend)

Copy constructor.

Parameters
[in]_blendHeightmapBlend to copy.

◆ HeightmapBlend() [3/3]

HeightmapBlend ( HeightmapBlend &&  _blend)
noexcept

Move constructor.

Parameters
[in]_blendHeightmapBlend to move.

◆ ~HeightmapBlend()

virtual ~HeightmapBlend ( )
virtual

Destructor.

Member Function Documentation

◆ FadeDistance()

double FadeDistance ( ) const

Get the heightmap blend's fade distance.

Returns
The fade distance of the heightmap blend in meters.

◆ MinHeight()

double MinHeight ( ) const

Get the heightmap blend's minimum height.

Returns
The minimum height of the blend layer.

◆ operator=() [1/2]

HeightmapBlend& operator= ( HeightmapBlend &&  _blend)

Move assignment operator.

Parameters
[in]_blendHeightmap blend to move.
Returns
Reference to this.

◆ operator=() [2/2]

HeightmapBlend& operator= ( const HeightmapBlend _blend)

Copy Assignment operator.

Parameters
[in]_blendThe heightmap blend to set values from.
Returns
*this

◆ SetFadeDistance()

void SetFadeDistance ( double  _fadeDistance)

Set the distance over which the blend occurs.

Parameters
[in]_fadeDistanceThe distance in meters.

◆ SetMinHeight()

void SetMinHeight ( double  _minHeight)

Set the minimum height of the blend in meters.

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

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