AGX Dynamics  2.35.0.1
agxQt::ParticleColorerManager Class Reference

#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)
 
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
 
bool particleColorModeExists (const agx::String &name)
 
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)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
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
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
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 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...
 

Protected Member Functions

virtual ~ParticleColorerManager ()
 
void initColorRange ()
 
void initParticleModes ()
 
void setParticleColorMode (ParticleColorMode mode)
 
bool shouldLimitColorToBound () const
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Protected Attributes

ParticleColorerRef m_activeParticleColorer
 
const agx::AnalysisBox * m_analysisBox
 
bool m_limitInBound
 
agx::Real m_maxScalar
 
agx::Real m_minScalar
 
bool m_modifyAlphaFromScalar
 
ParticleColorModeTable m_particleColorModeTable
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Static Protected Member Functions inherited from agx::Referenced
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...
 

Detailed Description

Definition at line 104 of file ParticlePostProcessColorer.h.

Member Typedef Documentation

◆ ParticleColorModeTable

Constructor & Destructor Documentation

◆ ParticleColorerManager()

agxQt::ParticleColorerManager::ParticleColorerManager ( )

◆ ~ParticleColorerManager()

virtual agxQt::ParticleColorerManager::~ParticleColorerManager ( )
inlineprotectedvirtual

Definition at line 146 of file ParticlePostProcessColorer.h.

Member Function Documentation

◆ addCustomColorMode()

void agxQt::ParticleColorerManager::addCustomColorMode ( const agx::String &  name,
ParticleColorer::GetParticleRealFunc  getRealFunc,
const agx::String &  unitString 
)

◆ colorParticles()

void agxQt::ParticleColorerManager::colorParticles ( agx::ParticleSystem *  system)

◆ getActiveParticleColorMode()

ParticleColorMode agxQt::ParticleColorerManager::getActiveParticleColorMode ( ) const

◆ getAvailableParticleColorModes()

ParticleColorModeVector agxQt::ParticleColorerManager::getAvailableParticleColorModes ( )

◆ getColorMap()

agxOSG::ScalarColorMap* agxQt::ParticleColorerManager::getColorMap ( ) const

◆ getLimitInBound()

bool agxQt::ParticleColorerManager::getLimitInBound ( ) const

Definition at line 177 of file ParticlePostProcessColorer.h.

References m_limitInBound.

◆ getMaxScalar()

agx::Real agxQt::ParticleColorerManager::getMaxScalar ( ) const

Definition at line 165 of file ParticlePostProcessColorer.h.

References m_maxScalar.

◆ getMinScalar()

agx::Real agxQt::ParticleColorerManager::getMinScalar ( ) const

Definition at line 167 of file ParticlePostProcessColorer.h.

References m_minScalar.

◆ initColorRange()

void agxQt::ParticleColorerManager::initColorRange ( )
protected

◆ initParticleModes()

void agxQt::ParticleColorerManager::initParticleModes ( )
protected

◆ particleColorModeExists()

bool agxQt::ParticleColorerManager::particleColorModeExists ( const agx::String &  name)

◆ setAnalysisBox()

void agxQt::ParticleColorerManager::setAnalysisBox ( const agx::AnalysisBox *  analysisBox)

Definition at line 173 of file ParticlePostProcessColorer.h.

References initColorRange(), and m_analysisBox.

◆ setEnableModifyScalarFromAlpha()

void agxQt::ParticleColorerManager::setEnableModifyScalarFromAlpha ( bool  enable)

Definition at line 179 of file ParticlePostProcessColorer.h.

References m_modifyAlphaFromScalar.

◆ setLimitInBound()

void agxQt::ParticleColorerManager::setLimitInBound ( bool  limitInBound)

Definition at line 175 of file ParticlePostProcessColorer.h.

References m_limitInBound.

◆ setMaxScalar()

void agxQt::ParticleColorerManager::setMaxScalar ( agx::Real  maxScalar)

Definition at line 169 of file ParticlePostProcessColorer.h.

References initColorRange(), and m_maxScalar.

◆ setMinScalar()

void agxQt::ParticleColorerManager::setMinScalar ( agx::Real  minScalar)

Definition at line 171 of file ParticlePostProcessColorer.h.

References initColorRange(), and m_minScalar.

◆ setParticleColorMode()

void agxQt::ParticleColorerManager::setParticleColorMode ( ParticleColorMode  mode)
protected

◆ setParticleColorModeFromName()

void agxQt::ParticleColorerManager::setParticleColorModeFromName ( const agx::String &  name)

◆ shouldLimitColorToBound()

bool agxQt::ParticleColorerManager::shouldLimitColorToBound ( ) const
protected

Member Data Documentation

◆ m_activeParticleColorer

ParticleColorerRef agxQt::ParticleColorerManager::m_activeParticleColorer
protected

Definition at line 162 of file ParticlePostProcessColorer.h.

◆ m_analysisBox

const agx::AnalysisBox* agxQt::ParticleColorerManager::m_analysisBox
protected

Definition at line 158 of file ParticlePostProcessColorer.h.

Referenced by setAnalysisBox().

◆ m_limitInBound

bool agxQt::ParticleColorerManager::m_limitInBound
protected

Definition at line 159 of file ParticlePostProcessColorer.h.

Referenced by getLimitInBound(), and setLimitInBound().

◆ m_maxScalar

agx::Real agxQt::ParticleColorerManager::m_maxScalar
protected

Definition at line 156 of file ParticlePostProcessColorer.h.

Referenced by getMaxScalar(), and setMaxScalar().

◆ m_minScalar

agx::Real agxQt::ParticleColorerManager::m_minScalar
protected

Definition at line 157 of file ParticlePostProcessColorer.h.

Referenced by getMinScalar(), and setMinScalar().

◆ m_modifyAlphaFromScalar

bool agxQt::ParticleColorerManager::m_modifyAlphaFromScalar
protected

Definition at line 160 of file ParticlePostProcessColorer.h.

Referenced by setEnableModifyScalarFromAlpha().

◆ m_particleColorModeTable

ParticleColorModeTable agxQt::ParticleColorerManager::m_particleColorModeTable
protected

Definition at line 161 of file ParticlePostProcessColorer.h.


The documentation for this class was generated from the following file: