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

#include <Modifier.h>

Public Types

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

Public Member Functions

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

Aim: transforms a sigend cell into a point, basically a linel into the direct incident pixel center.

Description of template class 'SCellToOuterPoint'

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

Definition at line 481 of file Modifier.h.


Member Typedef Documentation

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

Definition at line 488 of file Modifier.h.

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

Definition at line 487 of file Modifier.h.


Constructor & Destructor Documentation

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

Default constructor.

Definition at line 498 of file Modifier.h.

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

Constructor.

Parameters:
aKa Khalimsky space

Definition at line 503 of file Modifier.h.

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

Copy constructor.

Parameters:
otherany SCellToOuterPoint modifier

Definition at line 509 of file Modifier.h.

: myK(other.myK) { }

Member Function Documentation

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

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

Parameters:
sa linel
Returns:
the outer pixel center

Definition at line 531 of file Modifier.h.

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

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

Assignment.

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

Definition at line 517 of file Modifier.h.

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

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

Field Documentation

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

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