BELFEM 0.9.0
Berkeley Lab Finite Element Framework
Loading...
Searching...
No Matches
belfem::vtk::MeshView Class Reference

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< Actoractors ()
 All VTK actors (blocks + sidesets), for handing to a renderer.
void set_user_transform (const Transform &aTransform)

Detailed Description

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().

See also
Visualizer Module Documentation

Constructor & Destructor Documentation

◆ MeshView()

belfem::vtk::MeshView::MeshView ( belfem::Mesh * aMesh)

◆ ~MeshView()

belfem::vtk::MeshView::~MeshView ( )

Member Function Documentation

◆ actors()

Cell< Actor > belfem::vtk::MeshView::actors ( )

All VTK actors (blocks + sidesets), for handing to a renderer.

◆ blocks()

Cell< BlockActor * > & belfem::vtk::MeshView::blocks ( )
inline

The per-block actor wrappers; ownership stays with this view.

◆ set_user_transform()

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.

◆ sidesets()

Cell< SideSetActor * > & belfem::vtk::MeshView::sidesets ( )
inline

The per-sideset actor wrappers; ownership stays with this view.


The documentation for this class was generated from the following files: