A height map generator using a Gaussian function.
More...
#include <HeightMapGenerator.h>
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 |
◆ allocateObserverVector()
| void agx::Referenced::allocateObserverVector |
( |
| ) |
const |
|
protectedinherited |
◆ as() [1/2]
template<typename T >
| T* agx::Referenced::as |
( |
| ) |
|
|
inherited |
◆ as() [2/2]
template<typename T >
| const T* agx::Referenced::as |
( |
| ) |
const |
|
inherited |
◆ asSafe() [1/2]
template<typename T >
| T* agx::Referenced::asSafe |
( |
| ) |
|
|
inherited |
◆ asSafe() [2/2]
template<typename T >
| const T* agx::Referenced::asSafe |
( |
| ) |
const |
|
inherited |
◆ createGaussianHeightMatrix()
Creates a matrix that holds the heights of the Gaussian dimples.
◆ deleteUsingDeleteHandler()
| void agx::Referenced::deleteUsingDeleteHandler |
( |
| ) |
const |
|
protectedinherited |
◆ generateHeightData()
| agx::RealMatrix agxModel::GaussianHeightMapGenerator::generateHeightData |
( |
| ) |
|
Generates and returns height data in matrix form.
◆ getDeleteHandler()
◆ getHeight()
| size_t agxModel::HeightMapGenerator::getHeight |
( |
| ) |
|
|
inherited |
◆ getReferenceCount()
| int agx::Referenced::getReferenceCount |
( |
| ) |
const |
|
inherited |
- Returns
- the number pointers currently referencing this object.
◆ getSettings()
Gets the settings used in the simulation.
◆ getWidth()
| size_t agxModel::HeightMapGenerator::getWidth |
( |
| ) |
|
|
inherited |
◆ init()
| void agxModel::GaussianHeightMapGenerator::init |
( |
| ) |
|
|
protected |
◆ is()
template<typename T >
| bool agx::Referenced::is |
( |
| ) |
const |
|
inherited |
◆ reference()
| void agx::Referenced::reference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
◆ setDeleteHandler()
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
◆ setHeigth()
| void agxModel::HeightMapGenerator::setHeigth |
( |
const size_t & |
height | ) |
|
|
inherited |
Sets the height in pixels of the produced texture.
◆ 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.
◆ setSettings()
Sets the settings that will be used when creating the Gaussian texture.
◆ setWidth()
| void agxModel::HeightMapGenerator::setWidth |
( |
const size_t & |
width | ) |
|
|
inherited |
Sets the height in pixels of the produced texture.
◆ unreference()
| void agx::Referenced::unreference |
( |
void * |
ptr = nullptr | ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
◆ unreference_nodelete()
| void agx::Referenced::unreference_nodelete |
( |
| ) |
const |
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
◆ ValidateCast()
template<typename T >
| static bool agx::Referenced::ValidateCast |
( |
const Referenced * |
object | ) |
|
|
staticinherited |
◆ m_height
| size_t agxModel::HeightMapGenerator::m_height |
|
protectedinherited |
◆ m_mutex
| Mutex agx::Referenced::m_mutex |
|
mutableprotectedinherited |
◆ m_observers
|
|
mutableprotectedinherited |
◆ m_refCount
| AtomicValue agx::Referenced::m_refCount |
|
mutableprotectedinherited |
◆ m_seed
| agx::UInt agxModel::GaussianHeightMapGenerator::m_seed |
|
protected |
◆ m_settings
◆ m_width
| size_t agxModel::HeightMapGenerator::m_width |
|
protectedinherited |
The documentation for this class was generated from the following file: