Ponca  aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::KnnGraphDefaultTraits< _DataPoint > Struct Template Reference

The default traits type used by the kd-tree. More...

#include <knnGraphTraits.h>

+ Collaboration diagram for Ponca::KnnGraphDefaultTraits< _DataPoint >:

Public Types

using DataPoint = _DataPoint
 The type used to store point data.
 
using AabbType = Eigen::AlignedBox< Scalar, DataPoint::Dim >
 The type used to calculate node bounding boxes.
 
using IndexType = int
 
using PointContainer = std::vector< DataPoint >
 
using IndexContainer = std::vector< IndexType >
 

Detailed Description

template<typename _DataPoint>
struct Ponca::KnnGraphDefaultTraits< _DataPoint >

The default traits type used by the kd-tree.

Definition at line 18 of file knnGraphTraits.h.

Member Typedef Documentation

◆ AabbType

template<typename _DataPoint >
using Ponca::KnnGraphDefaultTraits< _DataPoint >::AabbType = Eigen::AlignedBox<Scalar, DataPoint::Dim>

The type used to calculate node bounding boxes.

Must provide min(), max(), and center() functions, all returning a VectorType.

Definition at line 41 of file knnGraphTraits.h.

◆ DataPoint

template<typename _DataPoint >
using Ponca::KnnGraphDefaultTraits< _DataPoint >::DataPoint = _DataPoint

The type used to store point data.

Must provide Scalar and VectorType typedefs.

VectorType must provide a squaredNorm() function returning a Scalar, as well as a maxCoeff(int*) function returning the dimension index of its largest scalar in its output parameter (e.g. 0 for x, 1 for y, etc.).

Definition at line 29 of file knnGraphTraits.h.

◆ IndexContainer

template<typename _DataPoint >
using Ponca::KnnGraphDefaultTraits< _DataPoint >::IndexContainer = std::vector<IndexType>

Definition at line 46 of file knnGraphTraits.h.

◆ IndexType

template<typename _DataPoint >
using Ponca::KnnGraphDefaultTraits< _DataPoint >::IndexType = int

Definition at line 44 of file knnGraphTraits.h.

◆ PointContainer

template<typename _DataPoint >
using Ponca::KnnGraphDefaultTraits< _DataPoint >::PointContainer = std::vector<DataPoint>

Definition at line 45 of file knnGraphTraits.h.