DGtal  0.9.3beta
Public Member Functions
DGtal::detail::DSSDecorator4ConcavePart< TDSS > Class Template Reference

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

Inheritance diagram for DGtal::detail::DSSDecorator4ConcavePart< TDSS >:
[legend]
Collaboration 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

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.

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

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

Member Function Documentation

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.

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

227  {
228  return this->myDSS->Lf();
229  }
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; }
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.

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

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

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