DGtal  0.9.4beta
Public Member Functions | Data Fields
DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State Struct Reference

#include <DGtal/topology/UmbrellaComputer.h>

Public Member Functions

 State ()
 
 State (const Surfel &_surfel, Dimension _k, bool _epsilon, Dimension _j)
 
bool operator== (const State &other) const
 
bool operator< (const State &other) const
 

Data Fields

Surfel surfel
 
Dimension k
 
bool epsilon
 
Dimension j
 

Detailed Description

template<typename TDigitalSurfaceTracker>
struct DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State

Stores (the main part of) the state when visiting an umbrella.

See also
UmbrellaComputer

Definition at line 105 of file UmbrellaComputer.h.

Constructor & Destructor Documentation

template<typename TDigitalSurfaceTracker>
DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::State ( )
inline

Definition at line 115 of file UmbrellaComputer.h.

115 {}
template<typename TDigitalSurfaceTracker>
DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::State ( const Surfel _surfel,
Dimension  _k,
bool  _epsilon,
Dimension  _j 
)
inline

Definition at line 116 of file UmbrellaComputer.h.

118  : surfel( _surfel ), k( _k ), epsilon( _epsilon ), j( _j )
119  {}
bool epsilon
Orientation to find separator (true = positively along k-axis)
Dimension k
Direction to find separator, k in sDirs(surfel).
Dimension j
Track direction (j != k), j in sDirs(surfel).
Surfel surfel
Current surfel.

Member Function Documentation

template<typename TDigitalSurfaceTracker>
bool DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::operator< ( const State other) const
inline

Definition at line 127 of file UmbrellaComputer.h.

References DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::epsilon, DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::j, DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::k, and DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::surfel.

128  {
129  return ( surfel < other.surfel )
130  || ( ( surfel == other.surfel )
131  && ( ( k < other.k )
132  || ( ( k == other.k )
133  && ( ( epsilon < other.epsilon )
134  || ( ( epsilon == other.epsilon)
135  && ( j < other.j ) ) ) ) ) );
136  }
bool epsilon
Orientation to find separator (true = positively along k-axis)
Dimension k
Direction to find separator, k in sDirs(surfel).
Dimension j
Track direction (j != k), j in sDirs(surfel).
Surfel surfel
Current surfel.
template<typename TDigitalSurfaceTracker>
bool DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::operator== ( const State other) const
inline

Definition at line 120 of file UmbrellaComputer.h.

References DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::epsilon, DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::j, DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::k, and DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::surfel.

121  {
122  return ( surfel == other.surfel )
123  && ( k == other.k )
124  && ( epsilon == other.epsilon )
125  && ( j == other.j );
126  }
bool epsilon
Orientation to find separator (true = positively along k-axis)
Dimension k
Direction to find separator, k in sDirs(surfel).
Dimension j
Track direction (j != k), j in sDirs(surfel).
Surfel surfel
Current surfel.

Field Documentation

template<typename TDigitalSurfaceTracker>
bool DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::epsilon

Orientation to find separator (true = positively along k-axis)

Definition at line 112 of file UmbrellaComputer.h.

Referenced by DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::operator<(), and DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::operator==().

template<typename TDigitalSurfaceTracker>
Dimension DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::j
template<typename TDigitalSurfaceTracker>
Dimension DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::k
template<typename TDigitalSurfaceTracker>
Surfel DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::surfel

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