Blend information to be used between textures on heightmaps. More...
#include <Heightmap.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... | |
sdf::ElementPtr | Element () const |
Get a pointer to the SDF element that was used during load. More... | |
double | FadeDistance () const |
Get the heightmap blend's fade distance. More... | |
Errors | Load (ElementPtr _sdf) |
Load the heightmap blend geometry based on a element pointer. More... | |
double | MinHeight () const |
Get the heightmap blend's minimum height. More... | |
HeightmapBlend & | operator= (HeightmapBlend &&_blend) |
Move assignment operator. More... | |
HeightmapBlend & | operator= (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... | |
Blend information to be used between textures on heightmaps.
sdf::v9::HeightmapBlend::HeightmapBlend | ( | ) |
Constructor.
sdf::v9::HeightmapBlend::HeightmapBlend | ( | const HeightmapBlend & | _blend | ) |
Copy constructor.
[in] | _blend | HeightmapBlend to copy. |
|
noexcept |
Move constructor.
[in] | _blend | HeightmapBlend to move. |
|
virtual |
Destructor.
sdf::ElementPtr sdf::v9::HeightmapBlend::Element | ( | ) | const |
double sdf::v9::HeightmapBlend::FadeDistance | ( | ) | const |
Get the heightmap blend's fade distance.
Errors sdf::v9::HeightmapBlend::Load | ( | ElementPtr | _sdf | ) |
double sdf::v9::HeightmapBlend::MinHeight | ( | ) | const |
Get the heightmap blend's minimum height.
HeightmapBlend& sdf::v9::HeightmapBlend::operator= | ( | HeightmapBlend && | _blend | ) |
HeightmapBlend& sdf::v9::HeightmapBlend::operator= | ( | const HeightmapBlend & | _blend | ) |
Copy Assignment operator.
[in] | _blend | The heightmap blend to set values from. |
void sdf::v9::HeightmapBlend::SetFadeDistance | ( | double | _fadeDistance | ) |
Set the distance over which the blend occurs.
[in] | _uri | The distance in meters. |
void sdf::v9::HeightmapBlend::SetMinHeight | ( | double | _minHeight | ) |
Set the minimum height of the blend in meters.
[in] | _uri | The minimum height of the blend in meters. |