|
DelaunayTriangulation
A C++ Object Oriented data structure with algorithms that could be used to generate a Delaunay triangulation
|
Class representing a vertex of a cell. More...
#include <Vertex.hpp>

Public Member Functions | |
| Vertex (int index, int dim, IMesh *owner) | |
| Constructor populating index and owner and instantiating vec. | |
| Vertex () | |
| Default constructor. | |
| ~Vertex () | |
| Default destructor. | |
| int | getIndex () const |
| Accessor for private member index. | |
| void | setIndex (int index) |
| Mutator for private member index. | |
| const std::vector< double > & | getAttributes () const |
| Accessor for private member attributes. | |
| void | setAttributes (const std::vector< double > &attributes) |
| Mutator for private member attributes. | |
| const Vec & | getVec () const |
| Accessor for private member vec. | |
| void | setVec (const Vec &vec) |
| Mutator for private member vec. | |
| bool | operator== (const Vertex &rhs) const |
| Equality operator. | |
| bool | operator!= (const Vertex &rhs) const |
| Non-equality operator. | |
Private Attributes | |
| int | index |
| Index of the triangle from file. | |
| IMesh * | owner |
| Pointer to interface class of the Mesh the Vertex is a part of. | |
| Vec | vec |
| Vec class storing the coordinates of the vertex. | |
| std::vector< double > | attributes |
| Vector of attributes of the Vertex (16 points of precision) | |
Friends | |
| std::istream & | operator>> (std::istream &is, Vertex &vertex) |
| Input stream operator. | |
| std::ostream & | operator<< (std::ostream &os, Vertex &vertex) |
| Output stream operator. | |
| std::ofstream & | operator<< (std::ofstream &ofs, Vertex &vertex) |
| Output filestream operator. | |
Class representing a vertex of a cell.
|
inline |
| const std::vector< double > & Vertex::getAttributes | ( | ) | const |
Accessor for private member attributes.
| int Vertex::getIndex | ( | ) | const |
Accessor for private member index.
| bool Vertex::operator!= | ( | const Vertex & | rhs | ) | const |
Non-equality operator.
| rhs |
| bool Vertex::operator== | ( | const Vertex & | rhs | ) | const |
Equality operator.
| rhs |
| void Vertex::setAttributes | ( | const std::vector< double > & | attributes | ) |
Mutator for private member attributes.
| attributes | vector of vertex attributes |
| void Vertex::setIndex | ( | int | index | ) |
Mutator for private member index.
| index | index of vertex |
|
friend |
Output filestream operator.
| ofs | |
| vertex |
|
friend |
Output stream operator.
| os | |
| vertex |
|
friend |
Input stream operator.
| is | |
| vertex |