NuTo
Numerics Tool
PointHandler.h
Go to the documentation of this file.
1 #pragma once
2 
5 
6 namespace NuTo
7 {
8 namespace Visualize
9 {
12 {
13 public:
16  PointHandler(std::vector<Eigen::VectorXd> ipCoords);
17 
20  PointHandler(const IntegrationTypeBase& integrationType);
21 
22  virtual std::unique_ptr<HandlerInterface> Clone() const override;
23 
24  virtual std::vector<int> WriteGeometry(const CellInterface& cell, UnstructuredGrid* grid) override;
25 
26  virtual void WriteDofValues(const CellInterface& cell, const DofType dof, std::vector<int> pointIds,
27  UnstructuredGrid* grid) override;
28 
29  virtual void CellData(int cellId, std::vector<Eigen::VectorXd> values, std::string name,
30  UnstructuredGrid* grid) override;
31 
32  virtual void PointData(const CellInterface& cell, std::function<Eigen::VectorXd(Eigen::VectorXd)> f,
33  std::vector<int> pointIds, std::string name, UnstructuredGrid* grid) override;
34 
35 private:
36  std::vector<Eigen::VectorXd> mIntegrationPointCoords;
37 };
38 
39 } /* Visualize */
40 } /* NuTo */
PointHandler(std::vector< Eigen::VectorXd > ipCoords)
ctor
Definition: PointHandler.cpp:10
virtual void WriteDofValues(const CellInterface &cell, const DofType dof, std::vector< int > pointIds, UnstructuredGrid *grid) override
Write DOF values into the grid.
Definition: PointHandler.cpp:37
virtual std::unique_ptr< HandlerInterface > Clone() const override
Definition: PointHandler.cpp:21
Interface for a handler class that visualizes a single cell.
Definition: HandlerInterface.h:19
visualization of unstructured grids
Definition: UnstructuredGrid.h:18
Definition: DofType.h:8
standard abstract class for all integration types
Definition: IntegrationTypeBase.h:14
virtual void CellData(int cellId, std::vector< Eigen::VectorXd > values, std::string name, UnstructuredGrid *grid) override
Write cell data into the grid.
Definition: PointHandler.cpp:48
Definition: Exception.h:6
virtual std::vector< int > WriteGeometry(const CellInterface &cell, UnstructuredGrid *grid) override
Generate a visualize geometry for each cell and write it to the grid.
Definition: PointHandler.cpp:26
virtual void PointData(const CellInterface &cell, std::function< Eigen::VectorXd(Eigen::VectorXd)> f, std::vector< int > pointIds, std::string name, UnstructuredGrid *grid) override
Write point data into the grid.
Definition: PointHandler.cpp:57
Visualizes cell and point data only at the integration points (no visualization cells) ...
Definition: PointHandler.h:11
def Visualize(structure, file)
Definition: Truss1D2N.py:63
Definition: CellInterface.h:13