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

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

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

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

Public Member Functions

 DSSDecorator4ConvexPart (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::DSSDecorator4ConvexPart< TDSS >

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

They respectively return the first and last UPPER 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 160 of file FP.h.

Constructor & Destructor Documentation

◆ DSSDecorator4ConvexPart()

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

Constructor

Parameters
aDSSthe DSS to decorate

Definition at line 167 of file FP.h.

168  {
169  this->myDSS = &aDSS;
170  }

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

Member Function Documentation

◆ firstLeaningPoint()

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

First leaning point accessor

Returns
the first upper leaning point

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

Definition at line 175 of file FP.h.

176  {
177  return this->myDSS->Uf();
178  }

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

◆ isInConvexPart()

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

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

Returns
'true'

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

Definition at line 191 of file FP.h.

191 { return true; }

◆ lastLeaningPoint()

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

Last leaning point accessor

Returns
the last upper leaning point

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

Definition at line 183 of file FP.h.

184  {
185  return this->myDSS->Ul();
186  }

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


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