17 #ifndef AGXOSG_PRESSUREFIELDRENDERER_H
18 #define AGXOSG_PRESSUREFIELDRENDERER_H
29 #include <osg/PrimitiveSet>
30 #include <osg/Geometry>
60 virtual void done()
override;
67 osg::ref_ptr< osg::FloatArray > m_heightsArray;
68 osg::ref_ptr< osg::FloatArray > m_pressureArray;
69 osg::ref_ptr< osg::Vec3Array > m_vertices;
70 osg::ref_ptr< osg::Vec3Array > m_normals;
71 osg::ref_ptr< osg::DrawArrays > m_primitiveSet;
72 osg::ref_ptr< osg::Geometry > m_geometry;
#define AGX_DECLARE_POINTER_TYPES(type)
virtual agx::UInt addTriangle(const agxModel::TriangleData &tData, const agx::AffineMatrix4x4 &worldToShape) override
On add triangle.
virtual void clear() override
On clear.
virtual void done() override
On done.
PressureFieldRenderer(osg::Group *root, agx::Real scale=agx::Real(1))
Construct given root node, base color and a scale of the mesh (to have it a bit larger/smaller than t...
virtual agx::UInt addPressure(agx::UInt index, agx::Real pressure) override
On add pressure.
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxOSG namespace provides functionality for visualizing AGX simulations with OpenSceneGraph.
AGXCORE_EXPORT Component * root()
Triangle data for a normal or a clipped triangle.