Ponca  a6685bea814e743eaa6c9284aa218d7d97a6527c
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::NeighborGraphBufferBase< _Traits > Struct Template Reference

Internal structure storing the buffers used by a neighbor graph. More...

#include <abstractNeighborGraph.h>

+ Inheritance diagram for Ponca::NeighborGraphBufferBase< _Traits >:
+ Collaboration diagram for Ponca::NeighborGraphBufferBase< _Traits >:

Public Types

using Traits = _Traits
 Alias to the Traits type

 
using DataPoint = typename Traits::DataPoint
 DataPoint given by user via Traits

 
using Scalar = typename DataPoint::Scalar
 Scalar given by user via DataPoint

 
using VectorType = typename DataPoint::VectorType
 VectorType given by user via DataPoint

 
using IndexType = typename Traits::IndexType
 Type used to index points into the PointContainer.
 
using PointContainer = typename Traits::PointContainer
 Container for DataPoint used inside the KdTree

 
using PointContainerConstRef = typename Traits::PointContainerConstRef
 Container for DataPoint used inside the KdTree

 
using IndexContainer = typename Traits::IndexContainer
 Container for indices used inside the KdTree

 
using IndexContainerRef = typename Traits::IndexContainerRef
 Ref type to index container.
 

Public Member Functions

 NeighborGraphBufferBase ()=default
 Default constructor, might be deleted depending on the PointContainer type (e.g. const reference)
 
 NeighborGraphBufferBase (PointContainerConstRef _points)
 Default constructor setting the point container.
 
 NeighborGraphBufferBase (PointContainerConstRef _points, IndexContainerRef _indices, const size_t _points_size, const size_t _indices_size)
 Constructor allowing to set all the attributes.
 

Public Attributes

PointContainer points
 Buffer storing the input points (read only)
 
IndexContainer indices
 Buffer storing the indices associating the input points to the nodes.
 
size_t points_size {0}
 Number of points in the graph.
 
size_t indices_size {0}
 Number of connections in the graph.
 

Detailed Description

template<typename _Traits>
struct Ponca::NeighborGraphBufferBase< _Traits >

Internal structure storing the buffers used by a neighbor graph.

Template Parameters
_TraitsTraits of the neighbor graph
See also
NeighborGraphDefaultTraits, NeighborGraphPointerTraits

Definition at line 32 of file abstractNeighborGraph.h.

Member Typedef Documentation

◆ DataPoint

DataPoint given by user via Traits

Definition at line 34 of file abstractNeighborGraph.h.

◆ IndexContainer

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::IndexContainer = typename Traits::IndexContainer

Container for indices used inside the KdTree

Definition at line 34 of file abstractNeighborGraph.h.

◆ IndexContainerRef

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::IndexContainerRef = typename Traits::IndexContainerRef

Ref type to index container.

Definition at line 34 of file abstractNeighborGraph.h.

◆ IndexType

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::IndexType = typename Traits::IndexType

Type used to index points into the PointContainer.

Definition at line 34 of file abstractNeighborGraph.h.

◆ PointContainer

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::PointContainer = typename Traits::PointContainer

Container for DataPoint used inside the KdTree

Definition at line 34 of file abstractNeighborGraph.h.

◆ PointContainerConstRef

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::PointContainerConstRef = typename Traits::PointContainerConstRef

Container for DataPoint used inside the KdTree

Definition at line 34 of file abstractNeighborGraph.h.

◆ Scalar

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::Scalar = typename DataPoint::Scalar

Scalar given by user via DataPoint

Definition at line 34 of file abstractNeighborGraph.h.

◆ Traits

Alias to the Traits type

Definition at line 34 of file abstractNeighborGraph.h.

◆ VectorType

template<typename _Traits >
using Ponca::NeighborGraphBufferBase< _Traits >::VectorType = typename DataPoint::VectorType

VectorType given by user via DataPoint

Definition at line 34 of file abstractNeighborGraph.h.

Constructor & Destructor Documentation

◆ NeighborGraphBufferBase() [1/2]

template<typename _Traits >
Ponca::NeighborGraphBufferBase< _Traits >::NeighborGraphBufferBase ( PointContainerConstRef  _points)
inline

Default constructor setting the point container.

Definition at line 50 of file abstractNeighborGraph.h.

◆ NeighborGraphBufferBase() [2/2]

template<typename _Traits >
Ponca::NeighborGraphBufferBase< _Traits >::NeighborGraphBufferBase ( PointContainerConstRef  _points,
IndexContainerRef  _indices,
const size_t  _points_size,
const size_t  _indices_size 
)
inline

Constructor allowing to set all the attributes.

Definition at line 53 of file abstractNeighborGraph.h.

Member Data Documentation

◆ indices

Buffer storing the indices associating the input points to the nodes.

Definition at line 39 of file abstractNeighborGraph.h.

◆ indices_size

Number of connections in the graph.

Definition at line 44 of file abstractNeighborGraph.h.

◆ points

Buffer storing the input points (read only)

Definition at line 37 of file abstractNeighborGraph.h.

◆ points_size

Number of points in the graph.

Definition at line 42 of file abstractNeighborGraph.h.