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::SCellToInnerPoint< KSpace > Class Template Reference

#include <Modifier.h>

Public Types

typedef KSpace::Point Output
typedef KSpace::SCell Input

Public Member Functions

 SCellToInnerPoint ()
 SCellToInnerPoint (KSpace aK)
 SCellToInnerPoint (const SCellToInnerPoint &other)
SCellToInnerPointoperator= (const SCellToInnerPoint &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::SCellToInnerPoint< KSpace >

Aim: transforms a signed cell into a point, basically a linel into the indirect incident pixel center.

Description of template class 'SCellToInnerPoint'

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

Definition at line 413 of file Modifier.h.


Member Typedef Documentation

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

Definition at line 420 of file Modifier.h.

template<typename KSpace >
typedef KSpace::Point DGtal::deprecated::SCellToInnerPoint< KSpace >::Output

Definition at line 419 of file Modifier.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 430 of file Modifier.h.

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

Constructor.

Parameters:
aKa Khalimsky space

Definition at line 435 of file Modifier.h.

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

Copy constructor.

Parameters:
otherany SCellToInnerPoint modifier

Definition at line 441 of file Modifier.h.

: myK(other.myK) { }

Member Function Documentation

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

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

Parameters:
sa linel
Returns:
the inner pixel center

Definition at line 463 of file Modifier.h.

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

{
Input pixel( myK.sIndirectIncident( s, *myK.sOrthDirs( s ) ) );
return Output( myK.sCoords( pixel ) ); //integer coordinates
}
template<typename KSpace >
SCellToInnerPoint& DGtal::deprecated::SCellToInnerPoint< KSpace >::operator= ( const SCellToInnerPoint< KSpace > &  other)
inline

Assignment.

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

Definition at line 449 of file Modifier.h.

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

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

Field Documentation

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

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