 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
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);
const agxCollide::TrimeshConstObserver mesh
An utility class for handling of pressure rendering and legend.
size_t m_currentRecording
Abstract base class that implements a filter that selects which events should trigger a Listener.
osg::ref_ptr< osg::Image > maxPressure
osg::observer_ptr< agxOSG::SceneDecorator > m_decorator
osg::ref_ptr< agxOSG::Transform > m_legendTransform
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
osg::ref_ptr< osg::Image > originalTextureImage
GatherMaxPressureRef maxGatherer
Decorates a scene with a specific AGX Rendering Style.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
agx::Vector< MaxAvgRecordingVector > m_maxAvgRecordings
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
osg::ref_ptr< osg::Image > avgPressure
agxOSG::PressureAtlasManagerRef m_atlasManager
The geometry representation used by the collision detection engine.
const agxCollide::TrimeshConstObserver mesh
AGXCORE_EXPORT Component * root()
osg::ref_ptr< osg::Image > originalTextureImage
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
GatherAvgPressureRef avgGatherer
agx::Vec2 m_legendPosition
agx::Vector< MaxAvgData > m_maxAvgData
agx::Vector< MaxAvgRecording > MaxAvgRecordingVector
Triangle mesh for geometric intersection tests.
agx::Vector< agxSDK::ExecuteFilterRef > m_filters
const agxOSG::PressureFromContacts::ForceType m_forceType
osg::ref_ptr< osgSim::ColorRange > m_colorRange
agx::Vector< agxCollide::TrimeshRef > m_meshes
osg::observer_ptr< osg::Group > m_root