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

Owns the VTK actor for a single mesh Block. More...

#include <cl_VTK_MeshView.hpp>

Public Member Functions

 BlockActor (Points aPoints, Map< id_t, vtkIdType > &aNodeMap, Map< id_t, vtkIdType > &aElementMap, mesh::Block *aBlock)
 ~BlockActor ()=default
mesh::Blockblock ()
Actor actor ()
 The VTK actor; ownership stays with this wrapper.

Detailed Description

Owns the VTK actor for a single mesh Block.

Composition, not inheritance: the wrapper HOLDS a vtkActor (lifetime managed by the smart pointer) rather than being one. The block's volume elements become an unstructured grid, surface-extracted by a vtkDataSetMapper. The grid shares the parent MeshView's point set; only cell connectivity is stored here.

Constructor & Destructor Documentation

◆ BlockActor()

belfem::vtk::BlockActor::BlockActor ( Points aPoints,
Map< id_t, vtkIdType > & aNodeMap,
Map< id_t, vtkIdType > & aElementMap,
mesh::Block * aBlock )

◆ ~BlockActor()

belfem::vtk::BlockActor::~BlockActor ( )
default

Member Function Documentation

◆ actor()

Actor belfem::vtk::BlockActor::actor ( )
inline

The VTK actor; ownership stays with this wrapper.

◆ block()

mesh::Block * belfem::vtk::BlockActor::block ( )
inline

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