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

#include <Modifier.h>

Public Types

typedef PointVector
< 3, Coordinate > 
Input
typedef PointVector
< 2, Coordinate > 
Output

Public Member Functions

Output get (const Input &p) const

Detailed Description

template<typename Coordinate>
class DGtal::deprecated::Point3dTo2dXZ< Coordinate >

Aim: transforms a 3d point into a 2d point due to a projection on the xz-plane.

Description of template class 'Point3dTo2dXZ'

Template Parameters:
Coordinatethe type for the coordinates of the points
PointVector<3,int> a3dPoint;
PointVector<2,int> a2dPoint;
Point3dTo2dXZ<int> m;
...
a2dPoint = m.get(a3dPoint);
See also:
ConstIteratorAdapter

Definition at line 115 of file Modifier.h.


Member Typedef Documentation

template<typename Coordinate >
typedef PointVector<3,Coordinate> DGtal::deprecated::Point3dTo2dXZ< Coordinate >::Input

Definition at line 120 of file Modifier.h.

template<typename Coordinate >
typedef PointVector<2,Coordinate> DGtal::deprecated::Point3dTo2dXZ< Coordinate >::Output

Definition at line 121 of file Modifier.h.


Member Function Documentation

template<typename Coordinate >
Output DGtal::deprecated::Point3dTo2dXZ< Coordinate >::get ( const Input p) const
inline

Get a 2d point from a 3d point

Parameters:
pa 3d point
Returns:
the projected 2d point.

Definition at line 130 of file Modifier.h.

References DGtal::PointVector< dim, TEuclideanRing >::at().

{
Input tmp = p;
return Output(tmp.at(0),tmp.at(2));
}

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