Ponca
aa50bfdf187919869239c5b44b748842569114c1
Point Cloud Analysis library
|
Primitive base class. More...
#include <primitive.h>
Public Types | |
using | Scalar = typename DataPoint::Scalar |
Inherited scalar type. | |
using | VectorType = typename DataPoint::VectorType |
Inherited vector type. | |
using | WFunctor = _WFunctor |
Weight Function. | |
Public Member Functions | |
void | setWeightFunc (const WFunctor &_w) |
Init the WeightFunc, without changing the other internal states. | |
void | init (const VectorType &_basisCenter=VectorType::Zero()) |
Set the evaluation position and reset the internal states. | |
bool | isReady () const |
Is the primitive well fitted an 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 WFunctor & | getWeightFunc () const |
Read access to the WeightFunc. | |
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 Attributes | |
FIT_RESULT | m_eCurrentState {UNDEFINED} |
Represent the current state of the fit (finalize function update the state) | |
WFunctor | m_w |
Weight function (must inherits BaseWeightFunc) | |
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, _WFunctor, T >::Scalar = typename DataPoint::Scalar |
Inherited scalar type.
Definition at line 36 of file primitive.h.
using Ponca::PrimitiveBase< DataPoint, _WFunctor, T >::VectorType = typename DataPoint::VectorType |
Inherited vector type.
Definition at line 37 of file primitive.h.
using Ponca::PrimitiveBase< DataPoint, _WFunctor, T >::WFunctor = _WFunctor |
Weight Function.
Definition at line 38 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 114 of file primitive.h.
|
inline |
Finalize the procedure.
Definition at line 121 of file primitive.h.
|
inline |
Definition at line 108 of file primitive.h.
|
inline |
Get number of points added in the neighborhood (with non negative weight)
Definition at line 89 of file primitive.h.
|
inline |
|
inline |
Get the sum of the weights.
Definition at line 92 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 an ready to use (finalize has been called)
Definition at line 76 of file primitive.h.
|
inline |
Is the fitted primitive ready to use (finalize has been called and the result is stable)
Definition at line 82 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 86 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 95 of file primitive.h.
|
protected |
Represent the current state of the fit (finalize function update the state)
Definition at line 51 of file primitive.h.
|
protected |
Weight function (must inherits BaseWeightFunc)
Definition at line 54 of file primitive.h.