|
AGXDynamics
2.31.1.0
|
#include <ParticlePostProcessColorer.h>
Inheritance diagram for agxQt::ParticleColorerManager:Public Types | |
| typedef agx::HashTable < agx::Name, ParticleColorMode > | ParticleColorModeTable |
Public Member Functions | |
| ParticleColorerManager () | |
| void | addCustomColorMode (const agx::String &name, ParticleColorer::GetParticleRealFunc getRealFunc, const agx::String &unitString) |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| void | colorParticles (agx::ParticleSystem *system) |
| ParticleColorMode | getActiveParticleColorMode () const |
| ParticleColorModeVector | getAvailableParticleColorModes () |
| agxOSG::ScalarColorMap * | getColorMap () const |
| bool | getLimitInBound () const |
| agx::Real | getMaxScalar () const |
| agx::Real | getMinScalar () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | particleColorModeExists (const agx::String &name) |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | setAnalysisBox (const agx::AnalysisBox *analysisBox) |
| void | setEnableModifyScalarFromAlpha (bool enable) |
| void | setLimitInBound (bool limitInBound) |
| void | setMaxScalar (agx::Real maxScalar) |
| void | setMinScalar (agx::Real minScalar) |
| void | setParticleColorModeFromName (const agx::String &name) |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~ParticleColorerManager () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | initColorRange () |
| void | initParticleModes () |
| void | setParticleColorMode (ParticleColorMode mode) |
| bool | shouldLimitColorToBound () const |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| ParticleColorerRef | m_activeParticleColorer |
| const agx::AnalysisBox * | m_analysisBox |
| bool | m_limitInBound |
| agx::Real | m_maxScalar |
| agx::Real | m_minScalar |
| bool | m_modifyAlphaFromScalar |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| ParticleColorModeTable | m_particleColorModeTable |
| AtomicValue | m_refCount |
Definition at line 104 of file ParticlePostProcessColorer.h.
| typedef agx::HashTable<agx::Name, ParticleColorMode> agxQt::ParticleColorerManager::ParticleColorModeTable |
Definition at line 107 of file ParticlePostProcessColorer.h.
| agxQt::ParticleColorerManager::ParticleColorerManager | ( | ) |
|
inlineprotectedvirtual |
Definition at line 146 of file ParticlePostProcessColorer.h.
| void agxQt::ParticleColorerManager::addCustomColorMode | ( | const agx::String & | name, |
| ParticleColorer::GetParticleRealFunc | getRealFunc, | ||
| const agx::String & | unitString | ||
| ) |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
| void agxQt::ParticleColorerManager::colorParticles | ( | agx::ParticleSystem * | system | ) |
|
protectedinherited |
| ParticleColorMode agxQt::ParticleColorerManager::getActiveParticleColorMode | ( | ) | const |
| ParticleColorModeVector agxQt::ParticleColorerManager::getAvailableParticleColorModes | ( | ) |
| agxOSG::ScalarColorMap* agxQt::ParticleColorerManager::getColorMap | ( | ) | const |
|
staticprotectedinherited |
| bool agxQt::ParticleColorerManager::getLimitInBound | ( | ) | const |
Definition at line 177 of file ParticlePostProcessColorer.h.
References m_limitInBound.
| agx::Real agxQt::ParticleColorerManager::getMaxScalar | ( | ) | const |
Definition at line 165 of file ParticlePostProcessColorer.h.
References m_maxScalar.
| agx::Real agxQt::ParticleColorerManager::getMinScalar | ( | ) | const |
Definition at line 167 of file ParticlePostProcessColorer.h.
References m_minScalar.
|
inherited |
|
protected |
Referenced by setAnalysisBox(), setMaxScalar(), and setMinScalar().
|
protected |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
| bool agxQt::ParticleColorerManager::particleColorModeExists | ( | const agx::String & | name | ) |
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.
Referenced by agxData::Val< UInt >::Val().
| void agxQt::ParticleColorerManager::setAnalysisBox | ( | const agx::AnalysisBox * | analysisBox | ) |
Definition at line 173 of file ParticlePostProcessColorer.h.
References initColorRange(), and m_analysisBox.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
| void agxQt::ParticleColorerManager::setEnableModifyScalarFromAlpha | ( | bool | enable | ) |
Definition at line 179 of file ParticlePostProcessColorer.h.
References m_modifyAlphaFromScalar.
| void agxQt::ParticleColorerManager::setLimitInBound | ( | bool | limitInBound | ) |
Definition at line 175 of file ParticlePostProcessColorer.h.
References m_limitInBound.
Definition at line 169 of file ParticlePostProcessColorer.h.
References initColorRange(), and m_maxScalar.
Definition at line 171 of file ParticlePostProcessColorer.h.
References initColorRange(), and m_minScalar.
|
protected |
| void agxQt::ParticleColorerManager::setParticleColorModeFromName | ( | const agx::String & | name | ) |
|
protected |
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.
|
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.
|
staticinherited |
|
protected |
Definition at line 162 of file ParticlePostProcessColorer.h.
|
protected |
Definition at line 158 of file ParticlePostProcessColorer.h.
Referenced by setAnalysisBox().
|
protected |
Definition at line 159 of file ParticlePostProcessColorer.h.
Referenced by getLimitInBound(), and setLimitInBound().
|
protected |
Definition at line 156 of file ParticlePostProcessColorer.h.
Referenced by getMaxScalar(), and setMaxScalar().
|
protected |
Definition at line 157 of file ParticlePostProcessColorer.h.
Referenced by getMinScalar(), and setMinScalar().
|
protected |
Definition at line 160 of file ParticlePostProcessColorer.h.
Referenced by setEnableModifyScalarFromAlpha().
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 161 of file ParticlePostProcessColorer.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.