Ponca  3415d6bf4b5de0468067f7a5953b71ec2d1f6564
Point Cloud Analysis library
Loading...
Searching...
No Matches
Spatial Partitioning module

This modules includes classes and methods for Spatial Partitioning and queries. More...

Classes

struct  Ponca::QueryInputBase
 Base class for queries input type. More...
 
struct  Ponca::QueryOutputBase
 Base class for queries output types. More...
 
struct  Ponca::QueryOutputBase::DummyOutputParameter
 
struct  Ponca::QueryInput< InputType_ >
 Base class for Query input type. More...
 
struct  Ponca::QueryInputIsIndex< Index >
 Extension of QueryInput that handles an index based search, in a partitioning structure. More...
 
struct  Ponca::QueryInputIsPosition< DataPoint >
 Extension of QueryInput that handles a position based search, in a partitioning structure. More...
 
struct  Ponca::QueryOutputIsRange< Index, Scalar >
 Class to construct the range query output. More...
 
struct  Ponca::QueryOutputIsNearest< Index, Scalar >
 Class to construct the nearest query output. More...
 
struct  Ponca::QueryOutputIsKNearest< Index, Scalar >
 Class to construct the knearest queries. More...
 
struct  Ponca::Query< Input_, Output_ >
 Composes the Query object depending on an input type and output type. More...
 
struct  Ponca::KNearestIndexQuery< Index, Scalar >
 Base Query class combining QueryInputIsIndex and QueryOutputIsKNearest. More...
 
struct  Ponca::NearestIndexQuery< Index, Scalar >
 Base Query class combining QueryInputIsIndex and QueryOutputIsNearest. More...
 
struct  Ponca::RangeIndexQuery< Index, Scalar >
 Base Query class combining QueryInputIsIndex and QueryOutputIsRange. More...
 
struct  Ponca::KNearestPointQuery< Index, DataPoint >
 Base Query class combining QueryInputIsPosition and QueryOutputIsKNearest. More...
 
struct  Ponca::NearestPointQuery< Index, DataPoint >
 Base Query class combining QueryInputIsPosition and QueryOutputIsNearest. More...
 
struct  Ponca::RangePointQuery< Index, DataPoint >
 Base Query class combining QueryInputIsPosition and QueryOutputIsRange. More...
 

Detailed Description

This modules includes classes and methods for Spatial Partitioning and queries.


Class Documentation

◆ Ponca::QueryInputBase

struct Ponca::QueryInputBase

Base class for queries input type.

Definition at line 67 of file query.h.

+ Inheritance diagram for Ponca::QueryInputBase:
+ Collaboration diagram for Ponca::QueryInputBase:

◆ Ponca::QueryOutputBase

struct Ponca::QueryOutputBase

Base class for queries output types.

QueryOutput objects are the return types of the searches of the accelerating structures defined in the SpatialPartitioning module.

They are used for easy access to the result outputs. (e.g. to iterate over the neighbors of the evaluated point using a rangeNeighborsQuery request).

Definition at line 79 of file query.h.

+ Inheritance diagram for Ponca::QueryOutputBase:
+ Collaboration diagram for Ponca::QueryOutputBase:

◆ Ponca::QueryOutputBase::DummyOutputParameter

struct Ponca::QueryOutputBase::DummyOutputParameter

Definition at line 80 of file query.h.

+ Collaboration diagram for Ponca::QueryOutputBase::DummyOutputParameter:

◆ Ponca::QueryInput

struct Ponca::QueryInput
template<typename InputType_>
struct Ponca::QueryInput< InputType_ >

Base class for Query input type.

Stores internally a value that is related to the point about to be evaluated (e.g. the position of the point, or its index)

Warning
This class has to be specialized for a specific input type, and can't be used as is.
See also
QueryInputIsIndex, QueryInputIsPosition

Definition at line 94 of file query.h.

+ Inheritance diagram for Ponca::QueryInput< InputType_ >:
+ Collaboration diagram for Ponca::QueryInput< InputType_ >:

Public Types

using InputType = InputType_
 Alias to the templated input type.
 

Public Member Functions

 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 

Protected Member Functions

void setInput (const InputType &input)
 Edit the input.
 

Member Typedef Documentation

◆ InputType

template<typename InputType_ >
using Ponca::QueryInput< InputType_ >::InputType = InputType_

Alias to the templated input type.

Definition at line 96 of file query.h.

Constructor & Destructor Documentation

◆ QueryInput()

template<typename InputType_ >
Ponca::QueryInput< InputType_ >::QueryInput ( InputType  input)
inline

Default constructor that initialize the input field.

Definition at line 99 of file query.h.

Member Function Documentation

◆ input()

template<typename InputType_ >
const InputType & Ponca::QueryInput< InputType_ >::input ( ) const
inline

Read access to the input.

Definition at line 102 of file query.h.

◆ setInput()

template<typename InputType_ >
void Ponca::QueryInput< InputType_ >::setInput ( const InputType input)
inlineprotected

Edit the input.

Warning
Need to be used carefully. Modifying a query input while iterating on the query will result in undefined behavior. Simplest way to avoid this is to restart the iteration on the query. Usefull to avoid query reallocation between different requests.

Definition at line 112 of file query.h.

◆ Ponca::QueryInputIsIndex

struct Ponca::QueryInputIsIndex
template<typename Index>
struct Ponca::QueryInputIsIndex< Index >

