|
Ponca
8e4373a7fc557bbfb1afb9210d70f03872388d04
Point Cloud Analysis library
|
Primitive base class. More...
#include <primitive.h>
Collaboration diagram for Ponca::PrimitiveBase< DataPoint, _NFilter, T >:Public Types | |
| using | Scalar = typename DataPoint::Scalar |
| Inherited scalar type. | |
| using | VectorType = typename DataPoint::VectorType |
| Inherited vector type. | |
| using | NeighborFilter = _NFilter |
| Filter applied on each neighbor. | |
Public Member Functions | |
| void | setNeighborFilter (const NeighborFilter &_nFilter) |
| Init the WeightFunc, without changing the other internal states. | |
| void | init () |
| Set the evaluation position and reset the internal states. | |
| bool | isReady () const |
| Is the primitive well fitted and ready to use (finalize has been called) ? | |
| bool | isStable () const |
| Is the fitted primitive ready to use (finalize has been called and the result is stable) | |
| bool | needAnotherPass () const |
| Is another pass required for fitting (finalize has been called and the result is NEED_OTHER_PASS) | |
| int | getNumNeighbors () const |
| Get number of points added in the neighborhood (with non negative weight) | |
| Scalar | getWeightSum () const |
| Get the sum of the weights. | |
| void | startNewPass () |
| To be called when starting a new processing pass, ie. | |
| const NeighborFilter & | getNeighborFilter () const |
| Read access to the NeighborFilter. | |
| FIT_RESULT | getCurrentState () const |
| bool | addLocalNeighbor (Scalar w, const VectorType &, const DataPoint &) |
| Add a neighbor to perform the fit. | |
| FIT_RESULT | finalize () |
| Finalize the procedure. | |
Protected Types | |
| enum | { PROVIDES_PRIMITIVE_BASE } |
Protected Member Functions | |
| NeighborFilter & | getNeighborFilter () |
| Write access to the NeighborFilter. | |
Protected Attributes | |
| FIT_RESULT | m_eCurrentState {UNDEFINED} |
| Represent the current state of the fit (finalize function update the state) | |
Primitive base class.
This class stores and provides public access to the fitting state, and must be inherited by classes implementing new primitives.
Definition at line 28 of file primitive.h.
| using Ponca::PrimitiveBase< DataPoint, _NFilter, T >::NeighborFilter = _NFilter |
Filter applied on each neighbor.
Definition at line 38 of file primitive.h.
| using Ponca::PrimitiveBase< DataPoint, _NFilter, T >::Scalar = typename DataPoint::Scalar |
Inherited scalar type.
Definition at line 36 of file primitive.h.
| using Ponca::PrimitiveBase< DataPoint, _NFilter, T >::VectorType = typename DataPoint::VectorType |
Inherited vector type.
Definition at line 37 of file primitive.h.
|
protected |
| Enumerator | |
|---|---|
| PROVIDES_PRIMITIVE_BASE | Provides base API for primitives. |
Definition at line 31 of file primitive.h.
|
inline |
Add a neighbor to perform the fit.
Definition at line 120 of file primitive.h.
|
inline |
Finalize the procedure.
Definition at line 127 of file primitive.h.
|
inline |
Definition at line 114 of file primitive.h.
|
inlineprotected |
Write access to the NeighborFilter.
Definition at line 107 of file primitive.h.
|
inline |
Read access to the NeighborFilter.
Definition at line 100 of file primitive.h.
|
inline |
Get number of points added in the neighborhood (with non negative weight)
Definition at line 88 of file primitive.h.
|
inline |
Get the sum of the weights.
Definition at line 91 of file primitive.h.
|
inline |
Set the evaluation position and reset the internal states.
Definition at line 66 of file primitive.h.
|
inline |
Is the primitive well fitted and ready to use (finalize has been called) ?
Definition at line 75 of file primitive.h.
|
inline |
Is the fitted primitive ready to use (finalize has been called and the result is stable)
Definition at line 81 of file primitive.h.
|
inline |
Is another pass required for fitting (finalize has been called and the result is NEED_OTHER_PASS)
Definition at line 85 of file primitive.h.
|
inline |
Init the WeightFunc, without changing the other internal states.
Calls startNewPass internally.
Definition at line 61 of file primitive.h.
|
inline |
To be called when starting a new processing pass, ie.
when getCurrentState()==#NEED_ANOTHER_PASS
Definition at line 94 of file primitive.h.
|
protected |
Represent the current state of the fit (finalize function update the state)
Definition at line 54 of file primitive.h.