17 #ifndef AGXQT_FILTER_H
18 #define AGXQT_FILTER_H
ParticleRenderFilterManager()
ParticleFilterConstructor m_constructor
ParticleRenderFilter(const agx::Name &name)
ParticleVelocityRenderFilter()
ParticleRenderFilterModeVector getAvailableParticleRenderModes() const
Returns the ParticleFilterMode structs added to the manager.
std::function< ParticleRenderFilter *()> ParticleFilterConstructor
Struct containing information and constructors for a specific particle filter, that removes rendering...
agx::Name getName() const
Returns the name type identifier for the ParticleFilter.
ParticleFilterMode getActiveParticleRenderFilterMode() const
Returns the ParticleFilterMode struct for the active filter in the manager.
#define AGX_DECLARE_POINTER_TYPES(type)
Representation of a name string.
bool operator==(const ParticleFilterMode &rhs)
virtual void preRender(agx::ParticleSystem *system) override
Execute on particles before rendering.
agx::Vector< ParticleFilterMode > ParticleRenderFilterModeVector
This is a class that filters particles from certain criteria.
Base class providing referencing counted objects.
static const char *const PARTICLEFILTER_NONE_NAME
void setFilterThresholdScalar(agx::Real threshold)
Sets the filter threshold of the ParticleRenderFilter.
std::function< bool(agx::ParticleSystem *, agx::Physics::ParticlePtr)> ParticleFilterFunction
A basic particle system that contains all the storages and buffers required for basic operation and a...
void postRender(agx::ParticleSystem *system)
Execute after render state.
agx::Real m_scalarThreshold
virtual void postRender(agx::ParticleSystem *system) override
Execute after render state.
virtual ~ParticleRenderFilter()
void initStandardFilters()
void preRender(agx::ParticleSystem *system)
Execute on particles before rendering.
ParticleFilterMode AGXQT_EXPORT createNoneParticleFilterMode()
ParticleColorModeTable m_availableParticleFilters
void resetParticleFilterState(agx::ParticleSystem *system) const
Resets the filtered state in the particle system.
~ParticleRenderFilterManager()
LambdaParticleRenderFilter(const agx::Name &name, const ParticleFilterFunction &function)
agx::Real m_scalarThreshold
virtual ~LambdaParticleRenderFilter()
void filterParticle(agx::Physics::ParticlePtr ptr, bool shouldFilter)
void setScalarRenderThreshold(agx::Real scalarThreshold)
Sets the filter threshold of the ParticleRenderFilter.
bool particleRenderFilterExists(const agx::String &name)
Returns true/false if an ParticleRenderFilter with given name identifier exists in the manager...
virtual void preRender(agx::ParticleSystem *system)=0
Execute on particles before rendering.
void setActiveParticleRenderFilter(ParticleFilterMode mode)
Switches active particle render filter based on a ParticleFilter mode.
void setActiveParticleRenderFilterFromString(const agx::String &name)
Switches active particle render filter based on name identifier.
ParticleRenderFilter * m_activeParticleFilter
virtual void preRender(agx::ParticleSystem *system) override
Execute on particles before rendering.
Inheritance with partial specialization due to bug with ref_ptr containers.
virtual void postRender(agx::ParticleSystem *system) override
Execute after render state.
agx::Real getFilterThresholdScalar() const
Returns the filter threshold of the ParticleRenderFilter.
ParticleFilterFunction m_filterFunction
Pointer to a entity instance of type Physics.Particle.
virtual ~ParticleVelocityRenderFilter()
This is a base abstract class for filtering particles.
This is a class that filters particles from certain criteria.
agx::HashTable< agx::Name, ParticleFilterMode > ParticleColorModeTable
virtual void postRender(agx::ParticleSystem *system)=0
Execute after render state.