ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
AnglesCustomPlot.h
Go to the documentation of this file.
1 // ----------------------------------------------------------------------------
2 // - CloudViewer: www.cloudViewer.org -
3 // ----------------------------------------------------------------------------
4 // Copyright (c) 2018-2024 www.cloudViewer.org
5 // SPDX-License-Identifier: MIT
6 // ----------------------------------------------------------------------------
7 
8 #pragma once
9 
10 #include <qcustomplot.h>
11 
12 #include <QWidget>
13 
14 namespace Ui {
15 class AnglesCustomPlot;
16 }
17 
18 class AnglesCustomPlot : public QCustomPlot {
19  Q_OBJECT
20 public:
21  explicit AnglesCustomPlot(const QVector<double>& data,
22  const QString& xLabel,
23  int nbBins,
24  QWidget* parent = nullptr);
26 
27  bool computeHistogram(const QVector<double>& data);
28 
29  void createQCPBars(const QString& xLabel);
30 
31  void rescale();
32 
33  QSharedPointer<QCPBarsDataContainer> dataContainer() {
34  return m_bars->data();
35  }
36 
37  void emitCloseTab() { emit closeTab(); }
38 
39  void mouseDoubleClickEvent(QMouseEvent* event) override;
40 
41  void mousePressEvent(QMouseEvent* event) override;
42 
43 signals:
44  void closeTab();
45 
46 private:
47  Ui::AnglesCustomPlot* ui;
48 
49  QVector<double> m_axis;
50 
51  QVector<double> m_histogram;
52 
53  QString m_label;
54 
55  QCPBars* m_bars;
56 
57  int m_nbBins;
58 };
ccKdTree
KD-tree structure.
Definition: ecvKdTree.h:24
ecvColor::white
constexpr Rgb white(MAX, MAX, MAX)
s_maxEdgeLength
static double s_maxEdgeLength
Definition: qFacets.cpp:55
StereogramDialog::init
bool init(double angularStep_deg, ccHObject *facetGroup, double resolution_deg=2.0)
Inits dialog.
Definition: stereogramDlg.cpp:667
FacetDensityGrid::ddSteps
unsigned ddSteps
Dimension (Y)
Definition: stereogramDlg.cpp:50
ccPointCloud::addScalarField
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
cloudViewer
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
ccPointCloud::deleteScalarField
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
ShowDisclaimer
static bool ShowDisclaimer(ecvMainAppInterface *app)
Definition: disclaimerDialog.h:31
CandidateDistAscendingComparison
static bool CandidateDistAscendingComparison(const Candidate &a, const Candidate &b)
Definition: kdTreeForFacetExtraction.cpp:47
FacetDensityGrid::step_deg
double step_deg
Grid step along Y (in degrees)
Definition: stereogramDlg.cpp:55
ccHObject::filterChildren
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
filename
std::string filename
Definition: PointCloudIO.cpp:47
ccGenericMesh::showNormals
void showNormals(bool state) override
Sets normals visibility.
Definition: ecvGenericMesh.cpp:44
FastMarchingForFacetExtraction::PlanarCell::cellCode
cloudViewer::DgmOctree::CellCode cellCode
the code of the equivalent cell in the octree
Definition: fastMarchingForFacetExtraction.h:97
qFacets::m_doFuseKdTreeCells
QAction * m_doFuseKdTreeCells
Associated action.
Definition: qFacets.h:97
ecvMainAppInterface::haveOneSelection
bool haveOneSelection() const
Checks if we have exactly one selection.
Definition: ecvMainAppInterface.h:113
AnglesCustomPlot::emitCloseTab
void emitCloseTab()
Definition: AnglesCustomPlot.h:37
ecvMainAppInterface::STD_CONSOLE_MESSAGE
@ STD_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:117
octreeLevel
unsigned char octreeLevel
Definition: qCanupoTools.cpp:38
qcustomplot.h
Vector3Tpl::normalize
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
cloudViewer::BoundingBoxTpl::add
void add(const Vector3Tpl< T > &P)
'Enlarges' the bounding box with a point
Definition: BoundingBox.h:131
StereogramDialog::onTicksFreqChanged
void onTicksFreqChanged(int)
Definition: stereogramDlg.cpp:944
cloudViewer::NormalizedProgress::oneStep
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
ecvColor::black
constexpr Rgb black(0, 0, 0)
QtCompat.h
QCPBars::data
QCPBarDataMap * data() const
Definition: qcustomplot.h:3455
cloudViewer::BoundingBoxTpl::getMinBoxDim
T getMinBoxDim() const
Returns minimal box dimension.
Definition: BoundingBox.h:178
ecvMainAppInterface::dispToConsole
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
FacetMetaData::surface
double surface
Definition: qFacets.cpp:590
Tuple3Tpl::x
Type x
Definition: CVGeom.h:137
StereogramDialog::StereogramDialog
StereogramDialog(ecvMainAppInterface *app)
Default constructor.
Definition: stereogramDlg.cpp:596
cloudViewer::ReferenceCloud::size
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
FastMarchingForFacetExtraction::PlanarCell::C
CCVector3 C
The local cell center.
Definition: fastMarchingForFacetExtraction.h:95
ccFacet::getCenter
const CCVector3 & getCenter() const
Returns the facet center.
Definition: ecvFacet.h:78
cloudViewer::GenericCloud::size
virtual unsigned size() const =0
Returns the number of points.
cloudViewer::ScalarField::computeMinAndMax
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
FacetMetaData
Definition: qFacets.cpp:586
ccKdTree::LeafSet
std::unordered_set< Leaf * > LeafSet
A set of leaves.
Definition: ecvKdTree.h:64
ccHObject::getParent
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
ccColorScale::MIN_STEPS
static const unsigned MIN_STEPS
Minimum number of steps.
Definition: ecvColorScale.h:99
StereogramWidget::enableMouseTracking
void enableMouseTracking(bool state, double dipSpan_deg=30, double dipDirSpan_deg=30)
Enables or not the mouse tracking mode.
Definition: stereogramDlg.cpp:294
facetsClassifier.h
stereogramDlg.h
s_minPointsPerFacet
static unsigned s_minPointsPerFacet
Definition: qFacets.cpp:52
s_stereogramAngleStep
static double s_stereogramAngleStep
Definition: qFacets.cpp:63
ccGLMatrixTpl::getColumn
T * getColumn(unsigned index)
Returns a pointer to a given column.
Definition: ecvGLMatrixTpl.h:904
cloudViewer::TrueKdTree::getLeaves
bool getLeaves(LeafVector &leaves) const
Returns all leaf nodes.
Definition: TrueKdTree.cpp:321
data
GraphType data
Definition: graph_cut.cc:138
StereogramWidget::init
bool init(double angularStep_deg, ccHObject *facetGroup, double resolution_deg=2.0)
Sets current parameters.
Definition: stereogramDlg.cpp:94
AnglesCustomPlot::closeTab
void closeTab()
s_lastCloud
static ccPointCloud * s_lastCloud
Definition: qFacets.cpp:65
qFacets.h
ccHObjectCaster::ToPointCloud
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
ccColorScale::Shared
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
cloudViewer::DgmOctree::getCellCodes
bool getCellCodes(unsigned char level, cellCodesContainer &vec, bool truncatedCodes=false) const
Definition: DgmOctree.cpp:2822
StereogramWidget::m_showHSVRing
bool m_showHSVRing
Whether to show the 'HSV' ring or not.
Definition: stereogramDlg.h:127
nProgress
cloudViewer::NormalizedProgress * nProgress
Definition: qCanupoTools.cpp:42
ecvMainAppInterface::getMainWindow
virtual QMainWindow * getMainWindow()=0
Returns main window.
signals
#define signals
Definition: PythonPlugin.cpp:26
ccObject::setName
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
qFacets::fuseKdTreeCells
void fuseKdTreeCells()
Fuses the cells of a kd-tree to produces planar facets.
Definition: qFacets.cpp:200
qFacets::FacetSet
std::unordered_set< ccFacet * > FacetSet
Set of facets (pointers)
Definition: qFacets.h:86
ccColorScalesManager::GetDefaultScale
static ccColorScale::Shared GetDefaultScale(DEFAULT_SCALES scale=BGYR)
Returns a pre-defined color scale (static shortcut)
Definition: ecvColorScalesManager.h:61
ccObject::isA
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
ccBBox
Bounding box structure.
Definition: ecvBBox.h:25
FacetMetaData::familyIndex
int familyIndex
Definition: qFacets.cpp:594
ccPointCloud::getPointNormal
const CCVector3 & getPointNormal(unsigned pointIndex) const override
Returns normal corresponding to a given point.
Definition: ecvPointCloud.cpp:1555
cloudViewer::TrueKdTree::Leaf::userData
int userData
Definition: TrueKdTree.h:86
ccGLMatrixTpl::setTranslation
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
CV_TYPES::POINT_CLOUD
@ POINT_CLOUD
Definition: CVTypes.h:104
ccGLMatrixTpl::toIdentity
virtual void toIdentity()
Sets matrix to identity.
Definition: ecvGLMatrixTpl.h:622
ecvProgressDialog::start
virtual void start() override
Definition: ecvProgressDialog.cpp:70
qFacets::showStereogram
void showStereogram()
Displays the selected entity stereogram.
Definition: qFacets.cpp:942
ecvMainAppInterface::WRN_CONSOLE_MESSAGE
@ WRN_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:118
cloudViewer::PointCloudTpl::getPoint
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
CV_TYPES::FACET
@ FACET
Definition: CVTypes.h:109
ecvColorScaleSelector.h
cloudViewer::TrueKdTree::LeafVector
std::vector< Leaf * > LeafVector
A vector of leaves.
Definition: TrueKdTree.h:105
ecvDisplayTools.h
GenericProgressCallback.h
ccObject::getMetaData
QVariant getMetaData(const QString &key) const
Returns a given associated meta data.
Definition: ecvObject.cpp:208
cloudViewer::ReferenceCloud::getPoint
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: ReferenceCloud.h:79
ccFacet::Create
static ccFacet * Create(cloudViewer::GenericIndexedCloudPersist *cloud, PointCoordinateType maxEdgeLength=0, bool transferOwnership=false, const PointCoordinateType *planeEquation=nullptr)
Creates a facet from a set of points.
Definition: ecvFacet.cpp:167
cloudViewer::GenericProgressCallback::isCancelRequested
virtual bool isCancelRequested()=0
Checks if the process should be canceled.
FacetsExportDlg
Dialog for exporting facets or facets info (qFacets plugin)
Definition: facetsExportDlg.h:15
ecvMainAppInterface::dbRootObject
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
s_OriFamilyKey
static const QString s_OriFamilyKey
Definition: facetsClassifier.h:19
StereogramWidget::m_meanDipDir_deg
double m_meanDipDir_deg
Mean dip direction (in degrees)
Definition: stereogramDlg.h:114
AnglesCustomPlot::rescale
void rescale()
Definition: AnglesCustomPlot.cpp:111
CVLog.h
cloudViewer::PointCloudTpl::size
unsigned size() const override
Definition: PointCloudTpl.h:38
cloudViewer::core::Minimum
Tensor Minimum(const Tensor &input, const Tensor &other)
Computes the element-wise minimum of input and other. The tensors must have same data type and device...
Definition: TensorFunction.cpp:136
ccPointCloud
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
cloudViewer::FastMarching::m_theGrid
Cell ** m_theGrid
Grid used to process Fast Marching.
Definition: FastMarching.h:235
FacetMetaData::dip_deg
int dip_deg
Definition: qFacets.cpp:591
qFacets::m_doExportFacets
QAction * m_doExportFacets
Associated action.
Definition: qFacets.h:101
ccNormalVectors::ConvertNormalToDipAndDipDir
static void ConvertNormalToDipAndDipDir(const CCVector3 &N, PointCoordinateType &dip_deg, PointCoordinateType &dipDir_deg)
Converts a normal vector to geological 'dip direction & dip' parameters.
Definition: ecvNormalVectors.cpp:848
ecvColor::RgbTpl::r
Type r
Definition: ecvColorTypes.h:54
FacetMetaData::normal
CCVector3 normal
Definition: qFacets.cpp:589
StereogramWidget::getMeanDir
void getMeanDir(double &meanDip_deg, double &meanDipDir_deg)
Returns the mean dip direction and dip.
Definition: stereogramDlg.h:55
ecvMainAppInterface.h
cloudViewer::Neighbourhood::computeLargestRadius
PointCoordinateType computeLargestRadius()
Definition: Neighbourhood.cpp:184
ccPlane::getNormal
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvPlane.h:73
Candidate
Definition: kdTreeForFacetExtraction.cpp:31
ccColorScaleSelector::getSelectedScale
ccColorScale::Shared getSelectedScale() const
Returns currently selected color scale.
Definition: ecvColorScaleSelector.cpp:79
cloudViewer::RadiansToDegrees
float RadiansToDegrees(int radians)
Convert radians to degrees.
Definition: CVMath.h:71
cloudViewer::GenericProgressCallback::stop
virtual void stop()=0
Notifies the fact that the process has ended.
StereogramDialog::closeEvent
void closeEvent(QCloseEvent *e)
Definition: stereogramDlg.cpp:697
ccColorScaleSelector
Advanced editor for color scales.
Definition: ecvColorScaleSelector.h:23
StereogramDialog
Dialog for displaying the angular repartition of facets (qFacets plugin)
Definition: stereogramDlg.h:147
cloudViewer::TrueKdTree::Leaf
Tree leaf.
Definition: TrueKdTree.h:79
cloudViewer::GenericProgressCallback::setMethodTitle
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
s_fmUseRetroProjectionError
static bool s_fmUseRetroProjectionError
Definition: qFacets.cpp:50
ccKdTreeForFacetExtraction::FuseCells
static bool FuseCells(ccKdTree *kdTree, double maxError, cloudViewer::DistanceComputationTools::ERROR_MEASURES errorMeasure, double maxAngle_deg, PointCoordinateType overlapCoef=1, bool closestFirst=true, cloudViewer::GenericProgressCallback *progressCb=0)
Fuses cells.
Definition: kdTreeForFacetExtraction.cpp:52
ccFacet::clone
ccFacet * clone() const
Clones this facet.
Definition: ecvFacet.cpp:65
QCPBars
A plottable representing a bar chart in a plot.
Definition: qcustomplot.h:3417
FacetDensityGrid::grid
double * grid
Grid.
Definition: stereogramDlg.cpp:45
cloudViewer::ReferenceCloud::getPointGlobalIndex
virtual unsigned getPointGlobalIndex(unsigned localIndex) const
Definition: ReferenceCloud.h:103
ParallelSort
#define ParallelSort
Definition: ParallelSort.h:33
StereogramDialog::onDensityColorStepsChanged
void onDensityColorStepsChanged(int)
Definition: stereogramDlg.cpp:936
ecvColorScaleEditorDlg.h
cloudViewer::GenericProgressCallback
Definition: GenericProgressCallback.h:20
cloudViewer::PointCloudTpl::getScalarFieldIndexByName
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
cloudViewer::DgmOctree::MAX_OCTREE_LEVEL
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67
FastMarchingForFacetExtraction::setPropagateCallback
void setPropagateCallback(cloudViewer::GenericProgressCallback *propagateProgressCb)
Sets the propagation progress callback.
Definition: fastMarchingForFacetExtraction.h:71
ccHObject::Container
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
CCVector3
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
FacetMetaData::FacetMetaData
FacetMetaData()
Default constructor.
Definition: qFacets.cpp:598
AnglesCustomPlot::AnglesCustomPlot
AnglesCustomPlot(const QVector< double > &data, const QString &xLabel, int nbBins, QWidget *parent=nullptr)
Definition: AnglesCustomPlot.cpp:15
CCVector3d
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
StereogramWidget::m_meanDip_deg
double m_meanDip_deg
Mean dip (in degrees)
Definition: stereogramDlg.h:116
ccPointCloud::setCurrentDisplayedScalarField
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
cloudViewer::PointCloudTpl::getScalarField
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
ccColorScale::MAX_STEPS
static const unsigned MAX_STEPS
Maximum number of steps (internal representation)
Definition: ecvColorScale.h:109
cloudViewer::DistanceComputationTools::MAX_DIST_68_PERCENT
@ MAX_DIST_68_PERCENT
Definition: DistanceComputationTools.h:412
FastMarchingForFacetExtraction::addCellToCurrentFacet
ScalarType addCellToCurrentFacet(unsigned index)
Definition: fastMarchingForFacetExtraction.cpp:356
cloudViewer::FastMarching::m_numberOfNeighbours
unsigned m_numberOfNeighbours
Current number of neighbours (6 or 26)
Definition: FastMarching.h:247
cloudViewer::FastMarching::Cell
A generic Fast Marching grid cell.
Definition: FastMarching.h:95
result
core::Tensor result
Definition: VtkUtils.cpp:76
ccColorScalesManager
Color scales manager/container.
Definition: ecvColorScalesManager.h:17
ccGenericPointCloud::getOctree
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
Definition: ecvGenericPointCloud.cpp:97
cloudViewer::PointCloudTpl::enableScalarField
bool enableScalarField() override
Definition: PointCloudTpl.h:77
cloudViewer::GenericProgressCallback::setInfo
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
cloudViewer::FastMarching::setSeedCell
virtual bool setSeedCell(const Tuple3i &pos)
Sets a given cell as "seed".
Definition: FastMarching.cpp:150
width
int width
Definition: FileIOFactory.cpp:142
FastMarchingForFacetExtraction
Fast Marching algorithm for planar facets extraction (qFacets plugin)
Definition: fastMarchingForFacetExtraction.h:24
FastMarchingForFacetExtraction::m_currentFacetError
ScalarType m_currentFacetError
Current facet error.
Definition: fastMarchingForFacetExtraction.h:120
Candidate::dist
PointCoordinateType dist
Definition: kdTreeForFacetExtraction.cpp:33
FastMarchingForFacetExtraction::m_maxError
ScalarType m_maxError
Max facet error.
Definition: fastMarchingForFacetExtraction.h:123
ecvFileUtils::defaultDocPath
QString defaultDocPath()
Shortcut for getting the documents location path.
Definition: ecvFileUtils.h:30
cloudViewer::AutoSegmentationTools::extractConnectedComponents
static bool extractConnectedComponents(GenericIndexedCloudPersist *theCloud, ReferenceCloudContainer &ccc)
Extracts connected components from a point cloud.
Definition: AutoSegmentationTools.cpp:55
FacetMetaData::facetIndex
int facetIndex
Definition: qFacets.cpp:587
CVLog::Error
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
s_classifMaxDist
static double s_classifMaxDist
Definition: qFacets.cpp:61
FastMarchingForFacetExtraction::m_errorMeasure
cloudViewer::DistanceComputationTools::ERROR_MEASURES m_errorMeasure
Error measrue.
Definition: fastMarchingForFacetExtraction.h:126
cloudViewer::DistanceComputationTools::MAX_DIST_99_PERCENT
@ MAX_DIST_99_PERCENT
Definition: DistanceComputationTools.h:414
ccPlanarEntityInterface::showNormalVector
void showNormalVector(bool state)
Show normal vector.
Definition: ecvPlanarEntityInterface.h:25
Tuple3Tpl< int >
StereogramDialog::updateFacetsFilter
void updateFacetsFilter(bool enable)
Definition: stereogramDlg.cpp:753
StereogramDialog::spawnColorScaleEditor
void spawnColorScaleEditor()
Definition: stereogramDlg.cpp:969
ccGLMatrixTpl::getTranslationAsVec3D
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
Definition: ecvGLMatrixTpl.h:830
height
int height
Definition: FileIOFactory.cpp:143
cloudViewer::FastMarching::m_neighboursIndexShift
int m_neighboursIndexShift[26]
Neighbours coordinates shifts in grid.
Definition: FastMarching.h:249
ccShiftedObject::getGlobalShift
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
cloudViewer::TrueKdTree::Leaf::points
ReferenceCloud * points
Definition: TrueKdTree.h:83
FastMarchingForFacetExtraction::m_propagateProgressCb
cloudViewer::GenericProgressCallback * m_propagateProgressCb
Propagation progress callback.
Definition: fastMarchingForFacetExtraction.h:132
Candidate::radius
PointCoordinateType radius
Definition: kdTreeForFacetExtraction.cpp:34
StereogramWidget::m_ticksFreq
int m_ticksFreq
Ticks frequency.
Definition: stereogramDlg.h:124
ccFacet::getNormal
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvFacet.h:63
StereogramWidget::paintEvent
virtual void paintEvent(QPaintEvent *e)
Definition: stereogramDlg.cpp:312
ecvMainAppInterface
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
ccPolyline::setWidth
void setWidth(PointCoordinateType width)
Sets the width of the line.
Definition: ecvPolyline.cpp:282
Vector3Tpl::cross
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
ccGenericPointCloud::getTheVisibilityArray
virtual VisibilityTableType & getTheVisibilityArray()
Returns associated visibility array.
Definition: ecvGenericPointCloud.h:168
event
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
ccColorScalesManager::BGYR
@ BGYR
Definition: ecvColorScalesManager.h:30
StereogramWidget::m_densityGrid
FacetDensityGrid * m_densityGrid
Density grid.
Definition: stereogramDlg.h:111
ccGenericPointCloud
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
FastMarchingForFacetExtraction::step
virtual int step() override
Propagates the front (one step)
Definition: fastMarchingForFacetExtraction.cpp:150
cloudViewer::FastMarching::Cell::state
STATE state
Cell state.
Definition: FastMarching.h:115
DescendingLeafSizeComparison
static bool DescendingLeafSizeComparison(const ccKdTree::Leaf *a, const ccKdTree::Leaf *b)
Definition: kdTreeForFacetExtraction.cpp:26
ccKdTree::associatedGenericCloud
ccGenericPointCloud * associatedGenericCloud() const
Returns associated (generic) point cloud.
Definition: ecvKdTree.h:72
ccColorScaleEditorDialog::getActiveScale
ccColorScale::Shared getActiveScale()
Returns active scale.
Definition: ecvColorScaleEditorDlg.h:48
FacetsExportDlg::ASCII_FILE_IO
@ ASCII_FILE_IO
Definition: facetsExportDlg.h:20
Vector3Tpl< PointCoordinateType >
qFacets::extractFacetsWithFM
void extractFacetsWithFM()
Uses Fast Marching to detect planar facets.
Definition: qFacets.cpp:196
Candidate::Candidate
Candidate(ccKdTree::Leaf *l)
Definition: kdTreeForFacetExtraction.cpp:38
FacetsExportDlg::FacetsExportDlg
FacetsExportDlg(IOMode mode, QWidget *parent=0)
Default constructor.
Definition: facetsExportDlg.cpp:16
FastMarchingForFacetExtraction::m_propagateProgress
unsigned m_propagateProgress
Propagation progress.
Definition: fastMarchingForFacetExtraction.h:134
ecvDisplayTools::SetRedrawRecursive
static void SetRedrawRecursive(bool redraw=false)
Definition: ecvDisplayTools.cpp:1992
StereogramWidget::setDensityColorScale
void setDensityColorScale(ccColorScale::Shared colorScale)
Sets density color scale.
Definition: stereogramDlg.h:64
ccFacet::getPolygon
ccMesh * getPolygon()
Returns polygon mesh (if any)
Definition: ecvFacet.h:81
cloudViewer::PointCloudTpl::getCurrentOutScalarField
ScalarField * getCurrentOutScalarField() const
Returns the scalar field currently associated to the cloud output.
Definition: PointCloudTpl.h:400
e
const double * e
Definition: essential_matrix_poly.h:10
FastMarchingForFacetExtraction::setSeedCell
virtual bool setSeedCell(const Tuple3i &pos) override
Sets a given cell as "seed".
Definition: fastMarchingForFacetExtraction.cpp:333
cloudViewer::GreaterThanEpsilon
bool GreaterThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:37
CV_TYPES::PLANE
@ PLANE
Definition: CVTypes.h:120
ecvGenericPointCloud.h
FacetMetaData::dipDir_deg
int dipDir_deg
Definition: qFacets.cpp:592
ecvMainAppInterface::ERR_CONSOLE_MESSAGE
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
ccPointCloud::partialClone
ccPointCloud * partialClone(const cloudViewer::ReferenceCloud *selection, int *warnings=nullptr, bool withChildEntities=true) const
Creates a new point cloud object from a ReferenceCloud (selection)
Definition: ecvPointCloud.cpp:290
qFacets::m_doClassifyFacetsByAngle
QAction * m_doClassifyFacetsByAngle
Associated action.
Definition: qFacets.h:105
StereogramWidget::m_trackMouseClick
bool m_trackMouseClick
Mouse tracking.
Definition: stereogramDlg.h:130
cloudViewer::FastMarching::cleanLastPropagation
virtual void cleanLastPropagation()
Definition: FastMarching.cpp:143
Ui
Definition: sfEditDlg.h:16
ccHObject::find
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
ecvColor::RgbTpl::g
Type g
Definition: ecvColorTypes.h:54
FacetMetaData::center
CCVector3 center
Definition: qFacets.cpp:588
FastMarchingForFacetExtraction::~FastMarchingForFacetExtraction
virtual ~FastMarchingForFacetExtraction()
Destructor.
Definition: fastMarchingForFacetExtraction.cpp:36
ccGenericPointCloud::isVisibilityTableInstantiated
virtual bool isVisibilityTableInstantiated() const
Returns whether the visibility array is allocated or not.
Definition: ecvGenericPointCloud.cpp:76
ecvProgressDialog::stop
virtual void stop() override
Notifies the fact that the process has ended.
Definition: ecvProgressDialog.cpp:76
ccHObject::applyGLTransformation_recursive
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
CellsFusionDlg::ALGO_FAST_MARCHING
@ ALGO_FAST_MARCHING
Definition: cellsFusionDlg.h:17
scalar
normal_z scalar
Definition: my_point_types.h:169
cloudViewer::FastMarching::addTrialCell
virtual void addTrialCell(unsigned index)
Add a cell to the TRIAL cells list.
Definition: FastMarching.cpp:191
FastMarchingForFacetExtraction::FastMarchingForFacetExtraction
FastMarchingForFacetExtraction()
Default constructor.
Definition: fastMarchingForFacetExtraction.cpp:26
StereogramWidget::m_clickDipDir_deg
double m_clickDipDir_deg
Last mouse click equivalent dip direction (in degrees)
Definition: stereogramDlg.h:134
ccNormalVectors::ConvertDipAndDipDirToString
static QString ConvertDipAndDipDirToString(PointCoordinateType dip_deg, PointCoordinateType dipDir_deg)
Converts geological 'dip direction & dip' parameters to a string.
Definition: ecvNormalVectors.cpp:815
FacetsClassifier::GenerateSubfamilyColor
static void GenerateSubfamilyColor(ecvColor::Rgb &col, double dip, double dipDir, unsigned subFamilyIndex, unsigned subFamilyCount, ecvColor::Rgb *darkCol=0)
Generates a given sub-family color.
Definition: facetsClassifier.h:40
ShpDBFFields.h
cloudViewer::FastMarching::getNearestTrialCell
virtual unsigned getNearestTrialCell()
Returns the TRIAL cell with the smallest front arrival time.
Definition: FastMarching.cpp:206
CCShareable::link
virtual void link()
Increase counter.
Definition: CVShareable.cpp:33
ccColorScaleSelector::init
void init()
Inits selector with the Color Scales Manager.
Definition: ecvColorScaleSelector.cpp:44
ccStdPluginInterface::m_app
ecvMainAppInterface * m_app
Main application interface.
Definition: ecvStdPluginInterface.h:85
StereogramWidget::setDensityColorScaleSteps
void setDensityColorScaleSteps(unsigned steps)
Sets density color scale steps.
Definition: stereogramDlg.h:72
ecvFileUtils.h
FastMarchingForFacetExtraction::init
int init(ccGenericPointCloud *cloud, cloudViewer::DgmOctree *theOctree, unsigned char gridLevel, ScalarType maxError, cloudViewer::DistanceComputationTools::ERROR_MEASURES errorMeasure, bool useRetroProjectionError, cloudViewer::GenericProgressCallback *progressCb=0)
Initializes the grid with a point cloud (and ist corresponding octree)
Definition: fastMarchingForFacetExtraction.cpp:70
qFacets::createFacets
ccHObject * createFacets(ccPointCloud *cloud, cloudViewer::ReferenceCloudContainer &components, unsigned minPointsPerComponent, double maxEdgeLength, bool randomColors, bool &error)
Creates facets from components.
Definition: qFacets.cpp:435
StereogramDialog::onFilterCenterChanged
void onFilterCenterChanged(double)
Definition: stereogramDlg.cpp:725
AnglesCustomPlot::mouseDoubleClickEvent
void mouseDoubleClickEvent(QMouseEvent *event) override
Definition: AnglesCustomPlot.cpp:119
ccFacet::getSurface
double getSurface() const
Returns associated surface area.
Definition: ecvFacet.h:70
cloudViewer::DistanceComputationTools::ERROR_MEASURES
ERROR_MEASURES
Error estimators.
Definition: DistanceComputationTools.h:410
ecvProgressDialog
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
cloudViewer::FastMarching::initGridWithOctree
virtual int initGridWithOctree(DgmOctree *octree, unsigned char gridLevel)
Definition: FastMarching.cpp:78
cloudViewer::FastMarching::m_neighboursDistance
float m_neighboursDistance[26]
Neighbours distance weight.
Definition: FastMarching.h:251
cloudViewer::FastMarching::pos2index
unsigned pos2index(const Tuple3i &pos) const
Definition: FastMarching.h:87
ecvMainAppInterface::getActiveWindow
virtual QWidget * getActiveWindow()=0
cloudViewer::Neighbourhood
Definition: Neighbourhood.h:25
ecvMesh.h
cloudViewer::FastMarching::Cell::T
float T
Front arrival time.
Definition: FastMarching.h:118
ccPointCloud::hasNormals
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
cloudViewer::ReferenceCloud::setPointScalarValue
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Sets the ith point associated scalar value.
Definition: ReferenceCloud.h:66
qFacets::m_doExportFacetsInfo
QAction * m_doExportFacetsInfo
Associated action.
Definition: qFacets.h:103
ecvScalarField.h
ecvProgressDialog::setMethodTitle
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.
Definition: ecvProgressDialog.h:49
StereogramWidget::StereogramWidget
StereogramWidget(QWidget *parent=0)
Default constructor.
Definition: stereogramDlg.cpp:61
ecvProgressDialog.h
qFacets::m_fastMarchingExtraction
QAction * m_fastMarchingExtraction
Associated action.
Definition: qFacets.h:99
cloudViewer::DgmOctree
The octree structure used throughout the library.
Definition: DgmOctree.h:39
FacetsClassifier::ByOrientation
static bool ByOrientation(ccHObject *facetGroup, double angularStep_deg, double maxDist)
Classifies the facets based on their orientation.
Definition: facetsClassifier.h:320
ccColorScaleEditorDialog
Dialog to edit/create color scales.
Definition: ecvColorScaleEditorDlg.h:27
FacetsExportDlg::SHAPE_FILE_IO
@ SHAPE_FILE_IO
Definition: facetsExportDlg.h:20
CellsFusionDlg::Algorithm
Algorithm
Cell fusion algorithm.
Definition: cellsFusionDlg.h:17
FastMarchingForFacetExtraction::initTrialCells
virtual void initTrialCells() override
Initializes the TRIAL cells list.
Definition: fastMarchingForFacetExtraction.cpp:382
qFacets::getFacetsInCurrentSelection
void getFacetsInCurrentSelection(FacetSet &facets) const
Returns all the facets in the current selection.
Definition: qFacets.cpp:557
StereogramWidget::m_clickDipSpan_deg
double m_clickDipSpan_deg
Click area span along dip (in degrees)
Definition: stereogramDlg.h:136
StereogramWidget::~StereogramWidget
virtual ~StereogramWidget()
Destructor.
Definition: stereogramDlg.cpp:90
ccFacet::getRMS
double getRMS() const
Returns associated RMS.
Definition: ecvFacet.h:68
AnglesCustomPlot::~AnglesCustomPlot
~AnglesCustomPlot()
Definition: AnglesCustomPlot.cpp:36
cloudViewer::utility::floor
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
ccGenericPointCloud::unallocateVisibilityArray
virtual void unallocateVisibilityArray()
Erases the points visibility information.
Definition: ecvGenericPointCloud.cpp:72
a
a[190]
Definition: essential_matrix_poly.h:19
ccDrawableObject::showSF
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
QtCompat::SkipEmptyParts
constexpr Qt::SplitBehavior SkipEmptyParts
Definition: QtCompat.h:302
FacetDensityGrid::minMaxDensity
double minMaxDensity[2]
Min/max density.
Definition: stereogramDlg.cpp:58
cloudViewer::TrueKdTree::Leaf::planeEq
PointCoordinateType planeEq[4]
Definition: TrueKdTree.h:84
cloudViewer::DistanceComputationTools::RMS
@ RMS
Definition: DistanceComputationTools.h:411
ccDrawableObject::setVisible
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
Candidate::Candidate
Candidate()
Definition: kdTreeForFacetExtraction.cpp:37
cloudViewer::GenericProgressCallback::textCanBeEdited
virtual bool textCanBeEdited() const
Returns whether the dialog title and info can be updated or not.
Definition: GenericProgressCallback.h:70
POINT_VISIBLE
constexpr unsigned char POINT_VISIBLE
Definition: CVConst.h:92
fields
std::vector< PCLPointField > fields
Definition: FileIOFactory.cpp:141
FacetsExportDlg::IOMode
IOMode
Usage mode.
Definition: facetsExportDlg.h:20
s_classifAngleStep
static double s_classifAngleStep
Definition: qFacets.cpp:60
cloudViewer::TrueKdTree::build
bool build(double maxError, DistanceComputationTools::ERROR_MEASURES errorMeasure=DistanceComputationTools::RMS, unsigned minPointCountPerCell=3, unsigned maxPointCountPerCell=0, GenericProgressCallback *progressCb=nullptr)
Builds KD-tree.
Definition: TrueKdTree.cpp:247
Tuple3Tpl::z
Type z
Definition: CVGeom.h:137
ccOctree::ComputeAverageNorm
static CCVector3 ComputeAverageNorm(cloudViewer::ReferenceCloud *subset, ccGenericPointCloud *sourceCloud)
Computes the average normal of a set of points.
Definition: ecvOctree.cpp:299
kdTreeForFacetExtraction.h
qFacets::exportFacets
void exportFacets()
Exports facets (as shapefiles)
Definition: qFacets.cpp:682
ecvColor::RgbTpl::b
Type b
Definition: ecvColorTypes.h:54
ccPolyline::setGlobalShift
virtual void setGlobalShift(const CCVector3d &shift) override
Sets shift applied to original coordinates (information storage only)
Definition: ecvPolyline.cpp:568
cloudViewer::ReferenceCloud::resize
virtual bool resize(unsigned n)
Presets the size of the vector used to store point references.
Definition: ReferenceCloud.cpp:64
StereogramWidget::pointClicked
void pointClicked(double dip_deg, double dipDir_deg)
Signal emitted when the mouse (left) button is clicked.
FastMarchingForFacetExtraction::m_currentFacetPoints
cloudViewer::ReferenceCloud * m_currentFacetPoints
Current facet points.
Definition: fastMarchingForFacetExtraction.h:117
disclaimerDialog.h
fastMarchingForFacetExtraction.h
cloudViewer::FastMarching::Cell::T_INF
static float T_INF()
Returns infinite time value.
Definition: FastMarching.h:98
ecvMainAppInterface::removeFromDB
virtual void removeFromDB(ccHObject *obj, bool autoDelete=true)=0
Removes an entity from main db tree.
cloudViewer::Neighbourhood::getLSPlane
const PointCoordinateType * getLSPlane()
Returns best interpolating plane equation (Least-square)
Definition: Neighbourhood.cpp:69
AnglesCustomPlot::mousePressEvent
void mousePressEvent(QMouseEvent *event) override
Definition: AnglesCustomPlot.cpp:126
cloudViewer::FastMarching::Cell::ACTIVE_CELL
@ ACTIVE_CELL
Definition: FastMarching.h:105
AnglesCustomPlot::computeHistogram
bool computeHistogram(const QVector< double > &data)
Definition: AnglesCustomPlot.cpp:41
cloudViewer::GenericIndexedCloudPersist
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
cloudViewer::DegreesToRadians
float DegreesToRadians(int degrees)
Convert degrees to radians.
Definition: CVMath.h:98
cloudViewer::ReferenceCloud::clear
virtual void clear(bool releaseMemory=false)
Clears the cloud.
Definition: ReferenceCloud.cpp:26
StereogramDialog::m_classifWidget
StereogramWidget * m_classifWidget
Associated widget.
Definition: stereogramDlg.h:187
ecvMainAppInterface::addToDB
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
ccColorScaleSelector::setSelectedScale
void setSelectedScale(QString uuid)
Sets selected combo box item (scale) by UUID.
Definition: ecvColorScaleSelector.cpp:93
cloudViewer::FastMarching::computeT
virtual float computeT(unsigned index)
Computes the front arrival time at a given cell.
Definition: FastMarching.cpp:234
FastMarchingForFacetExtraction::PlanarCell::planarError
ScalarType planarError
Cell planarity error.
Definition: fastMarchingForFacetExtraction.h:99
cloudViewer::GenericCloud::setPointScalarValue
virtual void setPointScalarValue(unsigned pointIndex, ScalarType value)=0
Sets the ith point associated scalar value.
e3
double e3[36]
Definition: essential_matrix_poly.h:13
StereogramWidget::m_clickDipDirSpan_deg
double m_clickDipDirSpan_deg
Click area span along dip direction (in degrees)
Definition: stereogramDlg.h:138
qFacets::exportFacetsInfo
void exportFacetsInfo()
Exports statistics on a set of facets.
Definition: qFacets.cpp:1034
ecvHObjectCaster.h
ccHObject::getChildrenNumber
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
Vector3Tpl::dot
Type dot(const Vector3Tpl &v) const
Dot product.
Definition: CVGeom.h:408
ccColorScale
Color scale.
Definition: ecvColorScale.h:71
ccGLMatrix
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
cloudViewer::DistanceComputationTools::ComputeCloud2PlaneDistance
static ScalarType ComputeCloud2PlaneDistance(cloudViewer::GenericCloud *cloud, const PointCoordinateType *planeEquation, ERROR_MEASURES measureType)
Definition: DistanceComputationTools.cpp:3651
cloudViewer::DistanceComputationTools::MAX_DIST_95_PERCENT
@ MAX_DIST_95_PERCENT
Definition: DistanceComputationTools.h:413
cloudViewer::GenericIndexedCloud::getPoint
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
StereogramDialog::m_app
ecvMainAppInterface * m_app
Main application interface.
Definition: stereogramDlg.h:193
Candidate::centroid
CCVector3 centroid
Definition: kdTreeForFacetExtraction.cpp:35
cloudViewer::FastMarching::m_activeCells
std::vector< unsigned > m_activeCells
ACTIVE cells list.
Definition: FastMarching.h:212
ccObject::getUniqueID
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
AnglesCustomPlot::createQCPBars
void createQCPBars(const QString &xLabel)
Definition: AnglesCustomPlot.cpp:92
ccKdTree::getNeighborLeaves
bool getNeighborLeaves(BaseNode *cell, ccKdTree::LeafSet &neighbors, const int *userDataFilter=0)
Returns the neighbor leaves around a given cell.
Definition: ecvKdTree.cpp:335
cloudViewer::FastMarching::m_initialized
bool m_initialized
Specifiies whether structure is initialized or not.
Definition: FastMarching.h:219
s_kdTreeFusionMaxAngle_deg
static double s_kdTreeFusionMaxAngle_deg
Definition: qFacets.cpp:57
cloudViewer::GenericProgressCallback::start
virtual void start()=0
QCustomPlot
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:2020
ccFacet::getContour
ccPolyline * getContour()
Returns contour polyline (if any)
Definition: ecvFacet.h:86
StereogramWidget::m_densityColorScale
ccColorScale::Shared m_densityColorScale
Density color scale.
Definition: stereogramDlg.h:119
qFacets::m_doShowStereogram
QAction * m_doShowStereogram
Associated action.
Definition: qFacets.h:107
FastMarchingForFacetExtraction::computeTCoefApprox
virtual float computeTCoefApprox(cloudViewer::FastMarching::Cell *currentCell, cloudViewer::FastMarching::Cell *neighbourCell) const override
Computes the front acceleration between two cells.
Definition: fastMarchingForFacetExtraction.cpp:220
cloudViewer::ReferenceCloudContainer
std::vector< ReferenceCloud * > ReferenceCloudContainer
A standard container to store several subsets of points.
Definition: AutoSegmentationTools.h:28
count
int count
Definition: FileIOFactory.cpp:132
CV_TYPES::HIERARCHY_OBJECT
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
StereogramDialog::onFilterEnabled
void onFilterEnabled(bool)
Definition: stereogramDlg.cpp:704
ComputeCellStats
static bool ComputeCellStats(cloudViewer::ReferenceCloud *subset, CCVector3 &N, CCVector3 &C, ScalarType &error, cloudViewer::DistanceComputationTools::ERROR_MEASURES errorMeasure)
Definition: fastMarchingForFacetExtraction.cpp:42
AnglesCustomPlot::dataContainer
QSharedPointer< QCPBarsDataContainer > dataContainer()
Definition: AnglesCustomPlot.h:33
CVLog::Warning
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
facetsExportDlg.h
FastMarchingForFacetExtraction::ExtractPlanarFacets
static int ExtractPlanarFacets(ccPointCloud *theCloud, unsigned char octreeLevel, ScalarType maxError, cloudViewer::DistanceComputationTools::ERROR_MEASURES errorMeasure, bool useRetroProjectionError=true, cloudViewer::GenericProgressCallback *progressCb=0, cloudViewer::DgmOctree *_theOctree=0)
Static entry point (helper)
Definition: fastMarchingForFacetExtraction.cpp:413
ccDrawableObject::setRedraw
virtual void setRedraw(bool state)
Sets entity redraw mode.
Definition: ecvDrawableObject.h:48
ecvMainAppInterface::getSelectedEntities
virtual const ccHObject::Container & getSelectedEntities() const =0
Returns currently selected entities ("read only")
ecvColorScalesManager.h
cloudViewer::ReferenceCloud
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
FastMarchingForFacetExtraction::m_useRetroProjectionError
bool m_useRetroProjectionError
Whether to use retro-projection error in propagation.
Definition: fastMarchingForFacetExtraction.h:129
ecvProgressDialog::setInfo
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
Definition: ecvProgressDialog.h:52
s_stereogramResolution_deg
static double s_stereogramResolution_deg
Definition: qFacets.cpp:64
ecvColor::RgbTpl
RGB color structure.
Definition: ecvColorTypes.h:49
StereogramDialog::onPointClicked
void onPointClicked(double, double)
Definition: stereogramDlg.cpp:735
cloudViewer::FastMarching::Cell::FAR_CELL
@ FAR_CELL
Definition: FastMarching.h:103
StereogramWidget::m_angularStep_deg
double m_angularStep_deg
Angular step (in degrees)
Definition: stereogramDlg.h:108
ccPointCloud::createNewCloudFromVisibilitySelection
ccGenericPointCloud * createNewCloudFromVisibilitySelection(bool removeSelectedPoints=false, VisibilityTableType *visTable=nullptr, std::vector< int > *newIndexesOfRemainingPoints=nullptr, bool silent=false, cloudViewer::ReferenceCloud *selection=nullptr) override
Definition: ecvPointCloud.cpp:3043
classificationParamsDlg.h
ccMesh
Triangular mesh.
Definition: ecvMesh.h:35
polygon
boost::geometry::model::polygon< point_xy > polygon
Definition: TreeIso.cpp:37
cloudViewer::PointCloudTpl::setPointScalarValue
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Definition: PointCloudTpl.h:120
ccShiftedObject::getGlobalScale
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
cloudViewer::FastMarching::m_gridLevel
unsigned char m_gridLevel
Equivalent octree subdivision level.
Definition: FastMarching.h:240
StereogramDialog::m_colorScaleSelector
ccColorScaleSelector * m_colorScaleSelector
Color scale selector/editor.
Definition: stereogramDlg.h:190
StereogramWidget::setTrackedCenter
void setTrackedCenter(double dip_deg, double dipDir_deg)
Sets tracked center position.
Definition: stereogramDlg.cpp:307
cloudViewer::FastMarching::addIgnoredCell
virtual void addIgnoredCell(unsigned index)
Add a cell to the IGNORED cells list.
Definition: FastMarching.cpp:201
ccGLMatrixTpl::invert
void invert()
Inverts transformation.
Definition: ecvGLMatrixTpl.h:1294
s_errorMeasureType
static int s_errorMeasureType
Definition: qFacets.cpp:54
StereogramWidget::m_center
QPoint m_center
Stereogram center (pixels)
Definition: stereogramDlg.h:141
cloudViewer::BoundingBoxTpl::getDiagVec
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
cloudViewer::DgmOctree::associatedCloud
GenericIndexedCloudPersist * associatedCloud() const
Returns the associated cloud.
Definition: DgmOctree.h:1191
PC_NAN
constexpr PointCoordinateType PC_NAN
'NaN' as a PointCoordinateType value
Definition: CVConst.h:71
ccColorScalesManager::getDefaultScale
ccColorScale::Shared getDefaultScale(DEFAULT_SCALES scale) const
Returns a pre-defined color scale.
Definition: ecvColorScalesManager.h:68
ccHObject
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Tuple3Tpl::y
Type y
Definition: CVGeom.h:137
FacetDensityGrid::FacetDensityGrid
FacetDensityGrid()
Default constructor.
Definition: stereogramDlg.cpp:34
s_errorMaxPerFacet
static double s_errorMaxPerFacet
Definition: qFacets.cpp:53
ccObject::getName
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
StereogramWidget::mousePressEvent
virtual void mousePressEvent(QMouseEvent *e)
Definition: stereogramDlg.cpp:263
qFacets::classifyFacetsByAngle
void classifyFacetsByAngle()
Classifies facets by orientation.
Definition: qFacets.cpp:976
ParallelSort.h
StereogramWidget
Orientation-based classification widget.
Definition: stereogramDlg.h:39
ccPolyline::setGlobalScale
virtual void setGlobalScale(double scale) override
Definition: ecvPolyline.cpp:578
cloudViewer::Neighbourhood::getGravityCenter
const CCVector3 * getGravityCenter()
Returns gravity center.
Definition: Neighbourhood.cpp:58
AnglesCustomPlot
Definition: AnglesCustomPlot.h:18
StereogramWidget::setTicksFreq
void setTicksFreq(int freq)
Sets the ticks frequency (0 = no ticks)
Definition: stereogramDlg.h:81
ccPolyline::set2DMode
void set2DMode(bool state)
Defines if the polyline is considered as 2D or 3D.
Definition: ecvPolyline.cpp:144
cloudViewer::DistanceComputationTools::MAX_DIST
@ MAX_DIST
Definition: DistanceComputationTools.h:415
Vector3Tpl::norm2
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:417
ccGenericPointCloud::getOwnBB
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
ecvColor::red
constexpr Rgb red(MAX, 0, 0)
StereogramDialog::exportCurrentSelection
void exportCurrentSelection()
Definition: stereogramDlg.cpp:853
ecvColor::Generator::Random
static Rgb Random(bool lightOnly=true)
Generates a random color.
Definition: ecvColorTypes.cpp:84
ccHObject::DP_NONE
@ DP_NONE
Definition: ecvHObject.h:258
ecvMainAppInterface::refreshAll
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
FacetMetaData::rms
double rms
Definition: qFacets.cpp:593
CellsFusionDlg::ALGO_KD_TREE
@ ALGO_KD_TREE
Definition: cellsFusionDlg.h:17
X
void * X
Definition: SmallVector.cpp:45
s_OriSubFamilyKey
static const QString s_OriSubFamilyKey
Definition: facetsClassifier.h:21
cloudViewer::NormalizedProgress
Definition: GenericProgressCallback.h:78
PointCoordinateType
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
ShpFilter.h
ccStdPluginInterface
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
StereogramWidget::showHSVRing
void showHSVRing(bool state)
Whether to show the 'HSV' ring or not.
Definition: stereogramDlg.h:84
ccFacet
Facet.
Definition: ecvFacet.h:25
cloudViewer::DgmOctree::build
int build(GenericProgressCallback *progressCb=nullptr)
Builds the structure.
Definition: DgmOctree.cpp:196
ColorCompType
unsigned char ColorCompType
Default color components type (R,G and B)
Definition: ecvColorTypes.h:29
FacetsExportDlg::m_mode
IOMode m_mode
Current I/O mode.
Definition: facetsExportDlg.h:32
s_octreeLevel
static unsigned s_octreeLevel
Definition: qFacets.cpp:49
ccHObject::DP_PARENT_OF_OTHER
@ DP_PARENT_OF_OTHER
Definition: ecvHObject.h:266
cloudViewer::FastMarching::Cell::TRIAL_CELL
@ TRIAL_CELL
Definition: FastMarching.h:104
FastMarchingForFacetExtraction::PlanarCell
A Fast Marching grid cell for planar facets extraction.
Definition: fastMarchingForFacetExtraction.h:83
ccHObject::addChild
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
ccColorScalesManager::toPersistentSettings
void toPersistentSettings() const
Save custom color scales to persistent settings.
Definition: ecvColorScalesManager.cpp:420
cloudViewer::DgmOctree::cellCodesContainer
std::vector< CellCode > cellCodesContainer
Octree cell codes container.
Definition: DgmOctree.h:92
s_fcDlg
static StereogramDialog * s_fcDlg
Definition: qFacets.cpp:68
CC_FERR_NO_ERROR
@ CC_FERR_NO_ERROR
Definition: FileIOFilter.h:21
StereogramDialog::onFilterSizeChanged
void onFilterSizeChanged(double)
Definition: stereogramDlg.cpp:715
cloudViewer::FastMarching::m_octree
DgmOctree * m_octree
Associated octree.
Definition: FastMarching.h:238
c_darkColorRatio
const double c_darkColorRatio
Definition: facetsClassifier.h:24
cloudViewer::ReferenceCloud::getAssociatedCloud
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
StereogramWidget::m_radius
int m_radius
Stereogram radius (pixels)
Definition: stereogramDlg.h:143
StereogramParamsDlg
Dialog for stereogram parameters (qFacets plugin)
Definition: stereogramDlg.h:29
FastMarchingForFacetExtraction::updateFlagsTable
unsigned updateFlagsTable(ccGenericPointCloud *theCloud, std::vector< unsigned char > &flags, unsigned facetIndex)
Updates a list of point flags, indicating the points alreay processed.
Definition: fastMarchingForFacetExtraction.cpp:284
cloudViewer::DgmOctree::getPointsInCell
bool getPointsInCell(CellCode cellCode, unsigned char level, ReferenceCloud *subset, bool isCodeTruncated=false, bool clearOutputCloud=true) const
Returns the points lying in a specific cell.
Definition: DgmOctree.cpp:537
POINT_HIDDEN
constexpr unsigned char POINT_HIDDEN
Definition: CVConst.h:94
CellsFusionDlg
Definition: cellsFusionDlg.h:14
s_kdTreeFusionMaxRelativeDistance
static double s_kdTreeFusionMaxRelativeDistance
Definition: qFacets.cpp:58
ecvOctree.h
ClassificationParamsDlg
Dialog for orientation-based classification of facets (qFacets plugin)
Definition: classificationParamsDlg.h:15
cloudViewer::PointCloudTpl::setCurrentScalarField
void setCurrentScalarField(int index)
Sets both the INPUT & OUTPUT scalar field.
Definition: PointCloudTpl.h:435
ComputeFacetExtensions
void ComputeFacetExtensions(CCVector3 &N, ccPolyline *facetContour, double &horizExt, double &vertExt)
Definition: qFacets.cpp:644
qFacets::extractFacets
void extractFacets(CellsFusionDlg::Algorithm algo)
Uses the given algorithm to detect planar facets.
Definition: qFacets.cpp:202
c_3dNeighboursPosShift
const int c_3dNeighboursPosShift[]
26-connexity neighbouring cells positions (common edges)
Definition: fastMarchingForFacetExtraction.cpp:19
ccPlane
Plane (primitive)
Definition: ecvPlane.h:17
FastMarchingForFacetExtraction::PlanarCell::N
CCVector3 N
The local cell normal.
Definition: fastMarchingForFacetExtraction.h:93
cloudViewer::DgmOctree::getCellPos
void getCellPos(CellCode code, unsigned char level, Tuple3i &cellPos, bool isCodeTruncated) const
Definition: DgmOctree.cpp:498
ccFacet::setColor
void setColor(const ecvColor::Rgb &rgb)
Sets the facet unique color.
Definition: ecvFacet.cpp:413
ecvPointCloud.h
cloudViewer::TrueKdTree::Leaf::error
ScalarType error
Definition: TrueKdTree.h:85
cloudViewer::GenericProgressCallback::update
virtual void update(float percent)=0
Notifies the algorithm progress.
frame
Rect frame
Definition: BitmapWindowSystem.cpp:31
FacetDensityGrid::step_R
double step_R
Grid step along X (in unit)
Definition: stereogramDlg.cpp:53
cloudViewer::utility::ceil
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
FacetsExportDlg::browseDestination
void browseDestination()
Called when the 'browse' tool button is pressed.
Definition: facetsExportDlg.cpp:24
Candidate::leaf
ccKdTree::Leaf * leaf
Definition: kdTreeForFacetExtraction.cpp:32
StereogramDialog::onHSVColorsToggled
void onHSVColorsToggled(bool)
Definition: stereogramDlg.cpp:951
cloudViewer::FastMarching::addActiveCell
virtual void addActiveCell(unsigned index)
Add a cell to the ACTIVE cells list.
Definition: FastMarching.cpp:196
ccScalarField
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
ecvMainAppInterface::getColorScalesManager
virtual ccColorScalesManager * getColorScalesManager()=0
Returns color scale manager (unique instance)
FastMarchingForFacetExtraction::propagate
virtual int propagate() override
Propagates the front.
Definition: fastMarchingForFacetExtraction.cpp:267
StereogramWidget::m_densityColorScaleSteps
unsigned m_densityColorScaleSteps
Density color scale steps.
Definition: stereogramDlg.h:121
ecvColor::magenta
constexpr Rgb magenta(MAX, 0, MAX)
FacetDensityGrid::~FacetDensityGrid
~FacetDensityGrid()
Destructor.
Definition: stereogramDlg.cpp:40
ccGenericPointCloud::resetVisibilityArray
virtual bool resetVisibilityArray()
Resets the associated visibility array.
Definition: ecvGenericPointCloud.cpp:47
ccGenericMesh::enableStippling
void enableStippling(bool state)
Enables polygon stippling.
Definition: ecvGenericMesh.h:207
StereogramDialog::m_facetGroupUniqueID
int m_facetGroupUniqueID
Associated set of facets (unique ID)
Definition: stereogramDlg.h:196
ccPolyline::setColor
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
cloudViewer::ReferenceCloud::add
bool add(const ReferenceCloud &cloud)
Add another reference cloud.
Definition: ReferenceCloud.cpp:166
ccFacet::invertNormal
void invertNormal()
Inverts the facet normal.
Definition: ecvFacet.cpp:653
FacetDensityGrid
Density grid.
Definition: stereogramDlg.cpp:31
ccPolyline
Colored polyline.
Definition: ecvPolyline.h:23
GetFacetMetaData
void GetFacetMetaData(ccFacet *facet, FacetMetaData &data)
Definition: qFacets.cpp:611
FacetMetaData::subfamilyIndex
int subfamilyIndex
Definition: qFacets.cpp:595
FacetDensityGrid::rSteps
unsigned rSteps
Dimension (X)
Definition: stereogramDlg.cpp:48
StereogramWidget::m_clickDip_deg
double m_clickDip_deg
Last mouse click equivalent dip (in degrees)
Definition: stereogramDlg.h:132
ccGenericPointCloud::VisibilityTableType
std::vector< unsigned char > VisibilityTableType
Array of "visibility" information for each point.
Definition: ecvGenericPointCloud.h:165
StereogramDialog::colorScaleChanged
void colorScaleChanged(int)
Definition: stereogramDlg.cpp:958
cloudViewer::DgmOctree::getTheCellPosWhichIncludesThePoint
void getTheCellPosWhichIncludesThePoint(const CCVector3 *thePoint, Tuple3i &cellPos) const
Definition: DgmOctree.h:779