File failed to load: https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.3/config/TeX-MML-AM_CHTML/MathJax.js
DGtal 2.0.0
DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc Struct Reference

#include <DGtal/topology/DigitalSurface.h>

Public Member Functions

 Arc ()
 Arc (const Vertex &theTail, Dimension aK, bool aEpsilon)
bool operator== (const Arc &other) const
bool operator< (const Arc &other) const
bool operator!= (const Arc &other) const

Data Fields

Vertex base
 base surfel
Dimension k
 direction toward the head surfel
bool epsilon
 orientation toward the head surfel

Detailed Description

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

Defines an arc on the digital surface, i.e. an arrow between two adjacent surfels.

Definition at line 238 of file DigitalSurface.h.

Constructor & Destructor Documentation

◆ Arc() [1/2]

template<typename TDigitalSurfaceContainer>
DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::Arc ( )
inline

Default constructor. The arc is invalid.

Definition at line 245 of file DigitalSurface.h.

246 : base(), k( 0 ), epsilon( false ) {}
Dimension k
direction toward the head surfel
bool epsilon
orientation toward the head surfel

References base, epsilon, and k.

Referenced by operator!=(), operator<(), and operator==().

◆ Arc() [2/2]

template<typename TDigitalSurfaceContainer>
DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::Arc ( const Vertex & theTail,
Dimension aK,
bool aEpsilon )
inline

Definition at line 247 of file DigitalSurface.h.

248 : base( theTail ), k( aK ), epsilon( aEpsilon ) {}
Aim: Represents a set of n-1-cells in a nD space, together with adjacency relation between these cell...

References base, epsilon, and k.

Member Function Documentation

◆ operator!=()

template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::operator!= ( const Arc & other) const
inline

Definition at line 262 of file DigitalSurface.h.

263 {
264 return ( base != other.base )
265 || ( k != other.k ) || ( epsilon != other.epsilon );
266 }

References Arc(), base, epsilon, and k.

◆ operator<()

template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::operator< ( const Arc & other) const
inline

Definition at line 254 of file DigitalSurface.h.

255 {
256 return ( base < other.base )
257 || ( ( base == other.base )
258 && ( ( k < other.k )
259 || ( ( k == other.k )
260 && ( epsilon < other.epsilon ) ) ) );
261 }

References Arc(), base, epsilon, and k.

◆ operator==()

template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::operator== ( const Arc & other) const
inline

Definition at line 249 of file DigitalSurface.h.

250 {
251 return ( base == other.base )
252 && ( k == other.k ) && ( epsilon == other.epsilon );
253 }

References Arc(), base, epsilon, and k.

Field Documentation

◆ base

template<typename TDigitalSurfaceContainer>
Vertex DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::base

base surfel

Definition at line 239 of file DigitalSurface.h.

Referenced by Arc(), Arc(), operator!=(), operator<(), and operator==().

◆ epsilon

template<typename TDigitalSurfaceContainer>
bool DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::epsilon

orientation toward the head surfel

Definition at line 241 of file DigitalSurface.h.

Referenced by Arc(), Arc(), operator!=(), operator<(), and operator==().

◆ k

template<typename TDigitalSurfaceContainer>
Dimension DGtal::DigitalSurface< TDigitalSurfaceContainer >::Arc::k

direction toward the head surfel

Definition at line 240 of file DigitalSurface.h.

Referenced by Arc(), Arc(), operator!=(), operator<(), and operator==().


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