The renderable view of a belfem::Mesh: one shared point set plus per-block and per-sideset actor wrappers. More...
#include <cl_VTK_MeshView.hpp>
Public Member Functions | |
| MeshView (belfem::Mesh *aMesh) | |
| ~MeshView () | |
| Cell< BlockActor * > & | blocks () |
| The per-block actor wrappers; ownership stays with this view. | |
| Cell< SideSetActor * > & | sidesets () |
| The per-sideset actor wrappers; ownership stays with this view. | |
| Cell< Actor > | actors () |
| All VTK actors (blocks + sidesets), for handing to a renderer. | |
| void | set_user_transform (const Transform &aTransform) |
The renderable view of a belfem::Mesh: one shared point set plus per-block and per-sideset actor wrappers.
Source-agnostic: it knows nothing about what the mesh represents. A consumer collects the actors via actors() and, when the mesh is placed in a larger scene (e.g. a spacecraft in an orbit viewer), moves the whole view as a rigid body via set_user_transform().
| belfem::vtk::MeshView::MeshView | ( | belfem::Mesh * | aMesh | ) |
| belfem::vtk::MeshView::~MeshView | ( | ) |
All VTK actors (blocks + sidesets), for handing to a renderer.
|
inline |
The per-block actor wrappers; ownership stays with this view.
| void belfem::vtk::MeshView::set_user_transform | ( | const Transform & | aTransform | ) |
Apply one user transform to every block/sideset actor, so the whole mesh moves as a rigid body. The caller keeps ownership of the transform and may keep mutating it.
|
inline |
The per-sideset actor wrappers; ownership stays with this view.