DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Member Functions
DGtal::Adapter4ConvexPart< ArithmeticalDSS > Class Template Reference

#include <FP.h>

Inheritance diagram for DGtal::Adapter4ConvexPart< ArithmeticalDSS >:
Inheritance graph
[legend]
Collaboration diagram for DGtal::Adapter4ConvexPart< ArithmeticalDSS >:
Collaboration graph
[legend]

Public Member Functions

 Adapter4ConvexPart (ArithmeticalDSS &aDSS)
ArithmeticalDSS::Point firstLeaningPoint () const
ArithmeticalDSS::Point lastLeaningPoint () const

Additional Inherited Members

- Protected Attributes inherited from DGtal::Adapter< ArithmeticalDSS >
ArithmeticalDSSmyDSS

Detailed Description

template<typename ArithmeticalDSS>
class DGtal::Adapter4ConvexPart< ArithmeticalDSS >

Aim: adapter for ArithmeticalDSS used by FP in convex parts. Has 2 methods:

that respectively return the first and last upper leaning point of the underlying instance of ArithmeticalDSS.

Template Parameters:
'ArithmeticalDSS'type for arithmetical recognition algorithm of DSS. Must have a nested type Point and have four accessors: getUf(), getUl(), getLf(), getLl()
See also:
Adapter FP

Definition at line 106 of file FP.h.


Constructor & Destructor Documentation

template<typename ArithmeticalDSS>
DGtal::Adapter4ConvexPart< ArithmeticalDSS >::Adapter4ConvexPart ( ArithmeticalDSS aDSS)
inline

Constructor

Parameters:
aDSS

Definition at line 113 of file FP.h.

References DGtal::Adapter< ArithmeticalDSS >::myDSS.

{
this->myDSS = &aDSS;
}

Member Function Documentation

template<typename ArithmeticalDSS>
ArithmeticalDSS::Point DGtal::Adapter4ConvexPart< ArithmeticalDSS >::firstLeaningPoint ( ) const
inlinevirtual
Returns:
the first upper leaning point

Implements DGtal::Adapter< ArithmeticalDSS >.

Definition at line 120 of file FP.h.

References DGtal::ArithmeticalDSS< TIterator, TInteger, connectivity >::getUf(), and DGtal::Adapter< ArithmeticalDSS >::myDSS.

{
return this->myDSS->getUf();
}
template<typename ArithmeticalDSS>
ArithmeticalDSS::Point DGtal::Adapter4ConvexPart< ArithmeticalDSS >::lastLeaningPoint ( ) const
inlinevirtual
Returns:
the last upper leaning point

Implements DGtal::Adapter< ArithmeticalDSS >.

Definition at line 127 of file FP.h.

References DGtal::ArithmeticalDSS< TIterator, TInteger, connectivity >::getUl(), and DGtal::Adapter< ArithmeticalDSS >::myDSS.

{
return this->myDSS->getUl();
}

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