Ponca  292d8d7132745e0d4242ff9a01e93697fc96b204
Point Cloud Analysis library
Loading...
Searching...
No Matches
Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph > Class Template Reference

Extension of the Query class that allows to read the neighbors that are directly connected to the query point in the neighbor graph. More...

#include <neighborGraphOneConnectedQuery.h>

Inheritance diagram for Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >:
Collaboration diagram for Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >:

Public Types

using NeighborGraph = _NeighborGraph
using Traits = typename NeighborGraph::Traits
using Iterator
using QueryType = Query<QueryInputIsIndex<typename Traits::IndexType>, NeighborGraphQueryOutputType>
using Self = NeighborGraphOneConnectedQuery<NeighborGraph>
Public Types inherited from Ponca::Query< QueryInputIsIndex< _NeighborGraph::Traits::IndexType >, NeighborGraphQueryOutputType >
using QueryInType
 Alias to the input type.
using QueryOutType
 Alias to the output type.
Public Types inherited from Ponca::QueryInputIsIndex< _NeighborGraph::Traits::IndexType >
using Base
 Alias to the inherited type.
using InputType
 Alias to the templated input type (Index).
Public Types inherited from Ponca::QueryInput< _NeighborGraph::Traits::IndexType >
using InputType
 Alias to the templated input type.
Public Types inherited from Ponca::NeighborGraphQueryOutputType
using OutputParameter = typename QueryOutputBase::DummyOutputParameter

Public Member Functions

 NeighborGraphOneConnectedQuery (const NeighborGraph *graph, int index)
Self & operator() (int index)
 Call the k-nearest neighbors query with new input parameter.
Iterator begin () const
 Returns an iterator to the beginning of the k-nearest neighbors query.
Iterator end () const
 Returns an iterator to the end of the k-nearest neighbors query.
Public Member Functions inherited from Ponca::Query< QueryInputIsIndex< _NeighborGraph::Traits::IndexType >, NeighborGraphQueryOutputType >
 Query (const typename QueryInType::InputType &in)
 Default constructor that initialize the input parameter only.
Base & operator() (const typename QueryInType::InputType &in, outputType &&... out)
 Access operator that resets the input and output parameters.
Public Member Functions inherited from Ponca::QueryInputIsIndex< _NeighborGraph::Traits::IndexType >
 QueryInputIsIndex (const InputType &point=-1)
 Default constructor that initialize the input index.
void operator() (const InputType &point=InputType::Zero())
 Access operator that resets the input index.
Public Member Functions inherited from Ponca::QueryInput< _NeighborGraph::Traits::IndexType >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
const InputType & input () const
 Read access to the input.

Protected Attributes

const NeighborGraph * m_graph {nullptr}

Additional Inherited Members

Protected Member Functions inherited from Ponca::QueryInputIsIndex< _NeighborGraph::Traits::IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
const VectorType getInputPosition (const Container &c)
 Generic method to access input position. The VectorType needs to be passed as a template argument.
Protected Member Functions inherited from Ponca::QueryInput< _NeighborGraph::Traits::IndexType >
void setInput (const InputType &input)
 Edit the input.

Detailed Description

template<typename _NeighborGraph>
class Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >

Extension of the Query class that allows to read the neighbors that are directly connected to the query point in the neighbor graph.

Output result of a KnnGraph::oneConnectedNeighbors query request.

See also
KnnGraphBase

Definition at line 29 of file neighborGraphOneConnectedQuery.h.

Member Typedef Documentation

◆ Iterator

template<typename _NeighborGraph>
using Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::Iterator

◆ NeighborGraph

template<typename _NeighborGraph>
using Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::NeighborGraph = _NeighborGraph

Definition at line 33 of file neighborGraphOneConnectedQuery.h.

◆ QueryType

template<typename _NeighborGraph>
using Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::QueryType = Query<QueryInputIsIndex<typename Traits::IndexType>, NeighborGraphQueryOutputType>

Definition at line 37 of file neighborGraphOneConnectedQuery.h.

◆ Self

template<typename _NeighborGraph>
using Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::Self = NeighborGraphOneConnectedQuery<NeighborGraph>

Definition at line 39 of file neighborGraphOneConnectedQuery.h.

◆ Traits

template<typename _NeighborGraph>
using Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::Traits = typename NeighborGraph::Traits

Definition at line 34 of file neighborGraphOneConnectedQuery.h.

Constructor & Destructor Documentation

◆ NeighborGraphOneConnectedQuery()

template<typename _NeighborGraph>
Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::NeighborGraphOneConnectedQuery ( const NeighborGraph * graph,
int index )
inline

Definition at line 42 of file neighborGraphOneConnectedQuery.h.

Member Function Documentation

◆ begin()

template<typename _NeighborGraph>
Iterator Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::begin ( ) const
inlinenodiscard

Returns an iterator to the beginning of the k-nearest neighbors query.

Definition at line 50 of file neighborGraphOneConnectedQuery.h.

◆ end()

template<typename _NeighborGraph>
Iterator Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::end ( ) const
inlinenodiscard

Returns an iterator to the end of the k-nearest neighbors query.

Definition at line 56 of file neighborGraphOneConnectedQuery.h.

◆ operator()()

template<typename _NeighborGraph>
Self & Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::operator() ( int index)
inline

Call the k-nearest neighbors query with new input parameter.

Definition at line 47 of file neighborGraphOneConnectedQuery.h.

Member Data Documentation

◆ m_graph

template<typename _NeighborGraph>
const NeighborGraph* Ponca::NeighborGraphOneConnectedQuery< _NeighborGraph >::m_graph {nullptr}
protected

Definition at line 62 of file neighborGraphOneConnectedQuery.h.