DGtal  1.5.beta
DGtal::detail::DSSDecorator4ConcavePart< TDSS > Class Template Reference

Aim: adapter for TDSS used by FP in CONCAVE parts. Has 2 methods: More...

#include <DGtal/geometry/curves/FP.h>

Inheritance diagram for DGtal::detail::DSSDecorator4ConcavePart< TDSS >:
[legend]

Public Member Functions

 DSSDecorator4ConcavePart (TDSS &aDSS)
 
TDSS::Point firstLeaningPoint () const
 
TDSS::Point lastLeaningPoint () const
 
bool isInConvexPart () const
 
- Public Member Functions inherited from DGtal::detail::DSSDecorator< TDSS >
bool isExtendableFront () const
 
bool extendFront ()
 
bool retractBack ()
 
DSS::ConstIterator end ()
 
virtual ~DSSDecorator ()
 

Additional Inherited Members

- Public Types inherited from DGtal::detail::DSSDecorator< TDSS >
typedef TDSS DSS
 
- Protected Attributes inherited from DGtal::detail::DSSDecorator< TDSS >
TDSS * myDSS
 

Detailed Description

template<typename TDSS>
class DGtal::detail::DSSDecorator4ConcavePart< TDSS >

Aim: adapter for TDSS used by FP in CONCAVE parts. Has 2 methods:

They respectively return the first and last LOWER leaning point of the underlying instance of TDSS.

Template Parameters
TDSStype devoted to DSS recognition Must have a nested type 'Point' and four accessors: Uf(), Ul(), Lf(), Ll()
See also
DSSDecorator FP

Definition at line 211 of file FP.h.

Constructor & Destructor Documentation

◆ DSSDecorator4ConcavePart()

template<typename TDSS >
DGtal::detail::DSSDecorator4ConcavePart< TDSS >::DSSDecorator4ConcavePart ( TDSS &  aDSS)
inline

Constructor

Parameters
aDSSthe DSS to decorate

Definition at line 218 of file FP.h.

219  {
220  this->myDSS = &aDSS;
221  }

References DGtal::detail::DSSDecorator< TDSS >::myDSS.

Member Function Documentation

◆ firstLeaningPoint()

template<typename TDSS >
TDSS::Point DGtal::detail::DSSDecorator4ConcavePart< TDSS >::firstLeaningPoint ( ) const
inlinevirtual

First leaning point accessor

Returns
the first lower leaning point

Implements DGtal::detail::DSSDecorator< TDSS >.

Definition at line 226 of file FP.h.

227  {
228  return this->myDSS->Lf();
229  }

References DGtal::detail::DSSDecorator< TDSS >::myDSS.

◆ isInConvexPart()

template<typename TDSS >
bool DGtal::detail::DSSDecorator4ConcavePart< TDSS >::isInConvexPart ( ) const
inlinevirtual

Tells whether it adapts a DSS computer for convex parts or not

Returns
'false'

Implements DGtal::detail::DSSDecorator< TDSS >.

Definition at line 242 of file FP.h.

242 { return false; }

◆ lastLeaningPoint()

template<typename TDSS >
TDSS::Point DGtal::detail::DSSDecorator4ConcavePart< TDSS >::lastLeaningPoint ( ) const
inlinevirtual

Last leaning point accessor

Returns
the last lower leaning point

Implements DGtal::detail::DSSDecorator< TDSS >.

Definition at line 234 of file FP.h.

235  {
236  return this->myDSS->Ll();
237  }

References DGtal::detail::DSSDecorator< TDSS >::myDSS.


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