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

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

#include <pointTypes.h>

+ Collaboration diagram for Ponca::PointPositionNormalLazyBinding< _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

 PointPositionNormalLazyBinding (Scalar *_interlacedArray, const int _pId)
 
void bind (Scalar *_interlacedArray)
 Allows change of reference.
 
Eigen::Map< const VectorType > pos () const
 Get the point position.
 
Eigen::Map< const VectorType > normal () const
 Get the point normal.
 

Detailed Description

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

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

We use this class to map an interlaced raw array containing both point normals and coordinates.

Similar to PointPositionNormalBinding, but the binding is done when the getter functions pos() and normal() are called.

See also
PointPositionNormal

Definition at line 118 of file pointTypes.h.

Member Typedef Documentation

◆ MatrixType

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

Definition at line 124 of file pointTypes.h.

◆ Scalar

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

Definition at line 122 of file pointTypes.h.

◆ VectorType

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

Definition at line 123 of file pointTypes.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Dim>
anonymous enum

Definition at line 121 of file pointTypes.h.

Constructor & Destructor Documentation

◆ PointPositionNormalLazyBinding()

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

Definition at line 126 of file pointTypes.h.

Member Function Documentation

◆ bind()

template<typename _Scalar , int _Dim>
void Ponca::PointPositionNormalLazyBinding< _Scalar, _Dim >::bind ( Scalar *  _interlacedArray)
inline

Allows change of reference.

Definition at line 132 of file pointTypes.h.

◆ normal()

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

Get the point normal.

Definition at line 139 of file pointTypes.h.

◆ pos()

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

Get the point position.

Definition at line 137 of file pointTypes.h.