34 typedef QSharedPointer<NeighborhoodFeature>
Shared;
114 else if (token ==
"PCA2")
116 else if (token ==
"PCA3")
118 else if (token ==
"SPHER")
120 else if (token ==
"LINEA")
122 else if (token ==
"PLANA")
124 else if (token ==
"DIP")
126 else if (token ==
"DIPDIR")
128 else if (token ==
"ROUGH")
130 else if (token ==
"NBPTS")
132 else if (token ==
"CURV")
134 else if (token ==
"ZRANGE")
136 else if (token ==
"ZMAX")
138 else if (token ==
"ZMIN")
140 else if (token ==
"ANISO")
142 else if (token ==
"FOM")
144 else if (token ==
"VERT")
168 SFCollector* generatedScalarFields =
nullptr)
override;
171 QString&
error)
const override;
172 virtual QString
toString()
const override;
178 double& outputValue)
const;
std::vector< PointDescriptor > NeighboursSet
A set of neighbours.
A simple scalar field (to be associated to a point cloud)
static void error(char *msg)
Generic feature descriptor.
QSharedPointer< Feature > Shared
Shared type.
Neighborhood-based feature.
bool computeValue(cloudViewer::DgmOctree::NeighboursSet &pointsInNeighbourhood, const CCVector3 &queryPoint, double &outputValue) const
Compute the feature value on a set of points.
QSharedPointer< NeighborhoodFeature > Shared
cloudViewer::ScalarField * sf1
Feature values.
virtual bool prepare(const CorePoints &corePoints, QString &error, cloudViewer::GenericProgressCallback *progressCb=nullptr, SFCollector *generatedScalarFields=nullptr) override
Prepares the feature (compute the scalar field, etc.)
virtual bool checkValidity(QString corePointRole, QString &error) const override
Checks the feature definition validity.
static NeighborhoodFeatureType FromString(const QString &token)
virtual bool finish(const CorePoints &corePoints, QString &error) override
Finishes the feature preparation (update the scalar field, etc.)
virtual QString toString() const override
Returns the formatted description.
NeighborhoodFeatureType type
Neighborhood feature type.
cloudViewer::ScalarField * sf2
virtual Feature::Shared clone() const override
Clones this feature.
virtual Type getType() const override
Returns the type (must be reimplemented by child struct)
static QString ToString(NeighborhoodFeatureType type)
static NeighborhoodFeatureType FromUpperString(const QString &token)
NeighborhoodFeature(NeighborhoodFeatureType p_type)
Default constructor.