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. More... | |
Vertex () | |
Default constructor. | |
~Vertex () | |
Default destructor. | |
int | getIndex () const |
Accessor for private member index. More... | |
void | setIndex (int index) |
Mutator for private member index. More... | |
const std::vector< double > & | getAttributes () const |
Accessor for private member attributes. More... | |
void | setAttributes (const std::vector< double > &attributes) |
Mutator for private member attributes. More... | |
const Vec & | getVec () const |
Accessor for private member vec. More... | |
void | setVec (const Vec &vec) |
Mutator for private member vec. More... | |
bool | operator== (const Vertex &rhs) const |
Equality operator. More... | |
bool | operator!= (const Vertex &rhs) const |
Non-equality operator. More... | |
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. More... | |
std::ostream & | operator<< (std::ostream &os, Vertex &vertex) |
Output stream operator. More... | |
std::ofstream & | operator<< (std::ofstream &ofs, Vertex &vertex) |
Output filestream operator. More... | |
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 |