Extension of QueryInput that handles an index based search, in a partitioning structure.

Stores internally the index of the evaluated point.

See also
QueryInput

Definition at line 127 of file query.h.

+ Inheritance diagram for Ponca::QueryInputIsIndex< Index >:
+ Collaboration diagram for Ponca::QueryInputIsIndex< Index >:

Public Types

using Base = QueryInput< Index >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< Index >
using InputType = Index
 Alias to the templated input type.
 

Public Member Functions

 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< Index >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 

Protected Member Functions

template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &c) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< Index >
void setInput (const InputType &input)
 Edit the input.
 

Member Typedef Documentation

◆ Base

template<typename Index >
using Ponca::QueryInputIsIndex< Index >::Base = QueryInput<Index>

Alias to the inherited type.

Definition at line 129 of file query.h.

◆ InputType

template<typename Index >
using Ponca::QueryInputIsIndex< Index >::InputType = typename Base::InputType

Alias to the templated input type (Index)

Definition at line 131 of file query.h.

Constructor & Destructor Documentation

◆ QueryInputIsIndex()

template<typename Index >
Ponca::QueryInputIsIndex< Index >::QueryInputIsIndex ( const InputType point = -1)
inline

Default constructor that initialize the input index.

Definition at line 134 of file query.h.

Member Function Documentation

◆ getInputPosition()

template<typename Index >
template<typename Container >
auto Ponca::QueryInputIsIndex< Index >::getInputPosition ( const Container &  c) -> const typename Container::value_type::VectorType
inlineprotected

Generic method to access input position. Container is expected to hold kdtree positions.

Definition at line 147 of file query.h.

◆ operator()()

template<typename Index >
void Ponca::QueryInputIsIndex< Index >::operator() ( const InputType point = InputType::Zero())
inline

Access operator that resets the input index.

Definition at line 138 of file query.h.

◆ skipIndexFunctor()

template<typename Index >
template<typename IndexType >
bool Ponca::QueryInputIsIndex< Index >::skipIndexFunctor ( IndexType  idx) const
inlineprotected

Functor used to check if a given Idx must be skipped.

Definition at line 144 of file query.h.

◆ Ponca::QueryInputIsPosition

struct Ponca::QueryInputIsPosition
template<typename DataPoint>
struct Ponca::QueryInputIsPosition< DataPoint >

Extension of QueryInput that handles a position based search, in a partitioning structure.

Stores internally the position of the evaluated point.

See also
QueryInput

Definition at line 158 of file query.h.

+ Inheritance diagram for Ponca::QueryInputIsPosition< DataPoint >:
+ Collaboration diagram for Ponca::QueryInputIsPosition< DataPoint >:

Public Types

using Base = QueryInput< typename DataPoint::VectorType >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< DataPoint::VectorType >
using InputType = DataPoint::VectorType
 Alias to the templated input type.
 

Public Member Functions

 QueryInputIsPosition (const InputType &point=InputType::Zero())
 Default constructor that initialize the input position.
 
void operator() (const InputType &point=InputType::Zero())
 Access operator that resets the input point.
 
- Public Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 

Protected Member Functions

template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
void setInput (const InputType &input)
 Edit the input.
 

Member Typedef Documentation

◆ Base

template<typename DataPoint >
using Ponca::QueryInputIsPosition< DataPoint >::Base = QueryInput<typename DataPoint::VectorType>

Alias to the inherited type.

Definition at line 160 of file query.h.

◆ InputType

template<typename DataPoint >
using Ponca::QueryInputIsPosition< DataPoint >::InputType = typename Base::InputType

Alias to the templated input type (Index)

Definition at line 162 of file query.h.

Constructor & Destructor Documentation

◆ QueryInputIsPosition()

template<typename DataPoint >
Ponca::QueryInputIsPosition< DataPoint >::QueryInputIsPosition ( const InputType point = InputType::Zero())
inline

Default constructor that initialize the input position.

Definition at line 165 of file query.h.

Member Function Documentation

◆ getInputPosition()

template<typename DataPoint >
template<typename Container >
auto Ponca::QueryInputIsPosition< DataPoint >::getInputPosition ( const Container &  ) -> const typename Container::value_type::VectorType
inlineprotected

Generic method to access input position. Container is expected to hold kdtree positions.

Definition at line 178 of file query.h.

◆ operator()()

template<typename DataPoint >
void Ponca::QueryInputIsPosition< DataPoint >::operator() ( const InputType point = InputType::Zero())
inline

Access operator that resets the input point.

Definition at line 169 of file query.h.

◆ skipIndexFunctor()

template<typename DataPoint >
template<typename IndexType >
bool Ponca::QueryInputIsPosition< DataPoint >::skipIndexFunctor ( IndexType  idx) const
inlineprotected

Functor used to check if a given Idx must be skipped.

Definition at line 175 of file query.h.

◆ Ponca::QueryOutputIsRange

struct Ponca::QueryOutputIsRange
template<typename Index, typename Scalar>
struct Ponca::QueryOutputIsRange< Index, Scalar >

Class to construct the range query output.

Stores internally the radius value of a range request.

See also
QueryOutputBase

Definition at line 189 of file query.h.

+ Inheritance diagram for Ponca::QueryOutputIsRange< Index, Scalar >:
+ Collaboration diagram for Ponca::QueryOutputIsRange< Index, Scalar >:

Public Types

using OutputParameter = Scalar
 Alias to Output type.
 

Public Member Functions

 QueryOutputIsRange (OutputParameter radius=OutputParameter(0))
 Default constructor that initialize the output parameter value.
 
void operator() (OutputParameter radius)
 Access operator that resets the output parameter.
 
Scalar radius () const
 Generic method to access the radius.
 
Scalar squaredRadius () const
 Generic method to access the radius squared.
 
void setRadius (Scalar radius)
 Set the radius distance of the query.
 
void setSquaredRadius (Scalar radius)
 Set the squared radius distance of the query.
 

Protected Member Functions

void reset ()
 Reset Query for a new search.
 
Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 

Protected Attributes

Scalar m_squared_radius {0}
 Radius used for the search.
 

Member Typedef Documentation

◆ OutputParameter

template<typename Index , typename Scalar >
using Ponca::QueryOutputIsRange< Index, Scalar >::OutputParameter = Scalar

Alias to Output type.

Definition at line 191 of file query.h.

Constructor & Destructor Documentation

◆ QueryOutputIsRange()

template<typename Index , typename Scalar >
Ponca::QueryOutputIsRange< Index, Scalar >::QueryOutputIsRange ( OutputParameter  radius = OutputParameter(0))
inline

Default constructor that initialize the output parameter value.

Definition at line 194 of file query.h.

Member Function Documentation

◆ descentDistanceThreshold()

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsRange< Index, Scalar >::descentDistanceThreshold ( ) const
inlineprotected

Distance threshold used during tree descent to select nodes to explore.

Definition at line 236 of file query.h.

◆ operator()()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsRange< Index, Scalar >::operator() ( OutputParameter  radius)
inline

Access operator that resets the output parameter.

Definition at line 198 of file query.h.

◆ radius()

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsRange< Index, Scalar >::radius ( ) const
inline

Generic method to access the radius.

Warning
This getter method is more expensive to process than squaredRadius, because it computes the square root of the squared radius each time it is called. This is done this way to avoid having to store internally two values related to the radius.

squaredRadius is overall better for distance comparison.

See also
squaredRadius

Definition at line 212 of file query.h.

◆ reset()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsRange< Index, Scalar >::reset ( )
inlineprotected

Reset Query for a new search.

Definition at line 234 of file query.h.

◆ setRadius()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsRange< Index, Scalar >::setRadius ( Scalar  radius)
inline

Set the radius distance of the query.

Note
Store internally the squared radius for faster distance comparison

Definition at line 225 of file query.h.

◆ setSquaredRadius()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsRange< Index, Scalar >::setSquaredRadius ( Scalar  radius)
inline

Set the squared radius distance of the query.

Definition at line 230 of file query.h.

◆ squaredRadius()

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsRange< Index, Scalar >::squaredRadius ( ) const
inline

Generic method to access the radius squared.

Definition at line 218 of file query.h.

Member Data Documentation

◆ m_squared_radius

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsRange< Index, Scalar >::m_squared_radius {0}
protected

Radius used for the search.

Definition at line 238 of file query.h.

◆ Ponca::QueryOutputIsNearest

struct Ponca::QueryOutputIsNearest
template<typename Index, typename Scalar>
struct Ponca::QueryOutputIsNearest< Index, Scalar >

Class to construct the nearest query output.

Stores internally the nearest neighbor and the Distance threshold (for tree descent).

See also
QueryOutputBase

Definition at line 248 of file query.h.

+ Inheritance diagram for Ponca::QueryOutputIsNearest< Index, Scalar >:
+ Collaboration diagram for Ponca::QueryOutputIsNearest< Index, Scalar >:

Public Types

using OutputParameter = typename QueryOutputBase::DummyOutputParameter
 Alias to Output type.
 

Public Member Functions

 QueryOutputIsNearest ()
 Default constructor.
 
void operator() ()
 Access operator.
 
Index get () const
 Get the closest points.
 

Protected Member Functions

void reset ()
 Reset Query for a new search.
 
Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 

Protected Attributes

Index m_nearest {-1}
 Index of the nearest neighbor.
 
Scalar m_squared_distance {std:: numeric_limits <Scalar>::max()}
 Distance to the nearest neighbor.
 

Member Typedef Documentation

◆ OutputParameter

template<typename Index , typename Scalar >
using Ponca::QueryOutputIsNearest< Index, Scalar >::OutputParameter = typename QueryOutputBase::DummyOutputParameter

Alias to Output type.

Definition at line 250 of file query.h.

Constructor & Destructor Documentation

◆ QueryOutputIsNearest()

template<typename Index , typename Scalar >
Ponca::QueryOutputIsNearest< Index, Scalar >::QueryOutputIsNearest ( )
inline

Default constructor.

Definition at line 253 of file query.h.

Member Function Documentation

◆ descentDistanceThreshold()

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsNearest< Index, Scalar >::descentDistanceThreshold ( ) const
inlineprotected

Distance threshold used during tree descent to select nodes to explore.

Definition at line 269 of file query.h.

◆ get()

template<typename Index , typename Scalar >
Index Ponca::QueryOutputIsNearest< Index, Scalar >::get ( ) const
inline

Get the closest points.

Definition at line 259 of file query.h.

◆ operator()()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsNearest< Index, Scalar >::operator() ( )
inline

Access operator.

Definition at line 256 of file query.h.

◆ reset()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsNearest< Index, Scalar >::reset ( )
inlineprotected

Reset Query for a new search.

Definition at line 263 of file query.h.

Member Data Documentation

◆ m_nearest

template<typename Index , typename Scalar >
Index Ponca::QueryOutputIsNearest< Index, Scalar >::m_nearest {-1}
protected

Index of the nearest neighbor.

Definition at line 272 of file query.h.

◆ m_squared_distance

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsNearest< Index, Scalar >::m_squared_distance {std:: numeric_limits <Scalar>::max()}
protected

Distance to the nearest neighbor.

Definition at line 274 of file query.h.

◆ Ponca::QueryOutputIsKNearest

struct Ponca::QueryOutputIsKNearest
template<typename Index, typename Scalar>
struct Ponca::QueryOutputIsKNearest< Index, Scalar >

Class to construct the knearest queries.

Stores internally the neighbors collection of the knn request and the Distance threshold (for tree descent).

See also
QueryOutputBase

Definition at line 283 of file query.h.

+ Inheritance diagram for Ponca::QueryOutputIsKNearest< Index, Scalar >:
+ Collaboration diagram for Ponca::QueryOutputIsKNearest< Index, Scalar >:

Public Types

using OutputParameter = Index
 Alias to Output type.
 

Public Member Functions

 QueryOutputIsKNearest (OutputParameter k=0)
 Default constructor that initialize the output parameter value.
 
void operator() (OutputParameter k)
 Access operator that resets the output parameter.
 
limited_priority_queue< IndexSquaredDistance< Index, Scalar > > & queue ()
 Access to the priority queue storing the neighbors.
 

Protected Member Functions

void reset ()
 Reset Query for a new search.
 
Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 

Protected Attributes

limited_priority_queue< IndexSquaredDistance< Index, Scalar > > m_queue
 Queue storing the neighbors.
 

Member Typedef Documentation

◆ OutputParameter

template<typename Index , typename Scalar >
using Ponca::QueryOutputIsKNearest< Index, Scalar >::OutputParameter = Index

Alias to Output type.

Definition at line 285 of file query.h.

Constructor & Destructor Documentation

◆ QueryOutputIsKNearest()

template<typename Index , typename Scalar >
Ponca::QueryOutputIsKNearest< Index, Scalar >::QueryOutputIsKNearest ( OutputParameter  k = 0)
inline

Default constructor that initialize the output parameter value.

Definition at line 288 of file query.h.

Member Function Documentation

◆ descentDistanceThreshold()

template<typename Index , typename Scalar >
Scalar Ponca::QueryOutputIsKNearest< Index, Scalar >::descentDistanceThreshold ( ) const
inlineprotected

Distance threshold used during tree descent to select nodes to explore.

Definition at line 304 of file query.h.

◆ operator()()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsKNearest< Index, Scalar >::operator() ( OutputParameter  k)
inline

Access operator that resets the output parameter.

Definition at line 291 of file query.h.

◆ queue()

template<typename Index , typename Scalar >
limited_priority_queue< IndexSquaredDistance< Index, Scalar > > & Ponca::QueryOutputIsKNearest< Index, Scalar >::queue ( )
inline

Access to the priority queue storing the neighbors.

Definition at line 294 of file query.h.

◆ reset()

template<typename Index , typename Scalar >
void Ponca::QueryOutputIsKNearest< Index, Scalar >::reset ( )
inlineprotected

Reset Query for a new search.

Definition at line 298 of file query.h.

Member Data Documentation

◆ m_queue

template<typename Index , typename Scalar >
limited_priority_queue<IndexSquaredDistance<Index, Scalar> > Ponca::QueryOutputIsKNearest< Index, Scalar >::m_queue
protected

Queue storing the neighbors.

Definition at line 306 of file query.h.

◆ Ponca::Query

struct Ponca::Query
template<typename Input_, typename Output_>
struct Ponca::Query< Input_, Output_ >

Composes the Query object depending on an input type and output type.

Template Parameters
Input_The query input type corresponds to the value used for the search.
Output_The query output type corresponds to the results of the search (it can be iterated over).

Definition at line 316 of file query.h.

+ Inheritance diagram for Ponca::Query< Input_, Output_ >:
+ Collaboration diagram for Ponca::Query< Input_, Output_ >:

Public Types

using QueryInType = Input_
 Alias to the input type.
 
using QueryOutType = Output_
 Alias to the output type.
 

Public Member Functions

 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.
 
template<typename Base , typename... outputType>
Base & operator() (const typename QueryInType::InputType &in, outputType &&... out)
 Access operator that resets the input and output parameters.
 
template<typename Base >
Base & operator() (const typename QueryInType::InputType &in)
 Access operator that resets the input parameter only.
 

Member Typedef Documentation

◆ QueryInType

template<typename Input_ , typename Output_ >
using Ponca::Query< Input_, Output_ >::QueryInType = Input_

Alias to the input type.

Definition at line 318 of file query.h.

◆ QueryOutType

template<typename Input_ , typename Output_ >
using Ponca::Query< Input_, Output_ >::QueryOutType = Output_

Alias to the output type.

Definition at line 320 of file query.h.

Constructor & Destructor Documentation

◆ Query() [1/2]

template<typename Input_ , typename Output_ >
Ponca::Query< Input_, Output_ >::Query ( const typename QueryInType::InputType &  in)
inline

Default constructor that initialize the input parameter only.

Definition at line 328 of file query.h.

◆ Query() [2/2]

template<typename Input_ , typename Output_ >
Ponca::Query< Input_, Output_ >::Query ( const typename QueryOutType::OutputParameter &  outParam,
const typename QueryInType::InputType &  in 
)
inline

Default constructor that initialize the input and output parameters.

Definition at line 332 of file query.h.

Member Function Documentation

◆ operator()() [1/2]

template<typename Input_ , typename Output_ >
template<typename Base >
Base & Ponca::Query< Input_, Output_ >::operator() ( const typename QueryInType::InputType &  in)
inline

Access operator that resets the input parameter only.

Definition at line 346 of file query.h.

◆ operator()() [2/2]

template<typename Input_ , typename Output_ >
template<typename Base , typename... outputType>
Base & Ponca::Query< Input_, Output_ >::operator() ( const typename QueryInType::InputType &  in,
outputType &&...  out 
)
inline

Access operator that resets the input and output parameters.

Definition at line 338 of file query.h.

◆ Ponca::KNearestIndexQuery

struct Ponca::KNearestIndexQuery
template<typename Index, typename Scalar>
struct Ponca::KNearestIndexQuery< Index, Scalar >

Base Query class combining QueryInputIsIndex and QueryOutputIsKNearest.


IndexQuery objects acts as a Range that can be iterated over.

They are used as the return type for the index searches

and they allow easy access to the result outputs.

This specialization of the IndexQuery concept is used to iterate over the neighbors of a given point index,

using aKNearestIndex Query request.

Definition at line 352 of file query.h.

+ Inheritance diagram for Ponca::KNearestIndexQuery< Index, Scalar >:
+ Collaboration diagram for Ponca::KNearestIndexQuery< Index, Scalar >:

Public Types

using Base = Query< QueryInputIsIndex< Index >, QueryOutputIsKNearest< Index, Scalar > >
 Alias to the inherited base Query

 
- Public Types inherited from Ponca::Query< QueryInputIsIndex< Index >, QueryOutputIsKNearest< Index, Scalar > >
using QueryInType = QueryInputIsIndex< Index >
 Alias to the input type.
 
using QueryOutType = QueryOutputIsKNearest< Index, Scalar >
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsIndex< Index >
using Base = QueryInput< Index >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< Index >
using InputType = Index
 Alias to the templated input type.
 
- Public Types inherited from Ponca::QueryOutputIsKNearest< Index, Scalar >
using OutputParameter = Index
 Alias to Output type.
 

Additional Inherited Members

- Public Member Functions inherited from Ponca::Query< QueryInputIsIndex< Index >, QueryOutputIsKNearest< Index, Scalar > >
 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< Index >
 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< Index >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 
- Public Member Functions inherited from Ponca::QueryOutputIsKNearest< Index, Scalar >
 QueryOutputIsKNearest (OutputParameter k=0)
 Default constructor that initialize the output parameter value.
 
void operator() (OutputParameter k)
 Access operator that resets the output parameter.
 
limited_priority_queue< IndexSquaredDistance< Index, Scalar > > & queue ()
 Access to the priority queue storing the neighbors.
 
- Protected Member Functions inherited from Ponca::QueryInputIsIndex< Index >
template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &c) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< Index >
void setInput (const InputType &input)
 Edit the input.
 
- Protected Member Functions inherited from Ponca::QueryOutputIsKNearest< Index, Scalar >
void reset ()
 Reset Query for a new search.
 
Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 
- Protected Attributes inherited from Ponca::QueryOutputIsKNearest< Index, Scalar >
limited_priority_queue< IndexSquaredDistance< Index, Scalar > > m_queue
 Queue storing the neighbors.
 

Member Typedef Documentation

◆ Base

template<typename Index , typename Scalar >
using Ponca::KNearestIndexQuery< Index, Scalar >::Base = Query<QueryInputIsIndex<Index>, QueryOutputIsKNearest <Index, Scalar> >

Alias to the inherited base Query

Definition at line 352 of file query.h.

◆ Ponca::NearestIndexQuery

struct Ponca::NearestIndexQuery
template<typename Index, typename Scalar>
struct Ponca::NearestIndexQuery< Index, Scalar >

Base Query class combining QueryInputIsIndex and QueryOutputIsNearest.


IndexQuery objects acts as a Range that can be iterated over.

They are used as the return type for the index searches

and they allow easy access to the result outputs.

This specialization of the IndexQuery concept is used to iterate over the neighbors of a given point index,

using aNearestIndex Query request.

Definition at line 353 of file query.h.

+ Inheritance diagram for Ponca::NearestIndexQuery< Index, Scalar >:
+ Collaboration diagram for Ponca::NearestIndexQuery< Index, Scalar >:

Public Types

using Base = Query< QueryInputIsIndex< Index >, QueryOutputIsNearest< Index, Scalar > >
 Alias to the inherited base Query

 
- Public Types inherited from Ponca::Query< QueryInputIsIndex< Index >, QueryOutputIsNearest< Index, Scalar > >
using QueryInType = QueryInputIsIndex< Index >
 Alias to the input type.
 
using QueryOutType = QueryOutputIsNearest< Index, Scalar >
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsIndex< Index >
using Base = QueryInput< Index >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< Index >
using InputType = Index
 Alias to the templated input type.
 
- Public Types inherited from Ponca::QueryOutputIsNearest< Index, Scalar >
using OutputParameter = typename QueryOutputBase::DummyOutputParameter
 Alias to Output type.
 

Additional Inherited Members

- Public Member Functions inherited from Ponca::Query< QueryInputIsIndex< Index >, QueryOutputIsNearest< Index, Scalar > >
 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< Index >
 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< Index >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 
- Public Member Functions inherited from Ponca::QueryOutputIsNearest< Index, Scalar >
 QueryOutputIsNearest ()
 Default constructor.
 
void operator() ()
 Access operator.
 
Index get () const
 Get the closest points.
 
- Protected Member Functions inherited from Ponca::QueryInputIsIndex< Index >
template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &c) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< Index >
void setInput (const InputType &input)
 Edit the input.
 
- Protected Member Functions inherited from Ponca::QueryOutputIsNearest< Index, Scalar >
void reset ()
 Reset Query for a new search.
 
Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 
- Protected Attributes inherited from Ponca::QueryOutputIsNearest< Index, Scalar >
Index m_nearest {-1}
 Index of the nearest neighbor.
 
Scalar m_squared_distance {std:: numeric_limits <Scalar>::max()}
 Distance to the nearest neighbor.
 

Member Typedef Documentation

◆ Base

template<typename Index , typename Scalar >
using Ponca::NearestIndexQuery< Index, Scalar >::Base = Query<QueryInputIsIndex<Index>, QueryOutputIsNearest <Index, Scalar> >

Alias to the inherited base Query

Definition at line 353 of file query.h.

◆ Ponca::RangeIndexQuery

struct Ponca::RangeIndexQuery
template<typename Index, typename Scalar>
struct Ponca::RangeIndexQuery< Index, Scalar >

Base Query class combining QueryInputIsIndex and QueryOutputIsRange.


IndexQuery objects acts as a Range that can be iterated over.

They are used as the return type for the index searches

and they allow easy access to the result outputs.

This specialization of the IndexQuery concept is used to iterate over the neighbors of a given point index,

using aRangeIndex Query request.

Definition at line 354 of file query.h.

+ Inheritance diagram for Ponca::RangeIndexQuery< Index, Scalar >:
+ Collaboration diagram for Ponca::RangeIndexQuery< Index, Scalar >:

Public Types

using Base = Query< QueryInputIsIndex< Index >, QueryOutputIsRange< Index, Scalar > >
 Alias to the inherited base Query

 
- Public Types inherited from Ponca::Query< QueryInputIsIndex< Index >, QueryOutputIsRange< Index, Scalar > >
using QueryInType = QueryInputIsIndex< Index >
 Alias to the input type.
 
using QueryOutType = QueryOutputIsRange< Index, Scalar >
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsIndex< Index >
using Base = QueryInput< Index >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< Index >
using InputType = Index
 Alias to the templated input type.
 
- Public Types inherited from Ponca::QueryOutputIsRange< Index, Scalar >
using OutputParameter = Scalar
 Alias to Output type.
 

Additional Inherited Members

- Public Member Functions inherited from Ponca::Query< QueryInputIsIndex< Index >, QueryOutputIsRange< Index, Scalar > >
 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< Index >
 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< Index >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 
- Public Member Functions inherited from Ponca::QueryOutputIsRange< Index, Scalar >
 QueryOutputIsRange (OutputParameter radius=OutputParameter(0))
 Default constructor that initialize the output parameter value.
 
void operator() (OutputParameter radius)
 Access operator that resets the output parameter.
 
Scalar radius () const
 Generic method to access the radius.
 
Scalar squaredRadius () const
 Generic method to access the radius squared.
 
void setRadius (Scalar radius)
 Set the radius distance of the query.
 
void setSquaredRadius (Scalar radius)
 Set the squared radius distance of the query.
 
- Protected Member Functions inherited from Ponca::QueryInputIsIndex< Index >
template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &c) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< Index >
void setInput (const InputType &input)
 Edit the input.
 
- Protected Member Functions inherited from Ponca::QueryOutputIsRange< Index, Scalar >
void reset ()
 Reset Query for a new search.
 
Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 
- Protected Attributes inherited from Ponca::QueryOutputIsRange< Index, Scalar >
Scalar m_squared_radius {0}
 Radius used for the search.
 

Member Typedef Documentation

◆ Base

template<typename Index , typename Scalar >
using Ponca::RangeIndexQuery< Index, Scalar >::Base = Query<QueryInputIsIndex<Index>, QueryOutputIsRange <Index, Scalar> >

Alias to the inherited base Query

Definition at line 354 of file query.h.

◆ Ponca::KNearestPointQuery

struct Ponca::KNearestPointQuery
template<typename Index, typename DataPoint>
struct Ponca::KNearestPointQuery< Index, DataPoint >

Base Query class combining QueryInputIsPosition and QueryOutputIsKNearest.


PointQuery objects acts as a Range that can be iterated over.

They are used as the return type for the index searches

and they allow easy access to the result outputs.

This specialization of the PointQuery concept is used to iterate over the neighbors of a given point position,

using aKNearestPoint Query request.

Definition at line 355 of file query.h.

+ Inheritance diagram for Ponca::KNearestPointQuery< Index, DataPoint >:
+ Collaboration diagram for Ponca::KNearestPointQuery< Index, DataPoint >:

Public Types

using Base = Query< QueryInputIsPosition< DataPoint >, QueryOutputIsKNearest< Index, typename DataPoint::Scalar > >
 Alias to the inherited base Query

 
- Public Types inherited from Ponca::Query< QueryInputIsPosition< DataPoint >, QueryOutputIsKNearest< Index, DataPoint::Scalar > >
using QueryInType = QueryInputIsPosition< DataPoint >
 Alias to the input type.
 
using QueryOutType = QueryOutputIsKNearest< Index, DataPoint::Scalar >
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsPosition< DataPoint >
using Base = QueryInput< typename DataPoint::VectorType >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< DataPoint::VectorType >
using InputType = DataPoint::VectorType
 Alias to the templated input type.
 
- Public Types inherited from Ponca::QueryOutputIsKNearest< Index, DataPoint::Scalar >
using OutputParameter = Index
 Alias to Output type.
 

Additional Inherited Members

- Public Member Functions inherited from Ponca::Query< QueryInputIsPosition< DataPoint >, QueryOutputIsKNearest< Index, DataPoint::Scalar > >
 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::QueryInputIsPosition< DataPoint >
 QueryInputIsPosition (const InputType &point=InputType::Zero())
 Default constructor that initialize the input position.
 
void operator() (const InputType &point=InputType::Zero())
 Access operator that resets the input point.
 
- Public Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 
- Public Member Functions inherited from Ponca::QueryOutputIsKNearest< Index, DataPoint::Scalar >
 QueryOutputIsKNearest (OutputParameter k=0)
 Default constructor that initialize the output parameter value.
 
void operator() (OutputParameter k)
 Access operator that resets the output parameter.
 
limited_priority_queue< IndexSquaredDistance< Index, DataPoint::Scalar > > & queue ()
 Access to the priority queue storing the neighbors.
 
- Protected Member Functions inherited from Ponca::QueryInputIsPosition< DataPoint >
template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
void setInput (const InputType &input)
 Edit the input.
 
- Protected Member Functions inherited from Ponca::QueryOutputIsKNearest< Index, DataPoint::Scalar >
void reset ()
 Reset Query for a new search.
 
DataPoint::Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 
- Protected Attributes inherited from Ponca::QueryOutputIsKNearest< Index, DataPoint::Scalar >
limited_priority_queue< IndexSquaredDistance< Index, DataPoint::Scalar > > m_queue
 Queue storing the neighbors.
 

Member Typedef Documentation

◆ Base

template<typename Index , typename DataPoint >
using Ponca::KNearestPointQuery< Index, DataPoint >::Base = Query<QueryInputIsPosition<DataPoint>, QueryOutputIsKNearest <Index, typename DataPoint::Scalar> >

Alias to the inherited base Query

Definition at line 355 of file query.h.

◆ Ponca::NearestPointQuery

struct Ponca::NearestPointQuery
template<typename Index, typename DataPoint>
struct Ponca::NearestPointQuery< Index, DataPoint >

Base Query class combining QueryInputIsPosition and QueryOutputIsNearest.


PointQuery objects acts as a Range that can be iterated over.

They are used as the return type for the index searches

and they allow easy access to the result outputs.

This specialization of the PointQuery concept is used to iterate over the neighbors of a given point position,

using aNearestPoint Query request.

Definition at line 356 of file query.h.

+ Inheritance diagram for Ponca::NearestPointQuery< Index, DataPoint >:
+ Collaboration diagram for Ponca::NearestPointQuery< Index, DataPoint >:

Public Types

using Base = Query< QueryInputIsPosition< DataPoint >, QueryOutputIsNearest< Index, typename DataPoint::Scalar > >
 Alias to the inherited base Query

 
- Public Types inherited from Ponca::Query< QueryInputIsPosition< DataPoint >, QueryOutputIsNearest< Index, DataPoint::Scalar > >
using QueryInType = QueryInputIsPosition< DataPoint >
 Alias to the input type.
 
using QueryOutType = QueryOutputIsNearest< Index, DataPoint::Scalar >
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsPosition< DataPoint >
using Base = QueryInput< typename DataPoint::VectorType >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< DataPoint::VectorType >
using InputType = DataPoint::VectorType
 Alias to the templated input type.
 
- Public Types inherited from Ponca::QueryOutputIsNearest< Index, DataPoint::Scalar >
using OutputParameter = typename QueryOutputBase::DummyOutputParameter
 Alias to Output type.
 

Additional Inherited Members

- Public Member Functions inherited from Ponca::Query< QueryInputIsPosition< DataPoint >, QueryOutputIsNearest< Index, DataPoint::Scalar > >
 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::QueryInputIsPosition< DataPoint >
 QueryInputIsPosition (const InputType &point=InputType::Zero())
 Default constructor that initialize the input position.
 
void operator() (const InputType &point=InputType::Zero())
 Access operator that resets the input point.
 
- Public Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 
- Public Member Functions inherited from Ponca::QueryOutputIsNearest< Index, DataPoint::Scalar >
 QueryOutputIsNearest ()
 Default constructor.
 
void operator() ()
 Access operator.
 
Index get () const
 Get the closest points.
 
- Protected Member Functions inherited from Ponca::QueryInputIsPosition< DataPoint >
template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
void setInput (const InputType &input)
 Edit the input.
 
- Protected Member Functions inherited from Ponca::QueryOutputIsNearest< Index, DataPoint::Scalar >
void reset ()
 Reset Query for a new search.
 
DataPoint::Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 
- Protected Attributes inherited from Ponca::QueryOutputIsNearest< Index, DataPoint::Scalar >
Index m_nearest
 Index of the nearest neighbor.
 
DataPoint::Scalar m_squared_distance
 Distance to the nearest neighbor.
 

Member Typedef Documentation

◆ Base

template<typename Index , typename DataPoint >
using Ponca::NearestPointQuery< Index, DataPoint >::Base = Query<QueryInputIsPosition<DataPoint>, QueryOutputIsNearest <Index, typename DataPoint::Scalar> >

Alias to the inherited base Query

Definition at line 356 of file query.h.

◆ Ponca::RangePointQuery

struct Ponca::RangePointQuery
template<typename Index, typename DataPoint>
struct Ponca::RangePointQuery< Index, DataPoint >

Base Query class combining QueryInputIsPosition and QueryOutputIsRange.


PointQuery objects acts as a Range that can be iterated over.

They are used as the return type for the index searches

and they allow easy access to the result outputs.

This specialization of the PointQuery concept is used to iterate over the neighbors of a given point position,

using aRangePoint Query request.

Definition at line 357 of file query.h.

+ Inheritance diagram for Ponca::RangePointQuery< Index, DataPoint >:
+ Collaboration diagram for Ponca::RangePointQuery< Index, DataPoint >:

Public Types

using Base = Query< QueryInputIsPosition< DataPoint >, QueryOutputIsRange< Index, typename DataPoint::Scalar > >
 Alias to the inherited base Query

 
- Public Types inherited from Ponca::Query< QueryInputIsPosition< DataPoint >, QueryOutputIsRange< Index, DataPoint::Scalar > >
using QueryInType = QueryInputIsPosition< DataPoint >
 Alias to the input type.
 
using QueryOutType = QueryOutputIsRange< Index, DataPoint::Scalar >
 Alias to the output type.
 
- Public Types inherited from Ponca::QueryInputIsPosition< DataPoint >
using Base = QueryInput< typename DataPoint::VectorType >
 Alias to the inherited type.
 
using InputType = typename Base::InputType
 Alias to the templated input type (Index)
 
- Public Types inherited from Ponca::QueryInput< DataPoint::VectorType >
using InputType = DataPoint::VectorType
 Alias to the templated input type.
 
- Public Types inherited from Ponca::QueryOutputIsRange< Index, DataPoint::Scalar >
using OutputParameter = DataPoint::Scalar
 Alias to Output type.
 

Additional Inherited Members

- Public Member Functions inherited from Ponca::Query< QueryInputIsPosition< DataPoint >, QueryOutputIsRange< Index, DataPoint::Scalar > >
 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::QueryInputIsPosition< DataPoint >
 QueryInputIsPosition (const InputType &point=InputType::Zero())
 Default constructor that initialize the input position.
 
void operator() (const InputType &point=InputType::Zero())
 Access operator that resets the input point.
 
- Public Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
 QueryInput (InputType input)
 Default constructor that initialize the input field.
 
const InputTypeinput () const
 Read access to the input.
 
- Public Member Functions inherited from Ponca::QueryOutputIsRange< Index, DataPoint::Scalar >
 QueryOutputIsRange (OutputParameter radius=OutputParameter(0))
 Default constructor that initialize the output parameter value.
 
void operator() (OutputParameter radius)
 Access operator that resets the output parameter.
 
DataPoint::Scalar radius () const
 Generic method to access the radius.
 
DataPoint::Scalar squaredRadius () const
 Generic method to access the radius squared.
 
void setRadius (DataPoint::Scalar radius)
 Set the radius distance of the query.
 
void setSquaredRadius (DataPoint::Scalar radius)
 Set the squared radius distance of the query.
 
- Protected Member Functions inherited from Ponca::QueryInputIsPosition< DataPoint >
template<typename IndexType >
bool skipIndexFunctor (IndexType idx) const
 Functor used to check if a given Idx must be skipped.
 
template<typename Container >
auto getInputPosition (const Container &) -> const typename Container::value_type::VectorType
 Generic method to access input position. Container is expected to hold kdtree positions.
 
- Protected Member Functions inherited from Ponca::QueryInput< DataPoint::VectorType >
void setInput (const InputType &input)
 Edit the input.
 
- Protected Member Functions inherited from Ponca::QueryOutputIsRange< Index, DataPoint::Scalar >
void reset ()
 Reset Query for a new search.
 
DataPoint::Scalar descentDistanceThreshold () const
 Distance threshold used during tree descent to select nodes to explore.
 
- Protected Attributes inherited from Ponca::QueryOutputIsRange< Index, DataPoint::Scalar >
DataPoint::Scalar m_squared_radius
 Radius used for the search.
 

Member Typedef Documentation

◆ Base

template<typename Index , typename DataPoint >
using Ponca::RangePointQuery< Index, DataPoint >::Base = Query<QueryInputIsPosition<DataPoint>, QueryOutputIsRange <Index, typename DataPoint::Scalar> >

Alias to the inherited base Query

Definition at line 357 of file query.h.