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