Ponca  7d8ac87a7de01d881c9fde3c42e397b44bffb901
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 }
 
using Scalar = _Scalar
 
using VectorType = Eigen::Matrix< Scalar, Dim, 1 >
 
using MatrixType = Eigen::Matrix< Scalar, Dim, Dim >
 

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 129 of file pointTypes.h.

Member Typedef Documentation

◆ MatrixType

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

Definition at line 138 of file pointTypes.h.

◆ Scalar

Definition at line 136 of file pointTypes.h.

◆ VectorType

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

Definition at line 137 of file pointTypes.h.

Member Enumeration Documentation

◆ anonymous enum

template<typename _Scalar , int _Dim>
anonymous enum

Definition at line 132 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 140 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 146 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 154 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 149 of file pointTypes.h.