17 #ifndef AGXQT_QTOSGUTILS_H
18 #define AGXQT_QTOSGUTILS_H
23 #include <agxQt/ui_RenderController.h>
25 #include <osgViewer/ViewerEventHandlers>
27 #include <osgViewer/Renderer>
28 #include <osgSim/ColorRange>
29 #include <osgSim/ScalarsToColors>
351 #if AGX_USE_KEYSHOT()
355 class KeyShotParticleDumper
357 KeyShotParticleDumper();
362 static void exportCurrentJournalFrameToBip(
int frame,
agx::UInt m_numTrajectoryPositions
agxOSG::ParticleContactGraphDrawable * m_graphDrawable
agx::Real getMaxForce() const
bool hasOpenColorLegend() const
ParticleColorModeVector getAvailableColorModes() const
Vec3T< Real > Vec3
The object holding 3 dimensional vectors and providing basic arithmetic.
osg::Geode * createCubeLines(const agx::Vec3 &position, const agx::Vec3 &boxhalfVec3)
TrajectoryRenderer(agxSDK::Simulation *simulation, osg::Group *root, agx::ParticleSystem *ps)
agxOSG::ParticleSystemDrawable::ParticleShaderMode getParticleShaderMode() const
virtual ~ParticleContactGraphRenderer()
agx::ParticleSystem * m_system
Derive from this class to implement a listener for simulation Step events.
ParticleContactGraphRenderer(osg::Group *root, agx::ParticleSystem *ps)
void setParticleColorModeFromName(const agx::String &mode)
void setPosition(agx::Vec3 position)
This utility class is used for post processing of the particle system drawable representation, such as alpha rendering and velocity color.
ParticleRenderFilterManager * getParticleRenderFilterManager()
void setEnable(bool enable)
virtual ~ClipPlaneController()
Destructor.
agxQt::QtAgxWrapper * m_qtAgxWrapper
void setEnable(bool enable)
bool getShowColorLegend() const
osg::ref_ptr< agxOSG::ParticleTrajectoriesDrawable > m_particleTrajectoryDrawable
void setParticleShaderMode(agxOSG::ParticleSystemDrawable::ParticleShaderMode mode)
virtual ~TrajectoryRenderer()
agx::ParticleSystem * m_particleSystem
osg::ref_ptr< agxQt::GranularImpactsDrawable > m_impactsDrawable
void setShowColorLegend(bool enable, int width, int height)
agx::Real getSampling() const
void setEnable(bool enable)
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Real getIncrement() const
This class wraps the ClipPlane functionality of osg together with a clip node and a clip plane...
ParticleContactGraphRendererRef getParticleContactGraphRenderer()
void setMinNetworkForce(agx::Real minForce)
agx::ParticleSystem * m_particleSystem
osg::observer_ptr< osg::Group > m_root
ClipPlaneController(agxOSG::ClipPlane *clipPlane)
Constructor.
void resetAlphaOnColors()
Base class providing referencing counted objects.
void setMaxColorScalar(agx::Real maxVel)
agx::Real getMinForce() const
osg::observer_ptr< osg::Group > m_root
void setEnableParticleRendering(bool enable)
agxOSG::ParticleSystemDrawable * m_psDrawable
A basic particle system that contains all the storages and buffers required for basic operation and a...
agx::Real getMaxColorScalar() const
osg::Geode * createPlaneLines(const agx::Vec3 &position, const agx::Vec3 &normal, agx::Real size)
virtual ~ParticleSystemRenderUtility()
void updateColorLegend(int width, int height)
bool getEnableParticleRendering() const
agx::Quat getRotation() const
agx::Vec3 getPosition() const
void setSampling(agx::Real enable)
GranularImpactsDrawable * getGranularImpactsDrawable()
void setAlphaValue(agx::Real alpha)
void setEnable(bool enable)
void setMinColorScalar(agx::Real minVel)
void setRotation(const agx::Quat &quat)
osg::ref_ptr< osg::Geode > m_trajectoryGeode
void setMaxForce(agx::Real maxForce)
void setEnableRendering(bool enable)
Class that can be used to extract data from elements in a simulation within a specified bound...
void incrementClipPlane()
Increments the Near plane of the scene in the coupled agxViewer.
ParticleColorerManagerRef m_particleColorerManager
bool getLimitColoringToAnalysisBound() const
agx::Real getAlphaValue() const
void setAlphaOnParticles(agx::Real alpha)
virtual void post(const agx::TimeStamp &t)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
void setAnalysisBox(const agx::AnalysisBox *box)
void setIncrement(agx::Real increment)
osg::ref_ptr< agxOSG::RigidBodyTrajectoryDrawable > m_RBTrajectorydrawable
ParticleRenderFilterManagerRef m_particleRenderFilterManager
void decrementClipPlane()
Decrements the Near plane of the scene in the coupled agxViewer.
Class that describes an abstract camera and it's properties.
void setMaxPositionPoints(agx::UInt posPoints)
agx::Real getMinColorScalar() const
ParticleColorMode getActiveParticleColorMode() const
void refreshColorLegend()
void setMinForce(agx::Real minForce)
agx::UInt getMaxPositionPoints()
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
void colorParticlesWithActivePostProcess(agx::ParticleSystem *system)
Class that is used to manipulate the clip plane in the scene.
agx::Real getMinNetworkForce() const
void updateClipPlaneFromIncrement(agx::Real increment)
ParticleContactGraphRendererRef m_particleContactGraphRenderer
ParticleSystemRenderUtility(agxQt::QtAgxWrapper *qtagxViewer, osg::Group *root, agxOSG::ParticleSystemDrawable *psdraw, agx::ParticleSystem *system)
const agx::Vec3 BASE_NORMAL
void setEnable(bool enable)
AGXCORE_EXPORT Component * root()
void setLimitColoringToAnalysisBound(bool enable)
virtual void pre(const agx::TimeStamp &t)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
void setMaxNetworkForce(agx::Real minForce)
Class that wraps SimulationController with an interface that enables QT Gui signals to control the si...
osg::Geode * createCube(const agx::Vec3 &position, const agx::Vec3 &boxhalfVec3)
void resetParticleFilteredState()
agx::Real getMaxNetworkForce() const
osg::ref_ptr< osg::Group > m_hudGroup
osg::observer_ptr< osg::Group > m_root
agxOSG::ClipPlane * m_clipPlane
bool getEnableRendering() const