A height map generator using a Gaussian function.
More...
#include <HeightMapGenerator.h>
|
| | GaussianHeightMapGenerator () |
| | Default constructor.
|
| |
| | GaussianHeightMapGenerator (const size_t &width, const size_t &height, const GaussianFunctionSettings &settings) |
| | Constructor that takes the image width, image hegiht and settings as arguments.
|
| |
| agx::RealMatrix | generateHeightData () |
| | Generates and returns height data in matrix form.
|
| |
| GaussianFunctionSettings | getSettings () |
| | Gets the settings used in the simulation.
|
| |
| void | setSeed (agx::UInt seed) |
| | Sets the seed that it used by the random number generator when creating a bump texture.
|
| |
| void | setSettings (const GaussianFunctionSettings &settings) |
| | Sets the settings that will be used when creating the Gaussian texture.
|
| |
| | HeightMapGenerator () |
| |
| | HeightMapGenerator (const size_t &width, const size_t &height) |
| |
| size_t | getHeight () |
| | Gets the height in pixels of the produced texture.
|
| |
| size_t | getWidth () |
| | Gets the width in pixels of the produced texture.
|
| |
| void | setHeigth (const size_t &height) |
| | Sets the height in pixels of the produced texture.
|
| |
| void | setWidth (const size_t &width) |
| | Sets the height in pixels of the produced texture.
|
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
A height map generator using a Gaussian function.
Definition at line 105 of file HeightMapGenerator.h.
◆ GaussianHeightMapGenerator() [1/2]
| agxModel::GaussianHeightMapGenerator::GaussianHeightMapGenerator |
( |
| ) |
|
◆ GaussianHeightMapGenerator() [2/2]
| agxModel::GaussianHeightMapGenerator::GaussianHeightMapGenerator |
( |
const size_t & |
width, |
|
|
const size_t & |
height, |
|
|
const GaussianFunctionSettings & |
settings |
|
) |
| |
Constructor that takes the image width, image hegiht and settings as arguments.
◆ ~GaussianHeightMapGenerator()
| virtual agxModel::GaussianHeightMapGenerator::~GaussianHeightMapGenerator |
( |
| ) |
|
|
protectedvirtual |
◆ createGaussianHeightMatrix()
Creates a matrix that holds the heights of the Gaussian dimples.
◆ generateHeightData()
| agx::RealMatrix agxModel::GaussianHeightMapGenerator::generateHeightData |
( |
| ) |
|
Generates and returns height data in matrix form.
◆ getSettings()
Gets the settings used in the simulation.
◆ init()
| void agxModel::GaussianHeightMapGenerator::init |
( |
| ) |
|
|
protected |
◆ setSeed()
| void agxModel::GaussianHeightMapGenerator::setSeed |
( |
agx::UInt |
seed | ) |
|
Sets the seed that it used by the random number generator when creating a bump texture.
Definition at line 170 of file HeightMapGenerator.h.
References m_seed.
◆ setSettings()
Sets the settings that will be used when creating the Gaussian texture.
◆ m_seed
| agx::UInt agxModel::GaussianHeightMapGenerator::m_seed |
|
protected |
◆ m_settings
The documentation for this class was generated from the following file: