NuTo
Numerics Tool
Public Member Functions | List of all members
NuTo::Visualize::HandlerInterface Class Referenceabstract

Interface for a handler class that visualizes a single cell. More...

#include <HandlerInterface.h>

Inheritance diagram for NuTo::Visualize::HandlerInterface:
NuTo::Visualize::AverageHandler NuTo::Visualize::PointHandler NuTo::Visualize::VoronoiHandler

Public Member Functions

virtual ~HandlerInterface ()=default
 
virtual std::unique_ptr< HandlerInterfaceClone () const =0
 
virtual std::vector< int > WriteGeometry (const CellInterface &cell, UnstructuredGrid *grid)=0
 Generate a visualize geometry for each cell and write it to the grid. More...
 
virtual void WriteDofValues (const CellInterface &cell, const DofType dof, std::vector< int > pointIds, UnstructuredGrid *grid)=0
 Write DOF values into the grid. More...
 
virtual void CellData (int cellId, std::vector< Eigen::VectorXd > values, std::string name, UnstructuredGrid *grid)=0
 Write cell data into the grid. More...
 
virtual void PointData (const CellInterface &cell, std::function< Eigen::VectorXd(Eigen::VectorXd)> f, std::vector< int > pointIds, std::string name, UnstructuredGrid *grid)=0
 Write point data into the grid. More...
 

Detailed Description

Interface for a handler class that visualizes a single cell.

Constructor & Destructor Documentation

virtual NuTo::Visualize::HandlerInterface::~HandlerInterface ( )
virtualdefault

Member Function Documentation

virtual void NuTo::Visualize::HandlerInterface::CellData ( int  cellId,
std::vector< Eigen::VectorXd >  values,
std::string  name,
UnstructuredGrid grid 
)
pure virtual

Write cell data into the grid.

Parameters
cellIdID of the cell to be visualized.
valuesList of values to be visualized (e.g. integration point values).
nameName to be used in the resulting output file for the data array.
gridPointer to the grid where the geometry should be written to.

Implemented in NuTo::Visualize::VoronoiHandler, NuTo::Visualize::PointHandler, and NuTo::Visualize::AverageHandler.

virtual std::unique_ptr<HandlerInterface> NuTo::Visualize::HandlerInterface::Clone ( ) const
pure virtual
virtual void NuTo::Visualize::HandlerInterface::PointData ( const CellInterface cell,
std::function< Eigen::VectorXd(Eigen::VectorXd)>  f,
std::vector< int >  pointIds,
std::string  name,
UnstructuredGrid grid 
)
pure virtual

Write point data into the grid.

Parameters
cellCell to be visualized.
fFunction to be visualized.
pointIdsIDs of the visualization points belonging to the cell.
nameName to be used in the resulting output file for the data array.
gridPointer to the grid where the geometry should be written to.

Implemented in NuTo::Visualize::VoronoiHandler, NuTo::Visualize::PointHandler, and NuTo::Visualize::AverageHandler.

virtual void NuTo::Visualize::HandlerInterface::WriteDofValues ( const CellInterface cell,
const DofType  dof,
std::vector< int >  pointIds,
UnstructuredGrid grid 
)
pure virtual

Write DOF values into the grid.

Parameters
cellCurrent cell to be visualized.
dofDofType to be visualized.
pointIdsIDs of the visualization points belonging to the cell.
gridPointer to the grid where the geometry should be written to.

Implemented in NuTo::Visualize::VoronoiHandler, NuTo::Visualize::PointHandler, and NuTo::Visualize::AverageHandler.

virtual std::vector<int> NuTo::Visualize::HandlerInterface::WriteGeometry ( const CellInterface cell,
UnstructuredGrid grid 
)
pure virtual

Generate a visualize geometry for each cell and write it to the grid.

Parameters
cellCurrent cell to be visualized.
gridPointer to the grid where the geometry should be written to.

Implemented in NuTo::Visualize::VoronoiHandler, NuTo::Visualize::PointHandler, and NuTo::Visualize::AverageHandler.


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