virtual QString toString() const override
Returns the formatted description.
ContextBasedFeature(ContextBasedFeatureType p_type, int p_kNN=1, double p_scale=std::numeric_limits< double >::quiet_NaN(), int p_ctxClassLabel=0)
Default constructor.
cloudViewer::ScalarField * sf
The computed scalar.
virtual bool prepare(const CorePoints &corePoints, QString &error, cloudViewer::GenericProgressCallback *progressCb=nullptr, SFCollector *generatedScalarFields=nullptr) override
Prepares the feature (compute the scalar field, etc.)
bool computeValue(cloudViewer::DgmOctree::NeighboursSet &pointsInNeighbourhood, const CCVector3 &queryPoint, ScalarType &outputValue) const
Compute the feature value on a set of points.
virtual Feature::Shared clone() const override
Clones this feature.
virtual bool finish(const CorePoints &corePoints, QString &error) override
Finishes the feature preparation (update the scalar field, etc.)
static ContextBasedFeatureType FromString(const QString &token)
static QString ToString(ContextBasedFeatureType type)
ContextBasedFeatureType type
Neighborhood feature type.
static ContextBasedFeatureType FromUpperString(const QString &token)
QSharedPointer< ContextBasedFeature > Shared
virtual bool checkValidity(QString corePointRole, QString &error) const override
Checks the feature definition validity.
virtual Type getType() const override
Returns the type (must be reimplemented by child struct)