Class containing a list of vertices. More...
#include <vertexList.hh>


Public Types | |
| typedef __gnu_cxx::hash_map < uint, VertexInfo > ::const_iterator | const_iterator |
| typedef __gnu_cxx::hash_map < uint, VertexInfo >::iterator | iterator |
| enum | vtxInfo { COORD = 0, EDGES = 1, FACES = 2, VOLUMES = 4, ALL = 7 } |
| Allows to chose if all information should be stored or only some parts. More... | |
Public Member Functions | |
| VertexInfo * | addVertex (uint v, concepts::Real3d coord) |
| Add a new vertex. | |
| const_iterator | begin () const |
| iterator | begin () |
| Beginning of the list. | |
| 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 Element< Real > &elm)=0 |
| Application operator. | |
| virtual void | operator() (const concepts::Cell &cell) |
| Application operator. | |
| virtual void | operator() (const concepts::Element< Real > &elm) |
| Application operator. | |
| uint | size () const |
| Returns the size of the list. | |
| VertexInfo * | vertex (uint v) |
| Looks for the vertex with the given key. | |
| enum vtxInfo | vertexInfo () const |
| Returns vtxInfo_. | |
| VertexList (const VertexList &vl) | |
| Copy constructor. | |
| VertexList (enum vtxInfo info=ALL) | |
| Constructor. | |
| virtual | ~VertexList () |
Protected Member Functions | |
| virtual std::ostream & | info (std::ostream &os) const |
| Returns information in an output stream. | |
Private Attributes | |
| __gnu_cxx::hash_map< uint, VertexInfo > | vertices_ |
| List of vertices. | |
| enum vtxInfo | vtxInfo_ |
| What information about the vertices should be stored. | |
Class containing a list of vertices.
Adding a vertex should be done in three steps:
Definition at line 95 of file vertexList.hh.
| typedef __gnu_cxx::hash_map<uint, VertexInfo>::const_iterator graphics::VertexList::const_iterator |
Definition at line 99 of file vertexList.hh.
| typedef __gnu_cxx::hash_map<uint, VertexInfo>::iterator graphics::VertexList::iterator |
Definition at line 97 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 107 of file vertexList.hh.
| graphics::VertexList::VertexList | ( | enum vtxInfo | info = ALL | ) | [inline] |
Constructor.
Definition at line 111 of file vertexList.hh.
| graphics::VertexList::VertexList | ( | const VertexList & | vl | ) |
Copy constructor.
| virtual graphics::VertexList::~VertexList | ( | ) | [inline, virtual] |
Definition at line 116 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 |
| iterator graphics::VertexList::begin | ( | ) | [inline] |
Beginning of the list.
Definition at line 135 of file vertexList.hh.
| const_iterator graphics::VertexList::begin | ( | ) | const [inline] |
Definition at line 136 of file vertexList.hh.
| iterator graphics::VertexList::end | ( | ) | [inline] |
End of the list.
Definition at line 139 of file vertexList.hh.
| const_iterator graphics::VertexList::end | ( | ) | const [inline] |
Definition at line 140 of file vertexList.hh.
| iterator graphics::VertexList::find | ( | uint | k | ) | [inline] |
Finds a vertex in the list.
Definition at line 143 of file vertexList.hh.
| const_iterator graphics::VertexList::find | ( | uint | k | ) | const [inline] |
Definition at line 144 of file vertexList.hh.
| virtual std::ostream& graphics::VertexList::info | ( | std::ostream & | os | ) | const [protected, virtual] |
Returns information in an output stream.
Reimplemented from concepts::CellPostprocess< Real >.
| virtual void graphics::VertexList::operator() | ( | const concepts::Cell & | cell | ) | [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 void concepts::CellPostprocess< Real >::operator() | ( | const Element< Real > & | elm | ) | [pure virtual, inherited] |
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 >.
| virtual void graphics::VertexList::operator() | ( | const concepts::Element< Real > & | elm | ) | [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 |
| uint graphics::VertexList::size | ( | ) | const [inline] |
Returns the size of the list.
Definition at line 132 of file vertexList.hh.
| VertexInfo* graphics::VertexList::vertex | ( | uint | v | ) |
Looks for the vertex with the given key.
| v | Key of the vertex |
| enum vtxInfo graphics::VertexList::vertexInfo | ( | ) | const [inline] |
Returns vtxInfo_.
Definition at line 161 of file vertexList.hh.
__gnu_cxx::hash_map<uint, VertexInfo> graphics::VertexList::vertices_ [private] |
List of vertices.
Definition at line 166 of file vertexList.hh.
enum vtxInfo graphics::VertexList::vtxInfo_ [private] |
What information about the vertices should be stored.
Definition at line 169 of file vertexList.hh.