|
DGtal 2.2.0
|
Aim: Represent adjacencies between surfel elements, telling if it follows an interior to exterior ordering or exterior to interior ordering. It allows tracking of boundaries and of surfaces. More...
#include <DGtal/topology/SurfelAdjacency.h>
Public Member Functions | |
| ~SurfelAdjacency () | |
| SurfelAdjacency (bool int2ext) | |
| SurfelAdjacency (const SurfelAdjacency &other) | |
| SurfelAdjacency & | operator= (const SurfelAdjacency &other) |
| void | setAdjacency (Dimension i, Dimension j, bool int2ext) |
| bool | getAdjacency (Dimension i, Dimension j) const |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
Private Attributes | |
| boost::array< bool, dim *dim > | myInt2Ext |
Aim: Represent adjacencies between surfel elements, telling if it follows an interior to exterior ordering or exterior to interior ordering. It allows tracking of boundaries and of surfaces.
Description of class 'SurfelAdjacency'
| dim | the number of dimension of the space. |
NB: backported from ImaGene.
Definition at line 65 of file SurfelAdjacency.h.
| DGtal::SurfelAdjacency< dim >::~SurfelAdjacency | ( | ) |
Destructor.
| DGtal::SurfelAdjacency< dim >::SurfelAdjacency | ( | bool | int2ext | ) |
Constructor.
| int2ext | when 'true', the surfel adjacency is interior to exterior for any coordinate pair, when 'false', it is exterior to interior for any one. |
NB:
| DGtal::SurfelAdjacency< dim >::SurfelAdjacency | ( | const SurfelAdjacency< dim > & | other | ) |
Copy constructor.
| other | the object to clone. |
| bool DGtal::SurfelAdjacency< dim >::getAdjacency | ( | Dimension | i, |
| Dimension | j ) const |
Returns whether a coordinate pair is interior (true) or exterior (false) in the bel adjacency.
| i | first coordinate. |
| j | second coordinate ('j != i'). |
| bool DGtal::SurfelAdjacency< dim >::isValid | ( | ) | const |
Checks the validity/consistency of the object.
| SurfelAdjacency & DGtal::SurfelAdjacency< dim >::operator= | ( | const SurfelAdjacency< dim > & | other | ) |
Assignment.
| other | the object to copy. |
| void DGtal::SurfelAdjacency< dim >::selfDisplay | ( | std::ostream & | out | ) | const |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
| void DGtal::SurfelAdjacency< dim >::setAdjacency | ( | Dimension | i, |
| Dimension | j, | ||
| bool | int2ext ) |
Set a coordinate pair as interior to exterior or exterior to interior in the surfel adjacency.
| i | first coordinate. |
| j | second coordinate (j != i). |
| int2ext | when 'true', the surfel adjacency is interior to exterior for the coordinate pair '(i,j)', when 'false', it is exterior to interior. |
|
private |
Memorizes if the surfel adjacency is interior to exterior (true) or exterior to interior (false) for any pair (i,j). The index of the pair (i,j) is 'i * m_ks.dim() + j'.
Definition at line 147 of file SurfelAdjacency.h.