![]() |
Patate Lib
0.5
|
Primitive base class.
This class stores and provides public access to the fitting state, and must be inherited by classes implementing new primitives.
Protected fields m_eCurrentState and m_nbNeighbors should be updated during the fitting process by the inheriting class.
Public Member Functions | |
PrimitiveBase () | |
Default constructor. | |
void | resetPrimitive () |
Reset fitting state status. | |
bool | isReady () const |
Is the primitive well fitted an ready to use (finalize has been called) More... | |
bool | isStable () const |
Is the plane fitted an ready to use (finalize has been called and the result is stable, eq. having more than 6 neighbors) | |
FIT_RESULT | getCurrentState () const |
Protected Attributes | |
FIT_RESULT | m_eCurrentState |
Represent the current state of the fit (finalize function update the state) | |
int | m_nbNeighbors |
Give the number of neighbors. | |
|
inline |
|
inline |
Is the primitive well fitted an ready to use (finalize has been called)