![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Allows to perform labelling by creating node and connecting them. More...
#include <Universe.h>

Public Member Functions | |
| Universe (int elements) | |
| ~Universe () | |
| void | initialize () |
| Initialize all elements to the default values. More... | |
| int | find (int x) |
| void | join (int x, int y) |
| void | addEdge (int x, int y) |
| int | size (int x) const |
Public Attributes | |
| uni_elt * | elts |
| int | num |
| int | allelems |
Allows to perform labelling by creating node and connecting them.
Definition at line 24 of file Universe.h.
|
explicit |
Definition at line 11 of file Universe.cpp.
References allelems, elts, initialize(), and num.
| cloudViewer::Universe::~Universe | ( | ) |
Definition at line 27 of file Universe.cpp.
References elts.
| void cloudViewer::Universe::addEdge | ( | int | x, |
| int | y | ||
| ) |
Definition at line 53 of file Universe.cpp.
| int cloudViewer::Universe::find | ( | int | x | ) |
Retrieve the smallest index of the elements connected to x.
Definition at line 29 of file Universe.cpp.
References elts, and cloudViewer::uni_elt::p.
Referenced by addEdge().
| void cloudViewer::Universe::initialize | ( | ) |
Initialize all elements to the default values.
Definition at line 18 of file Universe.cpp.
References allelems, elts, num, cloudViewer::uni_elt::p, cloudViewer::uni_elt::rank, and cloudViewer::uni_elt::size.
Referenced by Universe().
| void cloudViewer::Universe::join | ( | int | x, |
| int | y | ||
| ) |
Definition at line 40 of file Universe.cpp.
References elts, num, cloudViewer::uni_elt::p, cloudViewer::uni_elt::rank, and cloudViewer::uni_elt::size.
Referenced by addEdge().
|
inline |
Definition at line 36 of file Universe.h.
| int cloudViewer::Universe::allelems |
Definition at line 40 of file Universe.h.
Referenced by initialize(), and Universe().
| uni_elt* cloudViewer::Universe::elts |
Definition at line 39 of file Universe.h.
Referenced by find(), initialize(), join(), Universe(), and ~Universe().
| int cloudViewer::Universe::num |
Definition at line 40 of file Universe.h.
Referenced by initialize(), join(), and Universe().