DGtal  0.9.3beta
Public Member Functions | Data Fields
DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face Struct Reference

#include <DGtal/topology/DigitalSurface.h>

Public Member Functions

 Face (const UmbrellaState &aState, unsigned int nb, bool aIsClosed)
 
bool isClosed () const
 
bool operator== (const Face &other) const
 
bool operator< (const Face &other) const
 

Data Fields

UmbrellaState state
 
unsigned int nbVertices
 
bool closed
 

Detailed Description

template<typename TDigitalSurfaceContainer>
struct DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face

Defines a face on the digital surface, i.e. an umbrella (open or closed) around a pivot cell (n-3-cell). To be able to compare faces, the face is characterized by one of its possible states. If the face is closed, the representative state is the smallest one. If the face is open, the representative state is the first (applying previous() does not move).

Definition at line 259 of file DigitalSurface.h.

Constructor & Destructor Documentation

template<typename TDigitalSurfaceContainer>
DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::Face ( const UmbrellaState aState,
unsigned int  nb,
bool  aIsClosed 
)
inline

Definition at line 264 of file DigitalSurface.h.

266  : state( aState ), nbVertices( nb ), closed( aIsClosed )
267  {}
bool closed
tells if the face is closed or open.
unsigned int nbVertices
number of vertices incident to face.

Member Function Documentation

template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::isClosed ( ) const
inline

Definition at line 268 of file DigitalSurface.h.

References DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::closed.

269  { return closed; }
bool closed
tells if the face is closed or open.
template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::operator< ( const Face other) const
inline

Definition at line 274 of file DigitalSurface.h.

References DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::state.

275  {
276  return state < other.state;
277  }
template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::operator== ( const Face other) const
inline

Definition at line 270 of file DigitalSurface.h.

References DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::state.

271  {
272  return state == other.state;
273  }

Field Documentation

template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::closed

tells if the face is closed or open.

Definition at line 263 of file DigitalSurface.h.

Referenced by DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::isClosed().

template<typename TDigitalSurfaceContainer>
unsigned int DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::nbVertices

number of vertices incident to face.

Definition at line 262 of file DigitalSurface.h.

template<typename TDigitalSurfaceContainer>
UmbrellaState DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::state

stores a state from which the whole umbrella can be recomputed.

Definition at line 260 of file DigitalSurface.h.

Referenced by DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::operator<(), and DGtal::DigitalSurface< TDigitalSurfaceContainer >::Face::operator==().


The documentation for this struct was generated from the following file: