#include <PressureFieldRenderer.h>
|
| | 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 the visual mesh).
|
| |
| virtual void | 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.
|
| |
| virtual void | updateTransform (const agx::AffineMatrix4x4 &shapeToWorld) override |
| | Called when the shape transform may have been updated.
|
| |
| | Referenced () |
| | Default constructor.
|
| |
| | Referenced (const Referenced &) |
| |
| template<typename T > |
| T * | as () |
| | Subclass casting.
|
| |
| template<typename T > |
| const T * | as () const |
| |
| template<typename T > |
| T * | asSafe () |
| | Safe subclass casting, return nullptr if template type does not match.
|
| |
| template<typename T > |
| const T * | asSafe () const |
| |
| int | getReferenceCount () const |
| |
| template<typename T > |
| bool | is () const |
| | Subclass test.
|
| |
| Referenced & | operator= (const Referenced &) |
| | Assignment operator. Will increment the number of references to the referenced object.
|
| |
| void | reference (void *ptr=nullptr) const |
| | Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
|
| |
| void | unreference (void *ptr=nullptr) const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
| void | unreference_nodelete () const |
| | Decrement the reference count by one, indicating that a pointer to this object is referencing it.
|
| |
◆ PressureFieldRenderer()
| agxOSG::PressureFieldRenderer::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 the visual mesh).
◆ ~PressureFieldRenderer()
| agxOSG::PressureFieldRenderer::~PressureFieldRenderer |
( |
| ) |
|
|
protected |
◆ addTriangle()
On add triangle.
- Parameters
-
| tData | - triangle data with three vertices, also containing data |
| worldToShape | - world to shape transform, matches as updateTransform( worldToShape.inverse() ) |
Implements agxModel::PressureFieldRenderer.
◆ clear()
| virtual void agxOSG::PressureFieldRenderer::clear |
( |
| ) |
|
|
overridevirtual |
◆ done()
| virtual void agxOSG::PressureFieldRenderer::done |
( |
| ) |
|
|
overridevirtual |
◆ updateTransform()
The documentation for this class was generated from the following file: