Ponca  03745f3c84c0c8d40cec269af63efe7d3cf77f30
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 = NeighborGraphOneConnectedIterator< const typename Traits::IndexType *, typename Traits::IndexType >
 
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 = QueryInputIsIndex< _NeighborGraph::Traits::IndexType >
 Alias to the input type.
 
using QueryOutType = NeighborGraphQueryOutputType
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsIndex< _NeighborGraph::Traits::IndexType >
using Base = QueryInput< _NeighborGraph::Traits::IndexType >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< InputType_ >
using InputType = 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)
 
Selfoperator() (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.
 
 Query (const typename QueryOutType::OutputParameter &outParam, const typename QueryInType::InputType &in)
 Default constructor that initialize the input and output parameters.
 
Baseoperator() (const typename QueryInType::InputType &in, outputType &&... out)
 Access operator that resets the input and output parameters.
 
Baseoperator() (const typename QueryInType::InputType &in)
 Access operator that resets the input parameter only.
 
- 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< InputType_ >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () 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< InputType_ >
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

◆ NeighborGraph

◆ QueryType

◆ Self

◆ Traits

Definition at line 34 of file neighborGraphOneConnectedQuery.h.

Constructor & Destructor Documentation

◆ NeighborGraphOneConnectedQuery()

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

Definition at line 42 of file neighborGraphOneConnectedQuery.h.

Member Function Documentation

◆ begin()

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

Definition at line 50 of file neighborGraphOneConnectedQuery.h.

◆ end()

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

Definition at line 56 of file neighborGraphOneConnectedQuery.h.

◆ operator()()

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

Definition at line 47 of file neighborGraphOneConnectedQuery.h.

Member Data Documentation

◆ m_graph

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

Definition at line 62 of file neighborGraphOneConnectedQuery.h.