17 #ifndef AGXOSG_PRESSURE_RENDERER_H 18 #define AGXOSG_PRESSURE_RENDERER_H 30 #include <osg/observer_ptr> 31 #include <osgSim/ColorRange> 67 osgSim::ColorRange* colorRange =
new osgSim::ColorRange(0.0f, 1.0e5f),
129 bool startMaxAvgRecording();
140 size_t stopMaxAvgRecording();
150 size_t getNumRecordings();
165 bool renderMaxPressure(
size_t recording);
180 bool renderAvgPressure(
size_t recording);
189 bool restoreRendering();
192 void setEnableLegend(
bool flag);
198 void setLegendPosition(
const agx::Vec2& pos);
201 osgSim::ColorRange* getColorRange();
220 bool renderPressure(
size_t recording,
bool useMax);
226 void updateTextureData();
229 void unregisterRecorders();
248 osg::Texture2D* getTexture(osg::Group* root);
269 osg::Texture2D* getTexture(osg::Group* root);
osg::ref_ptr< osg::Image > originalTextureImage
osg::observer_ptr< osg::Group > m_root
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
const agxOSG::PressureFromContacts::ForceType m_forceType
Abstract base class that implements a filter that selects which events should trigger a Listener...
#define AGX_DECLARE_POINTER_TYPES(type)
agx::Vector< MaxAvgData > m_maxAvgData
agx::Vector< MaxAvgRecording > MaxAvgRecordingVector
GatherMaxPressureRef maxGatherer
const agxCollide::TrimeshConstObserver mesh
Decorates a scene with a specific AGX Rendering Style.
Base class providing referencing counted objects.
The geometry representation used by the collision detection engine.
agx::Vector< MaxAvgRecordingVector > m_maxAvgRecordings
agxOSG::PressureAtlasManagerRef m_atlasManager
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
const agxCollide::TrimeshConstObserver mesh
An utility class for handling of pressure rendering and legend.
osg::ref_ptr< osgSim::ColorRange > m_colorRange
agx::Vector< agxCollide::TrimeshRef > m_meshes
size_t m_currentRecording
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
osg::ref_ptr< osg::Image > originalTextureImage
agx::Vector< agxSDK::ExecuteFilterRef > m_filters
agx::Vec2 m_legendPosition
AGXCORE_EXPORT Component * root()
osg::ref_ptr< osg::Image > maxPressure
osg::ref_ptr< agxOSG::Transform > m_legendTransform
osg::observer_ptr< agxOSG::SceneDecorator > m_decorator
Triangle mesh for geometric intersection tests.
osg::ref_ptr< osg::Image > avgPressure
GatherAvgPressureRef avgGatherer