#include <ncomponent.h>
Inheritance diagram for regina::NComponent:
Public Member Functions | |
NComponent () | |
Default constructor. | |
virtual | ~NComponent () |
Default destructor. | |
unsigned long | getNumberOfTetrahedra () const |
Returns the number of tetrahedra in this component. | |
unsigned long | getNumberOfFaces () const |
Returns the number of faces in this component. | |
unsigned long | getNumberOfEdges () const |
Returns the number of edges in this component. | |
unsigned long | getNumberOfVertices () const |
Returns the number of vertices in this component. | |
unsigned long | getNumberOfBoundaryComponents () const |
Returns the number of boundary components in this component. | |
NTetrahedron * | getTetrahedron (unsigned long index) const |
Returns the requested tetrahedron in this component. | |
NFace * | getFace (unsigned long index) const |
Returns the requested face in this component. | |
NEdge * | getEdge (unsigned long index) const |
Returns the requested edge in this component. | |
NVertex * | getVertex (unsigned long index) const |
Returns the requested vertex in this component. | |
NBoundaryComponent * | getBoundaryComponent (unsigned long index) const |
Returns the requested boundary component in this component. | |
bool | isIdeal () const |
Determines if this component is ideal. | |
bool | isOrientable () const |
Determines if this component is orientable. | |
bool | isClosed () const |
Determines if this component is closed. | |
void | writeTextShort (std::ostream &out) const |
Writes this object in short text format to the given output stream. |
Components are highly temporary; once a triangulation changes, all its component objects will be deleted and new ones will be created.
|
Default constructor.
|
|
Default destructor.
|
|
Returns the requested boundary component in this component.
|
|
Returns the requested edge in this component.
|
|
Returns the requested face in this component.
|
|
Returns the number of boundary components in this component.
|
|
Returns the number of edges in this component.
|
|
Returns the number of faces in this component.
|
|
Returns the number of tetrahedra in this component.
|
|
Returns the number of vertices in this component.
|
|
Returns the requested tetrahedron in this component.
|
|
Returns the requested vertex in this component.
|
|
Determines if this component is closed. This is the case if and only if it has no boundary. Note that ideal components are not closed.
|
|
Determines if this component is ideal. This is the case if and only if it contains an ideal vertex as described by NVertex::isIdeal().
|
|
Determines if this component is orientable.
|
|
Writes this object in short text format to the given output stream. The output should fit on a single line and no newline should be written.
Implements regina::ShareableObject. |