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