DGtal
0.6.devel
|
#include <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.
|
inline |
|
inline |
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:
Definition at line 51 of file SurfelAdjacency.ih.
References DGtal::SurfelAdjacency< dim >::myInt2Ext.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 64 of file SurfelAdjacency.ih.
|
inline |
Returns whether a coordinate pair is interior (true) or exterior (false) in the bel adjacency.
i | first coordinate. |
j | second coordinate ('j != i'). |
Definition at line 94 of file SurfelAdjacency.ih.
|
inline |
Checks the validity/consistency of the object.
Definition at line 112 of file SurfelAdjacency.ih.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 73 of file SurfelAdjacency.ih.
References DGtal::SurfelAdjacency< dim >::myInt2Ext.
|
inline |
Writes/Displays the object on an output stream.
out | the output stream where the object is written. |
Definition at line 103 of file SurfelAdjacency.ih.
|
inline |
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. |
Definition at line 84 of file SurfelAdjacency.ih.
|
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.
Referenced by DGtal::SurfelAdjacency< dim >::operator=(), and DGtal::SurfelAdjacency< dim >::SurfelAdjacency().