 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
22 const QString& xLabel,
24 QWidget* parent =
nullptr);
34 return m_bars->
data();
47 Ui::AnglesCustomPlot* ui;
49 QVector<double> m_axis;
51 QVector<double> m_histogram;
KD-tree structure.
Definition: ecvKdTree.h:24
constexpr Rgb white(MAX, MAX, MAX)
static double s_maxEdgeLength
Definition: qFacets.cpp:55
bool init(double angularStep_deg, ccHObject *facetGroup, double resolution_deg=2.0)
Inits dialog.
Definition: stereogramDlg.cpp:667
unsigned ddSteps
Dimension (Y)
Definition: stereogramDlg.cpp:50
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
static bool ShowDisclaimer(ecvMainAppInterface *app)
Definition: disclaimerDialog.h:31
double step_deg
Grid step along Y (in degrees)
Definition: stereogramDlg.cpp:55
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
std::string filename
Definition: PointCloudIO.cpp:47
void showNormals(bool state) override
Sets normals visibility.
Definition: ecvGenericMesh.cpp:44
QAction * m_doFuseKdTreeCells
Associated action.
Definition: qFacets.h:97
bool haveOneSelection() const
Checks if we have exactly one selection.
Definition: ecvMainAppInterface.h:113
void emitCloseTab()
Definition: AnglesCustomPlot.h:37
@ STD_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:117
void normalize()
Sets vector norm to unity.
Definition: CVGeom.h:428
void add(const Vector3Tpl< T > &P)
'Enlarges' the bounding box with a point
Definition: BoundingBox.h:131
void onTicksFreqChanged(int)
Definition: stereogramDlg.cpp:944
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
constexpr Rgb black(0, 0, 0)
QCPBarDataMap * data() const
Definition: qcustomplot.h:3455
T getMinBoxDim() const
Returns minimal box dimension.
Definition: BoundingBox.h:178
virtual void dispToConsole(QString message, ConsoleMessageLevel level=STD_CONSOLE_MESSAGE)=0
Type x
Definition: CVGeom.h:137
StereogramDialog(ecvMainAppInterface *app)
Default constructor.
Definition: stereogramDlg.cpp:596
unsigned size() const override
Returns the number of points.
Definition: ReferenceCloud.h:41
const CCVector3 & getCenter() const
Returns the facet center.
Definition: ecvFacet.h:78
virtual unsigned size() const =0
Returns the number of points.
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
std::unordered_set< Leaf * > LeafSet
A set of leaves.
Definition: ecvKdTree.h:64
ccHObject * getParent() const
Returns parent object.
Definition: ecvHObject.h:245
static const unsigned MIN_STEPS
Minimum number of steps.
Definition: ecvColorScale.h:99
static unsigned s_minPointsPerFacet
Definition: qFacets.cpp:52
static double s_stereogramAngleStep
Definition: qFacets.cpp:63
T * getColumn(unsigned index)
Returns a pointer to a given column.
Definition: ecvGLMatrixTpl.h:904
bool getLeaves(LeafVector &leaves) const
Returns all leaf nodes.
Definition: TrueKdTree.cpp:321
GraphType data
Definition: graph_cut.cc:138
static ccPointCloud * s_lastCloud
Definition: qFacets.cpp:65
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
QSharedPointer< ccColorScale > Shared
Shared pointer type.
Definition: ecvColorScale.h:74
bool getCellCodes(unsigned char level, cellCodesContainer &vec, bool truncatedCodes=false) const
Definition: DgmOctree.cpp:2822
virtual QMainWindow * getMainWindow()=0
Returns main window.
#define signals
Definition: PythonPlugin.cpp:26
virtual void setName(const QString &name)
Sets object name.
Definition: ecvObject.h:75
void fuseKdTreeCells()
Fuses the cells of a kd-tree to produces planar facets.
Definition: qFacets.cpp:200
std::unordered_set< ccFacet * > FacetSet
Set of facets (pointers)
Definition: qFacets.h:86
static ccColorScale::Shared GetDefaultScale(DEFAULT_SCALES scale=BGYR)
Returns a pre-defined color scale (static shortcut)
Definition: ecvColorScalesManager.h:61
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
Bounding box structure.
Definition: ecvBBox.h:25
const CCVector3 & getPointNormal(unsigned pointIndex) const override
Returns normal corresponding to a given point.
Definition: ecvPointCloud.cpp:1555
int userData
Definition: TrueKdTree.h:86
void setTranslation(const Vector3Tpl< float > &Tr)
Sets translation (float version)
Definition: ecvGLMatrixTpl.h:836
@ POINT_CLOUD
Definition: CVTypes.h:104
virtual void toIdentity()
Sets matrix to identity.
Definition: ecvGLMatrixTpl.h:622
virtual void start() override
Definition: ecvProgressDialog.cpp:70
void showStereogram()
Displays the selected entity stereogram.
Definition: qFacets.cpp:942
@ WRN_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:118
const CCVector3 * getPoint(unsigned index) const override
Definition: PointCloudTpl.h:143
@ FACET
Definition: CVTypes.h:109
std::vector< Leaf * > LeafVector
A vector of leaves.
Definition: TrueKdTree.h:105
QVariant getMetaData(const QString &key) const
Returns a given associated meta data.
Definition: ecvObject.cpp:208
const CCVector3 * getPoint(unsigned index) const override
Returns the ith point.
Definition: ReferenceCloud.h:79
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
virtual bool isCancelRequested()=0
Checks if the process should be canceled.
Dialog for exporting facets or facets info (qFacets plugin)
Definition: facetsExportDlg.h:15
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
static const QString s_OriFamilyKey
Definition: facetsClassifier.h:19
void rescale()
Definition: AnglesCustomPlot.cpp:111
unsigned size() const override
Definition: PointCloudTpl.h:38
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
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
Cell ** m_theGrid
Grid used to process Fast Marching.
Definition: FastMarching.h:235
QAction * m_doExportFacets
Associated action.
Definition: qFacets.h:101
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
Type r
Definition: ecvColorTypes.h:54
PointCoordinateType computeLargestRadius()
Definition: Neighbourhood.cpp:184
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvPlane.h:73
Definition: kdTreeForFacetExtraction.cpp:31
ccColorScale::Shared getSelectedScale() const
Returns currently selected color scale.
Definition: ecvColorScaleSelector.cpp:79
float RadiansToDegrees(int radians)
Convert radians to degrees.
Definition: CVMath.h:71
virtual void stop()=0
Notifies the fact that the process has ended.
void closeEvent(QCloseEvent *e)
Definition: stereogramDlg.cpp:697
Advanced editor for color scales.
Definition: ecvColorScaleSelector.h:23
Dialog for displaying the angular repartition of facets (qFacets plugin)
Definition: stereogramDlg.h:147
Tree leaf.
Definition: TrueKdTree.h:79
virtual void setMethodTitle(const char *methodTitle)=0
Notifies the algorithm title.
static bool s_fmUseRetroProjectionError
Definition: qFacets.cpp:50
ccFacet * clone() const
Clones this facet.
Definition: ecvFacet.cpp:65
A plottable representing a bar chart in a plot.
Definition: qcustomplot.h:3417
double * grid
Grid.
Definition: stereogramDlg.cpp:45
virtual unsigned getPointGlobalIndex(unsigned localIndex) const
Definition: ReferenceCloud.h:103
#define ParallelSort
Definition: ParallelSort.h:33
void onDensityColorStepsChanged(int)
Definition: stereogramDlg.cpp:936
Definition: GenericProgressCallback.h:20
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
static const int MAX_OCTREE_LEVEL
Max octree subdivision level.
Definition: DgmOctree.h:67
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
Vector3Tpl< PointCoordinateType > CCVector3
Default 3D Vector.
Definition: CVGeom.h:798
AnglesCustomPlot(const QVector< double > &data, const QString &xLabel, int nbBins, QWidget *parent=nullptr)
Definition: AnglesCustomPlot.cpp:15
Vector3Tpl< double > CCVector3d
Double 3D Vector.
Definition: CVGeom.h:804
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
ScalarField * getScalarField(int index) const
Returns a pointer to a specific scalar field.
Definition: PointCloudTpl.h:354
static const unsigned MAX_STEPS
Maximum number of steps (internal representation)
Definition: ecvColorScale.h:109
unsigned m_numberOfNeighbours
Current number of neighbours (6 or 26)
Definition: FastMarching.h:247
A generic Fast Marching grid cell.
Definition: FastMarching.h:95
core::Tensor result
Definition: VtkUtils.cpp:76
Color scales manager/container.
Definition: ecvColorScalesManager.h:17
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
Definition: ecvGenericPointCloud.cpp:97
bool enableScalarField() override
Definition: PointCloudTpl.h:77
virtual void setInfo(const char *infoStr)=0
Notifies some information about the ongoing process.
virtual bool setSeedCell(const Tuple3i &pos)
Sets a given cell as "seed".
Definition: FastMarching.cpp:150
int width
Definition: FileIOFactory.cpp:142
PointCoordinateType dist
Definition: kdTreeForFacetExtraction.cpp:33
QString defaultDocPath()
Shortcut for getting the documents location path.
Definition: ecvFileUtils.h:30
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
static double s_classifMaxDist
Definition: qFacets.cpp:61
void showNormalVector(bool state)
Show normal vector.
Definition: ecvPlanarEntityInterface.h:25
void updateFacetsFilter(bool enable)
Definition: stereogramDlg.cpp:753
void spawnColorScaleEditor()
Definition: stereogramDlg.cpp:969
Vector3Tpl< T > getTranslationAsVec3D() const
Returns a copy of the translation as a CCVector3.
Definition: ecvGLMatrixTpl.h:830
int height
Definition: FileIOFactory.cpp:143
int m_neighboursIndexShift[26]
Neighbours coordinates shifts in grid.
Definition: FastMarching.h:249
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
ReferenceCloud * points
Definition: TrueKdTree.h:83
PointCoordinateType radius
Definition: kdTreeForFacetExtraction.cpp:34
CCVector3 getNormal() const override
Returns the entity normal.
Definition: ecvFacet.h:63
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
void setWidth(PointCoordinateType width)
Sets the width of the line.
Definition: ecvPolyline.cpp:282
Vector3Tpl cross(const Vector3Tpl &v) const
Cross product.
Definition: CVGeom.h:412
virtual VisibilityTableType & getTheVisibilityArray()
Returns associated visibility array.
Definition: ecvGenericPointCloud.h:168
MouseEvent event
Definition: BitmapWindowSystem.cpp:61
@ BGYR
Definition: ecvColorScalesManager.h:30
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
STATE state
Cell state.
Definition: FastMarching.h:115
ccGenericPointCloud * associatedGenericCloud() const
Returns associated (generic) point cloud.
Definition: ecvKdTree.h:72
ccColorScale::Shared getActiveScale()
Returns active scale.
Definition: ecvColorScaleEditorDlg.h:48
@ ASCII_FILE_IO
Definition: facetsExportDlg.h:20
void extractFacetsWithFM()
Uses Fast Marching to detect planar facets.
Definition: qFacets.cpp:196
Candidate(ccKdTree::Leaf *l)
Definition: kdTreeForFacetExtraction.cpp:38
FacetsExportDlg(IOMode mode, QWidget *parent=0)
Default constructor.
Definition: facetsExportDlg.cpp:16
ccMesh * getPolygon()
Returns polygon mesh (if any)
Definition: ecvFacet.h:81
ScalarField * getCurrentOutScalarField() const
Returns the scalar field currently associated to the cloud output.
Definition: PointCloudTpl.h:400
const double * e
Definition: essential_matrix_poly.h:10
bool GreaterThanEpsilon(float x)
Test a floating point number against our epsilon (a very small number).
Definition: CVMath.h:37
@ PLANE
Definition: CVTypes.h:120
@ ERR_CONSOLE_MESSAGE
Definition: ecvMainAppInterface.h:119
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
QAction * m_doClassifyFacetsByAngle
Associated action.
Definition: qFacets.h:105
virtual void cleanLastPropagation()
Definition: FastMarching.cpp:143
Definition: sfEditDlg.h:16
ccHObject * find(unsigned uniqueID)
Finds an entity in this object hierarchy.
Definition: ecvHObject.cpp:594
Type g
Definition: ecvColorTypes.h:54
virtual bool isVisibilityTableInstantiated() const
Returns whether the visibility array is allocated or not.
Definition: ecvGenericPointCloud.cpp:76
virtual void stop() override
Notifies the fact that the process has ended.
Definition: ecvProgressDialog.cpp:76
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
@ ALGO_FAST_MARCHING
Definition: cellsFusionDlg.h:17
normal_z scalar
Definition: my_point_types.h:169
virtual void addTrialCell(unsigned index)
Add a cell to the TRIAL cells list.
Definition: FastMarching.cpp:191
static QString ConvertDipAndDipDirToString(PointCoordinateType dip_deg, PointCoordinateType dipDir_deg)
Converts geological 'dip direction & dip' parameters to a string.
Definition: ecvNormalVectors.cpp:815
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
virtual unsigned getNearestTrialCell()
Returns the TRIAL cell with the smallest front arrival time.
Definition: FastMarching.cpp:206
virtual void link()
Increase counter.
Definition: CVShareable.cpp:33
void init()
Inits selector with the Color Scales Manager.
Definition: ecvColorScaleSelector.cpp:44
ecvMainAppInterface * m_app
Main application interface.
Definition: ecvStdPluginInterface.h:85
ccHObject * createFacets(ccPointCloud *cloud, cloudViewer::ReferenceCloudContainer &components, unsigned minPointsPerComponent, double maxEdgeLength, bool randomColors, bool &error)
Creates facets from components.
Definition: qFacets.cpp:435
void onFilterCenterChanged(double)
Definition: stereogramDlg.cpp:725
void mouseDoubleClickEvent(QMouseEvent *event) override
Definition: AnglesCustomPlot.cpp:119
double getSurface() const
Returns associated surface area.
Definition: ecvFacet.h:70
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
virtual int initGridWithOctree(DgmOctree *octree, unsigned char gridLevel)
Definition: FastMarching.cpp:78
float m_neighboursDistance[26]
Neighbours distance weight.
Definition: FastMarching.h:251
unsigned pos2index(const Tuple3i &pos) const
Definition: FastMarching.h:87
virtual QWidget * getActiveWindow()=0
Definition: Neighbourhood.h:25
float T
Front arrival time.
Definition: FastMarching.h:118
bool hasNormals() const override
Returns whether normals are enabled or not.
Definition: ecvPointCloud.cpp:1693
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Sets the ith point associated scalar value.
Definition: ReferenceCloud.h:66
QAction * m_doExportFacetsInfo
Associated action.
Definition: qFacets.h:103
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.
Definition: ecvProgressDialog.h:49
QAction * m_fastMarchingExtraction
Associated action.
Definition: qFacets.h:99
The octree structure used throughout the library.
Definition: DgmOctree.h:39
static bool ByOrientation(ccHObject *facetGroup, double angularStep_deg, double maxDist)
Classifies the facets based on their orientation.
Definition: facetsClassifier.h:320
Dialog to edit/create color scales.
Definition: ecvColorScaleEditorDlg.h:27
@ SHAPE_FILE_IO
Definition: facetsExportDlg.h:20
Algorithm
Cell fusion algorithm.
Definition: cellsFusionDlg.h:17
void getFacetsInCurrentSelection(FacetSet &facets) const
Returns all the facets in the current selection.
Definition: qFacets.cpp:557
double getRMS() const
Returns associated RMS.
Definition: ecvFacet.h:68
~AnglesCustomPlot()
Definition: AnglesCustomPlot.cpp:36
MiniVec< float, N > floor(const MiniVec< float, N > &a)
Definition: MiniVec.h:75
virtual void unallocateVisibilityArray()
Erases the points visibility information.
Definition: ecvGenericPointCloud.cpp:72
a[190]
Definition: essential_matrix_poly.h:19
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
constexpr Qt::SplitBehavior SkipEmptyParts
Definition: QtCompat.h:302
double minMaxDensity[2]
Min/max density.
Definition: stereogramDlg.cpp:58
PointCoordinateType planeEq[4]
Definition: TrueKdTree.h:84
virtual void setVisible(bool state)
Sets entity visibility.
Definition: ecvDrawableObject.h:40
Candidate()
Definition: kdTreeForFacetExtraction.cpp:37
virtual bool textCanBeEdited() const
Returns whether the dialog title and info can be updated or not.
Definition: GenericProgressCallback.h:70
constexpr unsigned char POINT_VISIBLE
Definition: CVConst.h:92
std::vector< PCLPointField > fields
Definition: FileIOFactory.cpp:141
IOMode
Usage mode.
Definition: facetsExportDlg.h:20
static double s_classifAngleStep
Definition: qFacets.cpp:60
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
Type z
Definition: CVGeom.h:137
static CCVector3 ComputeAverageNorm(cloudViewer::ReferenceCloud *subset, ccGenericPointCloud *sourceCloud)
Computes the average normal of a set of points.
Definition: ecvOctree.cpp:299
void exportFacets()
Exports facets (as shapefiles)
Definition: qFacets.cpp:682
Type b
Definition: ecvColorTypes.h:54
virtual void setGlobalShift(const CCVector3d &shift) override
Sets shift applied to original coordinates (information storage only)
Definition: ecvPolyline.cpp:568
virtual bool resize(unsigned n)
Presets the size of the vector used to store point references.
Definition: ReferenceCloud.cpp:64
static float T_INF()
Returns infinite time value.
Definition: FastMarching.h:98
virtual void removeFromDB(ccHObject *obj, bool autoDelete=true)=0
Removes an entity from main db tree.
const PointCoordinateType * getLSPlane()
Returns best interpolating plane equation (Least-square)
Definition: Neighbourhood.cpp:69
void mousePressEvent(QMouseEvent *event) override
Definition: AnglesCustomPlot.cpp:126
@ ACTIVE_CELL
Definition: FastMarching.h:105
bool computeHistogram(const QVector< double > &data)
Definition: AnglesCustomPlot.cpp:41
A generic 3D point cloud with index-based and presistent access to points.
Definition: GenericIndexedCloudPersist.h:18
float DegreesToRadians(int degrees)
Convert degrees to radians.
Definition: CVMath.h:98
virtual void clear(bool releaseMemory=false)
Clears the cloud.
Definition: ReferenceCloud.cpp:26
StereogramWidget * m_classifWidget
Associated widget.
Definition: stereogramDlg.h:187
virtual void addToDB(ccHObject *obj, bool updateZoom=false, bool autoExpandDBTree=true, bool checkDimensions=false, bool autoRedraw=true)=0
void setSelectedScale(QString uuid)
Sets selected combo box item (scale) by UUID.
Definition: ecvColorScaleSelector.cpp:93
virtual float computeT(unsigned index)
Computes the front arrival time at a given cell.
Definition: FastMarching.cpp:234
virtual void setPointScalarValue(unsigned pointIndex, ScalarType value)=0
Sets the ith point associated scalar value.
double e3[36]
Definition: essential_matrix_poly.h:13
void exportFacetsInfo()
Exports statistics on a set of facets.
Definition: qFacets.cpp:1034
unsigned getChildrenNumber() const
Returns the number of children.
Definition: ecvHObject.h:312
Type dot(const Vector3Tpl &v) const
Dot product.
Definition: CVGeom.h:408
Color scale.
Definition: ecvColorScale.h:71
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
ecvMainAppInterface * m_app
Main application interface.
Definition: stereogramDlg.h:193
CCVector3 centroid
Definition: kdTreeForFacetExtraction.cpp:35
std::vector< unsigned > m_activeCells
ACTIVE cells list.
Definition: FastMarching.h:212
virtual unsigned getUniqueID() const
Returns object unique ID.
Definition: ecvObject.h:86
void createQCPBars(const QString &xLabel)
Definition: AnglesCustomPlot.cpp:92
bool getNeighborLeaves(BaseNode *cell, ccKdTree::LeafSet &neighbors, const int *userDataFilter=0)
Returns the neighbor leaves around a given cell.
Definition: ecvKdTree.cpp:335
bool m_initialized
Specifiies whether structure is initialized or not.
Definition: FastMarching.h:219
static double s_kdTreeFusionMaxAngle_deg
Definition: qFacets.cpp:57
The central class of the library. This is the QWidget which displays the plot and interacts with the ...
Definition: qcustomplot.h:2020
ccPolyline * getContour()
Returns contour polyline (if any)
Definition: ecvFacet.h:86
QAction * m_doShowStereogram
Associated action.
Definition: qFacets.h:107
std::vector< ReferenceCloud * > ReferenceCloudContainer
A standard container to store several subsets of points.
Definition: AutoSegmentationTools.h:28
int count
Definition: FileIOFactory.cpp:132
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
void onFilterEnabled(bool)
Definition: stereogramDlg.cpp:704
QSharedPointer< QCPBarsDataContainer > dataContainer()
Definition: AnglesCustomPlot.h:33
static bool Warning(const char *format,...)
Prints out a formatted warning message in console.
Definition: CVLog.cpp:133
virtual void setRedraw(bool state)
Sets entity redraw mode.
Definition: ecvDrawableObject.h:48
virtual const ccHObject::Container & getSelectedEntities() const =0
Returns currently selected entities ("read only")
A very simple point cloud (no point duplication)
Definition: ReferenceCloud.h:29
virtual void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
Definition: ecvProgressDialog.h:52
static double s_stereogramResolution_deg
Definition: qFacets.cpp:64
RGB color structure.
Definition: ecvColorTypes.h:49
void onPointClicked(double, double)
Definition: stereogramDlg.cpp:735
@ FAR_CELL
Definition: FastMarching.h:103
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
Triangular mesh.
Definition: ecvMesh.h:35
boost::geometry::model::polygon< point_xy > polygon
Definition: TreeIso.cpp:37
void setPointScalarValue(unsigned pointIndex, ScalarType value) override
Definition: PointCloudTpl.h:120
virtual double getGlobalScale() const
Returns the scale applied to original coordinates.
Definition: ecvShiftedObject.h:53
unsigned char m_gridLevel
Equivalent octree subdivision level.
Definition: FastMarching.h:240
ccColorScaleSelector * m_colorScaleSelector
Color scale selector/editor.
Definition: stereogramDlg.h:190
virtual void addIgnoredCell(unsigned index)
Add a cell to the IGNORED cells list.
Definition: FastMarching.cpp:201
void invert()
Inverts transformation.
Definition: ecvGLMatrixTpl.h:1294
static int s_errorMeasureType
Definition: qFacets.cpp:54
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
GenericIndexedCloudPersist * associatedCloud() const
Returns the associated cloud.
Definition: DgmOctree.h:1191
constexpr PointCoordinateType PC_NAN
'NaN' as a PointCoordinateType value
Definition: CVConst.h:71
ccColorScale::Shared getDefaultScale(DEFAULT_SCALES scale) const
Returns a pre-defined color scale.
Definition: ecvColorScalesManager.h:68
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
Type y
Definition: CVGeom.h:137
FacetDensityGrid()
Default constructor.
Definition: stereogramDlg.cpp:34
static double s_errorMaxPerFacet
Definition: qFacets.cpp:53
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
void classifyFacetsByAngle()
Classifies facets by orientation.
Definition: qFacets.cpp:976
virtual void setGlobalScale(double scale) override
Definition: ecvPolyline.cpp:578
const CCVector3 * getGravityCenter()
Returns gravity center.
Definition: Neighbourhood.cpp:58
Definition: AnglesCustomPlot.h:18
void set2DMode(bool state)
Defines if the polyline is considered as 2D or 3D.
Definition: ecvPolyline.cpp:144
Type norm2() const
Returns vector square norm.
Definition: CVGeom.h:417
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
constexpr Rgb red(MAX, 0, 0)
void exportCurrentSelection()
Definition: stereogramDlg.cpp:853
static Rgb Random(bool lightOnly=true)
Generates a random color.
Definition: ecvColorTypes.cpp:84
@ DP_NONE
Definition: ecvHObject.h:258
virtual void refreshAll(bool only2D=false, bool forceRedraw=true)=0
Redraws all GL windows that have the 'refresh' flag on.
@ ALGO_KD_TREE
Definition: cellsFusionDlg.h:17
void * X
Definition: SmallVector.cpp:45
static const QString s_OriSubFamilyKey
Definition: facetsClassifier.h:21
Definition: GenericProgressCallback.h:78
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
Standard ECV plugin interface.
Definition: ecvStdPluginInterface.h:31
Facet.
Definition: ecvFacet.h:25
int build(GenericProgressCallback *progressCb=nullptr)
Builds the structure.
Definition: DgmOctree.cpp:196
unsigned char ColorCompType
Default color components type (R,G and B)
Definition: ecvColorTypes.h:29
IOMode m_mode
Current I/O mode.
Definition: facetsExportDlg.h:32
static unsigned s_octreeLevel
Definition: qFacets.cpp:49
@ DP_PARENT_OF_OTHER
Definition: ecvHObject.h:266
@ TRIAL_CELL
Definition: FastMarching.h:104
virtual bool addChild(ccHObject *child, int dependencyFlags=DP_PARENT_OF_OTHER, int insertIndex=-1)
Adds a child.
Definition: ecvHObject.cpp:534
void toPersistentSettings() const
Save custom color scales to persistent settings.
Definition: ecvColorScalesManager.cpp:420
std::vector< CellCode > cellCodesContainer
Octree cell codes container.
Definition: DgmOctree.h:92
static StereogramDialog * s_fcDlg
Definition: qFacets.cpp:68
@ CC_FERR_NO_ERROR
Definition: FileIOFilter.h:21
void onFilterSizeChanged(double)
Definition: stereogramDlg.cpp:715
DgmOctree * m_octree
Associated octree.
Definition: FastMarching.h:238
const double c_darkColorRatio
Definition: facetsClassifier.h:24
virtual GenericIndexedCloudPersist * getAssociatedCloud()
Returns the associated (source) cloud.
Definition: ReferenceCloud.h:206
Dialog for stereogram parameters (qFacets plugin)
Definition: stereogramDlg.h:29
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
constexpr unsigned char POINT_HIDDEN
Definition: CVConst.h:94
Definition: cellsFusionDlg.h:14
static double s_kdTreeFusionMaxRelativeDistance
Definition: qFacets.cpp:58
Dialog for orientation-based classification of facets (qFacets plugin)
Definition: classificationParamsDlg.h:15
void setCurrentScalarField(int index)
Sets both the INPUT & OUTPUT scalar field.
Definition: PointCloudTpl.h:435
void ComputeFacetExtensions(CCVector3 &N, ccPolyline *facetContour, double &horizExt, double &vertExt)
Definition: qFacets.cpp:644
void extractFacets(CellsFusionDlg::Algorithm algo)
Uses the given algorithm to detect planar facets.
Definition: qFacets.cpp:202
Plane (primitive)
Definition: ecvPlane.h:17
void getCellPos(CellCode code, unsigned char level, Tuple3i &cellPos, bool isCodeTruncated) const
Definition: DgmOctree.cpp:498
void setColor(const ecvColor::Rgb &rgb)
Sets the facet unique color.
Definition: ecvFacet.cpp:413
ScalarType error
Definition: TrueKdTree.h:85
virtual void update(float percent)=0
Notifies the algorithm progress.
Rect frame
Definition: BitmapWindowSystem.cpp:31
double step_R
Grid step along X (in unit)
Definition: stereogramDlg.cpp:53
MiniVec< float, N > ceil(const MiniVec< float, N > &a)
Definition: MiniVec.h:89
void browseDestination()
Called when the 'browse' tool button is pressed.
Definition: facetsExportDlg.cpp:24
ccKdTree::Leaf * leaf
Definition: kdTreeForFacetExtraction.cpp:32
void onHSVColorsToggled(bool)
Definition: stereogramDlg.cpp:951
virtual void addActiveCell(unsigned index)
Add a cell to the ACTIVE cells list.
Definition: FastMarching.cpp:196
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
virtual ccColorScalesManager * getColorScalesManager()=0
Returns color scale manager (unique instance)
constexpr Rgb magenta(MAX, 0, MAX)
~FacetDensityGrid()
Destructor.
Definition: stereogramDlg.cpp:40
virtual bool resetVisibilityArray()
Resets the associated visibility array.
Definition: ecvGenericPointCloud.cpp:47
void enableStippling(bool state)
Enables polygon stippling.
Definition: ecvGenericMesh.h:207
int m_facetGroupUniqueID
Associated set of facets (unique ID)
Definition: stereogramDlg.h:196
void setColor(const ecvColor::Rgb &col)
Sets the polyline color.
Definition: ecvPolyline.h:81
bool add(const ReferenceCloud &cloud)
Add another reference cloud.
Definition: ReferenceCloud.cpp:166
void invertNormal()
Inverts the facet normal.
Definition: ecvFacet.cpp:653
Density grid.
Definition: stereogramDlg.cpp:31
Colored polyline.
Definition: ecvPolyline.h:23
void GetFacetMetaData(ccFacet *facet, FacetMetaData &data)
Definition: qFacets.cpp:611
unsigned rSteps
Dimension (X)
Definition: stereogramDlg.cpp:48
std::vector< unsigned char > VisibilityTableType
Array of "visibility" information for each point.
Definition: ecvGenericPointCloud.h:165
void colorScaleChanged(int)
Definition: stereogramDlg.cpp:958
void getTheCellPosWhichIncludesThePoint(const CCVector3 *thePoint, Tuple3i &cellPos) const
Definition: DgmOctree.h:779