17 #ifndef AGXQT_PARTICLEPOSTPROCESSCOLORER_H
18 #define AGXQT_PARTICLEPOSTPROCESSCOLORER_H
21 #include <osg/ref_ptr>
63 typedef std::function<agx::Real(agx::ParticleSystem*, agx::Physics::ParticlePtr)>
GetParticleRealFunc;
121 void setParticleColorModeFromName(
const agx::String& name);
123 bool particleColorModeExists(
const agx::String& name);
135 void setEnableModifyScalarFromAlpha(
bool enable);
137 void setLimitInBound(
bool limitInBound);
139 bool getLimitInBound()
const;
144 void initParticleModes();
148 void initColorRange();
150 bool shouldLimitColorToBound()
const;
255 bool m_shouldResetPostions;
295 GetParticleRealFunc m_getRealFunc;
bool m_modifyAlphaFromScalar
void setMinScalar(agx::Real minScalar)
ColorerConstructor m_constructor
virtual ~ParticleColorer()
Implements the particle post processor colorer for contact force.
virtual ~ParticlePostPorcessColorerLambda()
virtual ~ParticlePostPorcessColorerHeight()
bool getLimitInBound() const
Implements the particle post processor colorer for contact force.
std::function< agx::Real(agx::ParticleSystem *, agx::Physics::ParticlePtr)> GetParticleRealFunc
A class holding 4 dimensional vectors and providing basic arithmetic.
Implements the particle post processor colorer for velocities.
void setMaxScalar(agx::Real maxScalar)
#define AGX_DECLARE_POINTER_TYPES(type)
ParticleColorerRef m_activeParticleColorer
virtual ~ParticlePostPorcessColorerDisplacement()
bool operator==(const ParticleColorMode &rhs)
Representation of a name string.
virtual ~ParticlePostPorcessColorerContactForce()
virtual ~ParticlePostPorcessColorerRadius()
ParticleColorMode AGXQT_EXPORT createNoneParticleColorMode()
Base class providing referencing counted objects.
virtual ~ParticleColorerManager()
Implements the particle post processor colorer for contact force.
agxOSG::ScalarColorMap * getColorMap() const
A basic particle system that contains all the storages and buffers required for basic operation and a...
const agx::AnalysisBox * m_analysisBox
std::function< ParticleColorer *()> ColorerConstructor
ParticleColorMode.
Implements the particle post processor colorer for velocities.
agx::HashTable< agx::Index, agx::Vec3 > m_particleIdToPosition
void setAnalysisBox(const agx::AnalysisBox *analysisBox)
agxOSG::ScalarColorMapRef m_colorMap
static const char *const COLORMODE_NONE_NAME
Class that can be used to extract data from elements in a simulation within a specified bound...
Implements the particle post processor colorer for velocities.
agx::Name getName() const
ParticleColorModeTable m_particleColorModeTable
virtual ~ParticlePostPorcessColorerVelocity()
Implements the particle post processor colorer for velocities.
virtual ~ParticlePostPorcessKineticEnergy()
agx::HashTable< agx::Name, ParticleColorMode > ParticleColorModeTable
void setEnableModifyScalarFromAlpha(bool enable)
Class that represents a linear scalar color map that converts a scalar interval to a specified color ...
agx::Vector< ParticleColorMode > ParticleColorModeVector
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::Real getMaxScalar() const
agx::Real getMinScalar() const
void setLimitInBound(bool limitInBound)