DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions | Data Fields
DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State Struct Reference

#include <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.

{}
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.

: surfel( _surfel ), k( _k ), epsilon( _epsilon ), j( _j )
{}

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.

{
return ( surfel < other.surfel )
|| ( ( surfel == other.surfel )
&& ( ( k < other.k )
|| ( ( k == other.k )
&& ( ( epsilon < other.epsilon )
|| ( ( epsilon == other.epsilon)
&& ( j < other.j ) ) ) ) ) );
}
template<typename TDigitalSurfaceTracker>
bool DGtal::UmbrellaComputer< TDigitalSurfaceTracker >::State::operator== ( const State other) const
inline

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: