24 #include <unordered_set>
38 Q_PLUGIN_METADATA(IID
"ecvcorp.cloudviewer.plugin.qFacets" FILE
43 qFacets(QObject* parent =
nullptr);
49 virtual void onNewSelection(
51 virtual QList<QAction*> getActions()
override;
80 unsigned minPointsPerComponent,
Algorithm
Cell fusion algorithm.
Hierarchical CLOUDVIEWER Object.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Standard ECV plugin interface.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Standard ECV plugin interface.
Facet detection plugin (BRGM)
void extractFacets(CellsFusionDlg::Algorithm algo)
Uses the given algorithm to detect planar facets.
void showStereogram()
Displays the selected entity stereogram.
QAction * m_doShowStereogram
Associated action.
QAction * m_doExportFacets
Associated action.
QAction * m_doFuseKdTreeCells
Associated action.
void exportFacets()
Exports facets (as shapefiles)
void exportFacetsInfo()
Exports statistics on a set of facets.
QAction * m_doExportFacetsInfo
Associated action.
QAction * m_fastMarchingExtraction
Associated action.
void classifyFacetsByAngle()
Classifies facets by orientation.
ccHObject * createFacets(ccPointCloud *cloud, cloudViewer::ReferenceCloudContainer &components, unsigned minPointsPerComponent, double maxEdgeLength, bool randomColors, bool &error)
Creates facets from components.
void getFacetsInCurrentSelection(FacetSet &facets) const
Returns all the facets in the current selection.
void extractFacetsWithFM()
Uses Fast Marching to detect planar facets.
void fuseKdTreeCells()
Fuses the cells of a kd-tree to produces planar facets.
std::unordered_set< ccFacet * > FacetSet
Set of facets (pointers)
QAction * m_doClassifyFacetsByAngle
Associated action.
static void error(char *msg)
std::vector< ReferenceCloud * > ReferenceCloudContainer
A standard container to store several subsets of points.