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;
73 osg::ref_ptr<osg::MatrixTransform> m_transform;
#define AGX_DECLARE_POINTER_TYPES(type)
virtual void clear() override
On clear.
virtual void done() override
On done.
virtual void updateTransform(const agx::AffineMatrix4x4 &shapeToWorld) override
Called when the shape transform may have been updated.
virtual void addTriangle(const agxModel::TriangleData &tData, const agx::AffineMatrix4x4 &worldToShape) override
On add triangle.
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...
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.
Triangle data for a normal or a clipped triangle.