matlabBinaryMeshGraphics.hh

Go to the documentation of this file.
1 
6 #ifndef matlab_binary_mesh_graphics_hh
7 #define matlab_binary_mesh_graphics_hh
8 
9 #include "basics/outputMatlab.hh"
12 #include "matrixBasis.hh"
13 #include "denseMatrixGraphics.hh"
14 
15 namespace graphics {
16 
17  // ************************************************ MatlabBinaryMeshGraphics **
18 
20  public:
21 
24 
27 
34  template<class G>
35  static void writeCoord(const concepts::Real3d point,
37 
49  template<class G>
50  static void writeMesh(const concepts::Cell& cell,
52  bool boundary = false, bool coord = true);
53 
58  template<class G>
59  static void writeAttributes(const concepts::Connector& cntr,
61 
62  private:
63 
67  template<class G>
68  static void writeMesh_(const concepts::QuadNd& quad,
69  const concepts::Array<uint>& np,
71  bool boundary, bool coord);
72 
77  template<class G>
78  static void writeMesh_(const concepts::Hexahedron3d& hexa,
79  const concepts::Array<uint>& np,
81  bool boundary, bool coord);
82 
83  template<class G>
84  static void writeFaceMesh_(const concepts::Array<uint>& np,
87 
88  template<class G>
91  const concepts::Hexahedron3d& hexa);
92 
93  template<class G>
94  static void writeEdgeMesh3d_(const concepts::Array<uint>& np,
97 
101  template<class G>
102  static void writeMesh_(const concepts::InfiniteQuad2d& quad,
103  const concepts::Array<uint>& np,
105  bool boundary, bool coord);
106 
107  template<class G>
108  static void writeMesh_(const concepts::EdgeNd& cell,
109  const concepts::Array<uint>& np,
111  bool boundary, bool coord);
112  };
113 
114 } // namespace graphics
115 
116 #endif // matlab_binary_mesh_graphics_hh
static void writeEdgeMesh3d_(const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc)
static void writeCoord(const concepts::Real3d point, MatrixSpaceOutputCell< G > *bdc)
Writes the coordinates in data and increases the counter indexOfPoints.
static void writeMesh_(const concepts::Hexahedron3d &hexa, const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc, bool boundary, bool coord)
Internal function that writes the mesh data of a given concepts::Hexahedron3d in a given MatrixSpaceO...
MatlabBinaryMeshGraphics()
Default Constructor.
A 3D cell: hexahedron.
Definition: cell3D.hh:317
A cell in a mesh consist of topological information (neighbours, connectivity, orientation) and geome...
Definition: cell.hh:39
static void writeAttributes(const concepts::Connector &cntr, MatrixSpaceOutputCell< G > &bdc)
Writes given Cell and Vertex attributes in a given MatrixSpaceOutputCell.
static void writeMesh(const concepts::Cell &cell, MatrixSpaceOutputCell< G > *bdc, const concepts::Array< uint > &np, bool boundary=false, bool coord=true)
Writes the mesh data of a given concepts::Cell in a given MatrixSpaceOutputCell.
static void writeMesh_(const concepts::QuadNd &quad, const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc, bool boundary, bool coord)
Internal function that writes the mesh data of a given concepts::QuadNd in a given MatrixSpaceOutputC...
Graphics.
Definition: basis.hh:33
Base class for a quadrilateral in any dimension.
Definition: cell2D.hh:187
Class that collects graphical informations about a given space in a set of ElementMatrices.
Definition: matrixBasis.hh:160
virtual ~MatlabBinaryMeshGraphics()
Nothing to do.
static void writeMesh_(const concepts::EdgeNd &cell, const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc, bool boundary, bool coord)
static void writeMesh_(const concepts::InfiniteQuad2d &quad, const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc, bool boundary, bool coord)
Internal function that writes the mesh data of a given concepts::InfiniteQuad2d in a given MatrixSpac...
A 2D cell: infinite quadrilateral.
Definition: cell2D.hh:610
A 1D cell in any dimension: edge.
Definition: cell1D.hh:32
static void writeFaceAttributes_(const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc, const concepts::Hexahedron3d &hexa)
Class that hold and manage a std::map with concepts::ElementMatrices for graphical output,...
An abstract class for elements of the topology.
Definition: connector.hh:85
static void writeFaceMesh_(const concepts::Array< uint > &np, graphics::DenseMatrixCollection< G > &map, MatrixSpaceOutputCell< G > *&bdc)
Page URL: http://wiki.math.ethz.ch/bin/view/Concepts/WebHome
21 August 2020
© 2020 Eidgenössische Technische Hochschule Zürich