Ponca  5b0151ad2869758185d699615c3cca5855cc2cee
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::PointPositionNormalBinding< _Scalar, _Dim > Class Template Reference

Variant of the PointPositionNormal data type that uses external raw data. More...

#include <pointTypes.h>

+ Collaboration diagram for Ponca::PointPositionNormalBinding< _Scalar, _Dim >:

Public Types

enum  { Dim = _Dim }
 
typedef _Scalar Scalar
 
typedef Eigen::Matrix< Scalar, Dim, 1 > VectorType
 
typedef Eigen::Matrix< Scalar, Dim, Dim > MatrixType
 

Public Member Functions

 PointPositionNormalBinding (const Scalar *_interlacedArray, const int _pId)
 
const Eigen::Map< const VectorType > & pos () const
 Get the point position.
 
const Eigen::Map< const VectorType > & normal () const
 Get the point normal.
 

Detailed Description

template<typename _Scalar, int _Dim>
class Ponca::PointPositionNormalBinding< _Scalar, _Dim >

Variant of the PointPositionNormal data type that uses external raw data.

Using this approach, one can use the ponca library with already existing data-structures and without any data-duplication.

We use this class to map an interlaced raw array containing both point normals and coordinates, during the instantiation of the class.

See also
PointPositionNormal

Definition at line 82 of file pointTypes.h.

Member Typedef Documentation

◆ MatrixType

template<typename _Scalar , int _Dim>
typedef Eigen::Matrix<Scalar, Dim, Dim> Ponca::PointPositionNormalBinding< _Scalar, _Dim >::MatrixType

Definition at line 88 of file pointTypes.h.

◆ Scalar

template<typename _Scalar , int _Dim>
typedef _Scalar Ponca::PointPositionNormalBinding< _Scalar, _Dim >::Scalar

Definition at line 86 of file pointTypes.h.

◆ VectorType

template<typename _Scalar , int _Dim>
typedef Eigen::Matrix<Scalar, Dim, 1> Ponca::PointPositionNormalBinding< _Scalar, _Dim >::VectorType

Definition at line 87 of file pointTypes.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Dim>
anonymous enum

Definition at line 85 of file pointTypes.h.

Constructor & Destructor Documentation

◆ PointPositionNormalBinding()

template<typename _Scalar , int _Dim>
Ponca::PointPositionNormalBinding< _Scalar, _Dim >::PointPositionNormalBinding ( const Scalar *  _interlacedArray,
const int  _pId 
)
inline

Definition at line 90 of file pointTypes.h.

Member Function Documentation

◆ normal()

template<typename _Scalar , int _Dim>
const Eigen::Map< const VectorType > & Ponca::PointPositionNormalBinding< _Scalar, _Dim >::normal ( ) const
inline

Get the point normal.

Definition at line 99 of file pointTypes.h.

◆ pos()

template<typename _Scalar , int _Dim>
const Eigen::Map< const VectorType > & Ponca::PointPositionNormalBinding< _Scalar, _Dim >::pos ( ) const
inline

Get the point position.

Definition at line 97 of file pointTypes.h.