#include <vertexList.hh>
Public Types | |
enum | vtxInfo { COORD = 0 , EDGES = 1 , FACES = 2 , VOLUMES = 4 , ALL = 7 } |
typedef std::unordered_map< uint, VertexInfo >::iterator | iterator |
typedef std::unordered_map< uint, VertexInfo >::const_iterator | const_iterator |
Public Member Functions | |
VertexList (enum vtxInfo info=ALL) | |
VertexList (const VertexList &vl) | |
Copy constructor. | |
VertexInfo * | vertex (uint v) |
VertexInfo * | addVertex (uint v, concepts::Real3d coord) |
uint | size () const |
Returns the size of the list. | |
iterator | begin () |
Beginning of the list. | |
const_iterator | begin () const |
iterator | end () |
End of the list. | |
const_iterator | end () const |
iterator | find (uint k) |
Finds a vertex in the list. | |
const_iterator | find (uint k) const |
virtual void | operator() (const concepts::Cell &cell) |
virtual void | operator() (const concepts::Element< Real > &elm) |
enum vtxInfo | vertexInfo () const |
Returns vtxInfo_. | |
virtual void | operator() (const Element< Real > &elm)=0 |
Protected Member Functions | |
virtual std::ostream & | info (std::ostream &os) const |
Returns information in an output stream. | |
Class containing a list of vertices.
Adding a vertex should be done in three steps:
Definition at line 97 of file vertexList.hh.
typedef std::unordered_map<uint,VertexInfo>::const_iterator graphics::VertexList::const_iterator |
Definition at line 101 of file vertexList.hh.
typedef std::unordered_map<uint,VertexInfo>::iterator graphics::VertexList::iterator |
Definition at line 99 of file vertexList.hh.
Allows to chose if all information should be stored or only some parts. To generate an image of the mesh using MeshDX, only the coordinates are needed.
Definition at line 109 of file vertexList.hh.
|
inline |
Constructor.
Definition at line 113 of file vertexList.hh.
|
inlinevirtual |
Definition at line 118 of file vertexList.hh.
VertexInfo * graphics::VertexList::addVertex | ( | uint | v, |
concepts::Real3d | coord | ||
) |
Add a new vertex.
v | Key of the vertex |
coord | Coordinates of the vertex |
|
inline |
Beginning of the list.
Definition at line 137 of file vertexList.hh.
|
inline |
Definition at line 138 of file vertexList.hh.
|
inline |
End of the list.
Definition at line 141 of file vertexList.hh.
|
inline |
Definition at line 142 of file vertexList.hh.
|
inline |
Finds a vertex in the list.
Definition at line 145 of file vertexList.hh.
|
inline |
Definition at line 146 of file vertexList.hh.
|
protectedvirtual |
Returns information in an output stream.
Reimplemented from concepts::CellPostprocess< Real >.
|
virtual |
Application operator. Adds the vertex of this element to the list and updates the connectivity information of the vertex.
cell | Element to be considered |
Implements concepts::CellPostprocess< Real >.
|
virtual |
Application operator. Adds the vertex of this element to the list and updates the connectivity information of the vertex.
elm | Element to be considered |
|
pure virtualinherited |
Application operator. This application operator has to be overloaded to post process a space.
elm | Current element |
Implemented in concepts::CellFaceIntegral< F >, and concepts::CellEdgeIntegral< F >.
|
inline |
Returns the size of the list.
Definition at line 134 of file vertexList.hh.
VertexInfo * graphics::VertexList::vertex | ( | uint | v | ) |
Looks for the vertex with the given key.
v | Key of the vertex |
|
inline |
Returns vtxInfo_.
Definition at line 163 of file vertexList.hh.