NuTo
Numerics Tool
Cell.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <vector>
4 #include <Eigen/Core>
6 
7 namespace NuTo
8 {
9 namespace Visualize
10 {
12 class Cell
13 {
14 public:
18  Cell(std::vector<int> pointIds, eCellTypes cellType);
19 
22  int GetNumPoints() const;
23 
26  const std::vector<int>& GetPointIds() const;
27 
29  void SetPointIds(std::vector<int> pointIds);
30 
33  eCellTypes GetCellType() const;
34 
37  void SetData(int dataIndex, Eigen::VectorXd data);
38 
40  const Eigen::VectorXd& GetData(int dataIndex) const;
41 
42 protected:
43  std::vector<Eigen::VectorXd> mData;
44  std::vector<int> mPointIds;
46 };
47 } // namespace Visualize
48 } // namespace NuTo
Cell(std::vector< int > pointIds, eCellTypes cellType)
constructor
Definition: Cell.cpp:6
class for storing visualization cells
Definition: Cell.h:12
const std::vector< int > & GetPointIds() const
return point id&#39;s
Definition: Cell.cpp:17
const Eigen::VectorXd & GetData(int dataIndex) const
Definition: Cell.cpp:32
void SetPointIds(std::vector< int > pointIds)
setter for mPointIds
Definition: Cell.cpp:22
eCellTypes mCellType
Definition: Cell.h:45
void SetData(int dataIndex, Eigen::VectorXd data)
set tensor data
Definition: Cell.cpp:39
std::vector< int > mPointIds
Definition: Cell.h:44
std::vector< Eigen::VectorXd > mData
Definition: Cell.h:43
Definition: Exception.h:6
eCellTypes GetCellType() const
returns the corresponding cell type
Definition: Cell.cpp:27
int GetNumPoints() const
return number of cell points
Definition: Cell.cpp:12
eCellTypes
Definition: VisualizeEnum.h:6
def Visualize(structure, file)
Definition: Truss1D2N.py:63