gz/rendering/HeightmapDescriptor.hh
void SetFadeDistance(double _fadeDistance)
Set the distance over which the blend occurs.
void SetUseTerrainPaging(bool _use)
Set whether the heightmap uses terrain paging. Defaults to false.
STL class.
#define IGN_COMMON_WARN_IGNORE__DLL_INTERFACE_MISSING
void SetSize(const ignition::math::Vector3d &_size)
Set the heightmap's scaling factor. Defaults to 1x1x1.
Describes how a Heightmap should be loaded.
Definition: gz/rendering/HeightmapDescriptor.hh:146
ignition::math::Vector3d Size() const
Get the heightmap's scaling factor.
std::string Normal() const
Get the heightmap texture's normal map.
uint64_t TextureCount() const
Get the number of heightmap textures.
const std::string & Name() const
Get the heightmap's name used for caching. This is different from its unique Heightmap::Name().
const HeightmapTexture * TextureByIndex(uint64_t _index) const
Get a heightmap texture based on an index.
std::shared_ptr< common::HeightmapData > Data() const
Get the heightfield data.
HeightmapTexture & operator=(HeightmapTexture &&_texture)
Move assignment operator.
virtual ~HeightmapDescriptor()
Destructor.
std::string Diffuse() const
Get the heightmap texture's diffuse map.
void SetSampling(unsigned int _sampling)
Set the heightmap's sampling. Defaults to 1.
HeightmapDescriptor & operator=(HeightmapDescriptor &&_desc)
Move assignment operator.
unsigned int Sampling() const
Get the heightmap's sampling per datum.
ignition::math::Vector3d Position() const
Get the heightmap's position offset.
void AddBlend(const HeightmapBlend &_blend)
Add a heightmap blend.
double MinHeight() const
Get the heightmap blend's minimum height.
Blend information to be used between textures on heightmaps.
Definition: gz/rendering/HeightmapDescriptor.hh:95
void SetName(const std::string &_name)
Set the heightmap's name.
void SetSize(double _size)
Set the size of the texture in meters.
bool UseTerrainPaging() const
Get whether the heightmap uses terrain paging.
uint64_t BlendCount() const
Get the number of heightmap blends.
void SetNormal(const std::string &_normal)
Set the filename of the normal map.
void SetPosition(const ignition::math::Vector3d &_position)
Set the heightmap's position offset.
void SetData(const std::shared_ptr< common::HeightmapData > &_data)
Set the heightfield data.
double FadeDistance() const
Get the heightmap blend's fade distance.
Texture to be used on heightmaps.
Definition: gz/rendering/HeightmapDescriptor.hh:38
HeightmapBlend & operator=(HeightmapBlend &&_blend)
Move assignment operator.
void AddTexture(const HeightmapTexture &_texture)
Add a heightmap texture.
void SetMinHeight(double _minHeight)
Set the minimum height of the blend in meters.
void SetDiffuse(const std::string &_diffuse)
Set the filename of the diffuse map.
#define IGN_COMMON_WARN_RESUME__DLL_INTERFACE_MISSING
const HeightmapBlend * BlendByIndex(uint64_t _index) const
Get a heightmap blend based on an index.