Node class for data structures (Inherits from HandleId) More...
#include <ttl/halfedge/HeTriang.h>
Public Member Functions | |
Node () | |
Default constructor. | |
Node (double x, double y, double z=0.0) | |
Constructor. | |
~Node () | |
Destructor. | |
void | init (double x, double y, double z) |
Initialize the position. | |
const double & | x () const |
Returns the x-coordinate. | |
const double & | y () const |
Returns the y-coordinate. | |
const double & | z () const |
Returns the z-coordinate. | |
const int & | id () const |
Returns the id (TTL_USE_NODE_ID must be defined). | |
void | setFlag (bool flag) |
Sets the flag (TTL_USE_NODE_FLAG must be defined). | |
const bool & | getFlag () const |
Returns the flag (TTL_USE_NODE_FLAG must be defined). | |
Private Attributes | |
double | x_ |
double | y_ |
double | z_ |
int | id_ |
A unique id for each node (TTL_USE_NODE_ID must be defined). | |
bool | flag_ |
TTL_USE_NODE_FLAG must be defined. | |
Static Private Attributes | |
static int | id_count |
TTL_USE_NODE_ID must be defined. |
Node class for data structures (Inherits from HandleId)
Definition at line 66 of file HeTriang.h.
hed::Node::Node | ( | ) | [inline] |
Default constructor.
Definition at line 87 of file HeTriang.h.
References init().
00087 { init(0, 0, 0); }
hed::Node::Node | ( | double | x, | |
double | y, | |||
double | z = 0.0 | |||
) | [inline] |
hed::Node::~Node | ( | ) | [inline] |
const bool& hed::Node::getFlag | ( | ) | const [inline] |
Returns the flag (TTL_USE_NODE_FLAG must be defined).
Definition at line 124 of file HeTriang.h.
References flag_.
00124 { return flag_; }
const int& hed::Node::id | ( | ) | const [inline] |
Returns the id (TTL_USE_NODE_ID must be defined).
Definition at line 116 of file HeTriang.h.
00116 { return id_; }
void hed::Node::init | ( | double | x, | |
double | y, | |||
double | z | |||
) | [inline] |
void hed::Node::setFlag | ( | bool | flag | ) | [inline] |
Sets the flag (TTL_USE_NODE_FLAG must be defined).
Definition at line 121 of file HeTriang.h.
00121 { flag_ = flag; }
const double& hed::Node::x | ( | ) | const [inline] |
Returns the x-coordinate.
Definition at line 106 of file HeTriang.h.
References x_.
Referenced by hed::TTLtraits::crossProduct2d(), hed::TTLtraits::orient2d(), hed::TTLtraits::scalarProduct2d(), and hed::Dart::x().
00106 { return x_; }
const double& hed::Node::y | ( | ) | const [inline] |
Returns the y-coordinate.
Definition at line 109 of file HeTriang.h.
References y_.
Referenced by hed::TTLtraits::crossProduct2d(), hed::TTLtraits::orient2d(), hed::TTLtraits::scalarProduct2d(), and hed::Dart::y().
00109 { return y_; }
const double& hed::Node::z | ( | ) | const [inline] |
Returns the z-coordinate.
Definition at line 112 of file HeTriang.h.
References z_.
Referenced by Node().
00112 { return z_; }
bool hed::Node::flag_ [private] |
TTL_USE_NODE_FLAG must be defined.
Definition at line 82 of file HeTriang.h.
Referenced by getFlag().
int hed::Node::id_ [private] |
A unique id for each node (TTL_USE_NODE_ID must be defined).
Definition at line 77 of file HeTriang.h.
Referenced by init().
int hed::Node::id_count [static, private] |
double hed::Node::x_ [private] |
Definition at line 73 of file HeTriang.h.
double hed::Node::y_ [private] |
Definition at line 73 of file HeTriang.h.
double hed::Node::z_ [private] |
Definition at line 73 of file HeTriang.h.