DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Member Functions | Private Attributes
DGtal::deprecated::SCellToIncidentPoints< KSpace > Class Template Reference

#include <Modifier.h>

Public Types

typedef KSpace::Point Point
typedef std::pair< Point, PointOutput
typedef KSpace::SCell Input

Public Member Functions

 SCellToIncidentPoints ()
 SCellToIncidentPoints (KSpace aK)
 SCellToIncidentPoints (const SCellToIncidentPoints &other)
SCellToIncidentPointsoperator= (const SCellToIncidentPoints &other)
Output get (const Input &s) const

Private Member Functions

 BOOST_STATIC_ASSERT ((KSpace::dimension==2))

Private Attributes

KSpace myK

Detailed Description

template<typename KSpace>
class DGtal::deprecated::SCellToIncidentPoints< KSpace >

Aim: transforms a linel into a pair of points, which are the centers of the two incident pixels.

Description of template class 'SCellToIncidentPoints'

Template Parameters:
KSpace,the2d Khalimsky space
See also:
SCellToInnerPoint SCellToOuterPoint ConstIteratorAdapter KhalimskySpaceND PointVector

Definition at line 549 of file Modifier.h.


Member Typedef Documentation

template<typename KSpace >
typedef KSpace::SCell DGtal::deprecated::SCellToIncidentPoints< KSpace >::Input

Definition at line 559 of file Modifier.h.

template<typename KSpace >
typedef std::pair<Point,Point> DGtal::deprecated::SCellToIncidentPoints< KSpace >::Output

Definition at line 557 of file Modifier.h.

template<typename KSpace >
typedef KSpace::Point DGtal::deprecated::SCellToIncidentPoints< KSpace >::Point

Definition at line 556 of file Modifier.h.


Constructor & Destructor Documentation

template<typename KSpace >
DGtal::deprecated::SCellToIncidentPoints< KSpace >::SCellToIncidentPoints ( )
inline

Default constructor.

Definition at line 569 of file Modifier.h.

{ }
template<typename KSpace >
DGtal::deprecated::SCellToIncidentPoints< KSpace >::SCellToIncidentPoints ( KSpace  aK)
inline

Constructor.

Parameters:
aKa Khalimsky space

Definition at line 574 of file Modifier.h.

: myK(aK) { }
template<typename KSpace >
DGtal::deprecated::SCellToIncidentPoints< KSpace >::SCellToIncidentPoints ( const SCellToIncidentPoints< KSpace > &  other)
inline

Copy constructor.

Parameters:
otherany SCellToIncidentPoints modifier

Definition at line 580 of file Modifier.h.

: myK(other.myK) { }

Member Function Documentation

template<typename KSpace >
DGtal::deprecated::SCellToIncidentPoints< KSpace >::BOOST_STATIC_ASSERT ( (KSpace::dimension==2)  )
private
template<typename KSpace >
Output DGtal::deprecated::SCellToIncidentPoints< KSpace >::get ( const Input s) const
inline

Get a pair of point (integer coordinates) from a scell (khalimsky coordinates)

Parameters:
sa linel
Returns:
the inner and outer pixels centers

Definition at line 602 of file Modifier.h.

References DGtal::deprecated::SCellToIncidentPoints< KSpace >::myK.

{
//inner point
Input innerPixel( myK.sIndirectIncident( s, *myK.sOrthDirs( s ) ) );
//outer point
Input outerPixel( myK.sDirectIncident( s, *myK.sOrthDirs( s ) ) );
return Output(myK.sCoords( innerPixel ),myK.sCoords( outerPixel ));
}
template<typename KSpace >
SCellToIncidentPoints& DGtal::deprecated::SCellToIncidentPoints< KSpace >::operator= ( const SCellToIncidentPoints< KSpace > &  other)
inline

Assignment.

Parameters:
otherthe object to copy.
Returns:
a reference on 'this'.

Definition at line 588 of file Modifier.h.

References DGtal::deprecated::SCellToIncidentPoints< KSpace >::myK.

{
if ( this != &other )
{
myK = other.myK;
}
return *this;
}

Field Documentation

template<typename KSpace >
KSpace DGtal::deprecated::SCellToIncidentPoints< KSpace >::myK
private

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