 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
49 const CCVector3* roughnessUpDir =
nullptr,
50 QWidget* parent =
nullptr);
59 const CCVector3* roughnessUpDir =
nullptr,
60 QWidget* parent =
nullptr,
73 void** additionalParameters = 0);
84 unsigned refEntityIndex = 0,
virtual ccOctree::Shared computeOctree(cloudViewer::GenericProgressCallback *progressCb=nullptr, bool autoAddChild=true)
Computes the cloud octree.
Definition: ecvGenericPointCloud.cpp:124
int addScalarField(const char *uniqueName) override
Creates a new scalar field and registers it.
Definition: ecvPointCloud.cpp:4210
void deleteScalarField(int index) override
Deletes a specific scalar field.
Definition: ecvPointCloud.cpp:3237
@ Linearity
Definition: Neighbourhood.h:167
bool isKindOf(CV_CLASS_ENUM type) const
Definition: ecvObject.h:128
bool oneStep()
Increments total progress value of a single unit.
Definition: NormalizedProgress.cpp:99
normal_z x
Definition: my_point_types.h:165
Vector3Tpl< T > getCenter() const
Returns center.
Definition: BoundingBox.h:164
virtual unsigned size() const =0
Returns the number of points.
virtual void computeMinAndMax()
Determines the min and max values.
Definition: ScalarField.h:123
virtual void scale(PointCoordinateType fx, PointCoordinateType fy, PointCoordinateType fz, CCVector3 center=CCVector3(0, 0, 0))=0
Multiplies all coordinates by constant factors (one per dimension)
#define CC_ROUGHNESS_FIELD_NAME
Definition: ecvCommon.h:27
@ EigenEntropy
Definition: Neighbourhood.h:164
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
@ MESH
Definition: CVTypes.h:105
@ SurfaceVariation
Definition: Neighbourhood.h:170
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
Bounding box structure.
Definition: ecvBBox.h:25
void setCurrentOutScalarField(int index)
Sets the OUTPUT scalar field.
Definition: PointCloudTpl.h:421
static bool Print(const char *format,...)
Prints out a formatted message in console.
Definition: CVLog.cpp:113
@ POINT_CLOUD
Definition: CVTypes.h:104
virtual void start() override
Definition: ecvProgressDialog.cpp:70
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
std::vector< GeomCharacteristic > GeomCharacteristicSet
Set of GeomCharacteristic instances.
Definition: ecvLibAlgorithms.h:42
bool ComputeGeomCharacteristics(const GeomCharacteristicSet &characteristics, PointCoordinateType radius, ccHObject::Container &entities, const CCVector3 *roughnessUpDir, QWidget *parent)
Definition: ecvLibAlgorithms.cpp:109
CC_LIB_ALGORITHM
Definition: ecvLibAlgorithms.h:64
Type * data()
Definition: CVGeom.h:145
@ EigenValue3
Definition: Neighbourhood.h:175
@ Anisotropy
Definition: Neighbourhood.h:165
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
const CCVector3 * getLSPlaneX()
Returns best interpolating plane (Least-square) 'X' base vector.
Definition: Neighbourhood.cpp:88
QSharedPointer< ccOctree > Shared
Shared pointer.
Definition: ecvOctree.h:32
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
void setCurrentDisplayedScalarField(int index)
Sets the currently displayed scalar field.
Definition: ecvPointCloud.cpp:3227
@ PCA1
Definition: Neighbourhood.h:168
Backup "context" for an object.
Definition: ecvMainAppInterface.h:80
core::Tensor result
Definition: VtkUtils.cpp:76
virtual ccOctree::Shared getOctree() const
Returns the associated octree (if any)
Definition: ecvGenericPointCloud.cpp:97
@ MEAN_CURV
Definition: Neighbourhood.h:42
static bool Error(const char *format,...)
Display an error dialog with formatted message.
Definition: CVLog.cpp:143
T getMaxBoxDim() const
Returns maximal box dimension.
Definition: BoundingBox.h:185
@ Verticality
Definition: Neighbourhood.h:172
virtual const CCVector3d & getGlobalShift() const
Returns the shift applied to original coordinates.
Definition: ecvShiftedObject.h:46
@ ICP_SCALE
Definition: ecvLibAlgorithms.h:76
A 3D cloud interface with associated features (color, normals, octree, etc.)
Definition: ecvGenericPointCloud.h:45
3D Vector (templated version)
Definition: CVGeom.h:223
#define CC_CURVATURE_GAUSSIAN_FIELD_NAME
Definition: ecvCommon.h:29
void setCurrentInScalarField(int index)
Sets the INPUT scalar field.
Definition: PointCloudTpl.h:408
#define CC_CURVATURE_NORM_CHANGE_RATE_FIELD_NAME
Definition: ecvCommon.h:31
bool ComputeGeomCharacteristic(cloudViewer::GeometricalAnalysisTools::GeomCharacteristic c, int subOption, PointCoordinateType radius, ccHObject::Container &entities, const CCVector3 *roughnessUpDir, QWidget *parent, ecvProgressDialog *progressDialog)
Definition: ecvLibAlgorithms.cpp:146
void setSymmetricalScale(bool state)
Sets whether the color scale should be symmetrical or not.
Definition: ecvScalarField.cpp:123
bool ApplyScaleMatchingAlgorithm(ScaleMatchingAlgorithm algo, ccHObject::Container &entities, double icpRmsDiff, int icpFinalOverlap, unsigned refEntityIndex, QWidget *parent)
Definition: ecvLibAlgorithms.cpp:557
Definition: MainWindow.h:117
@ BB_MAX_DIM
Definition: ecvLibAlgorithms.h:76
int subOption
Definition: ecvLibAlgorithms.h:38
bool isValid() const
Returns whether bounding box is valid or not.
Definition: BoundingBox.h:203
constexpr double ZERO_TOLERANCE_D
Definition: CVConst.h:49
Graphical progress indicator (thread-safe)
Definition: ecvProgressDialog.h:27
Definition: Neighbourhood.h:25
virtual void setMethodTitle(const char *methodTitle) override
Notifies the algorithm title.
Definition: ecvProgressDialog.h:49
Definition: ecvLibAlgorithms.cpp:37
ScaleMatchingAlgorithm
Scale matching algorithms.
Definition: ecvLibAlgorithms.h:76
@ EigenValue2
Definition: Neighbourhood.h:174
@ EigenValuesSum
Definition: Neighbourhood.h:162
virtual void showSF(bool state)
Sets active scalarfield visibility.
Definition: ecvDrawableObject.h:108
GeomCharacteristic(cloudViewer::GeometricalAnalysisTools::GeomCharacteristic c, int option=0)
Definition: ecvLibAlgorithms.h:32
const PointCoordinateType * getLSPlane()
Returns best interpolating plane equation (Least-square)
Definition: Neighbourhood.cpp:69
@ BB_VOLUME
Definition: ecvLibAlgorithms.h:76
constexpr PointCoordinateType PC_ONE
'1' as a PointCoordinateType value
Definition: CVConst.h:67
Float version of ccGLMatrixTpl.
Definition: ecvGLMatrix.h:19
#define CC_LOCAL_VOL_DENSITY_FIELD_NAME
Definition: ecvCommon.h:26
virtual const CCVector3 * getPoint(unsigned index) const =0
Returns the ith point.
int getCurrentDisplayedScalarFieldIndex() const
Returns the currently displayed scalar field index (or -1 if none)
Definition: ecvPointCloud.cpp:3223
const char * getScalarFieldName(int index) const
Returns the name of a specific scalar field.
Definition: PointCloudTpl.h:365
int count
Definition: FileIOFactory.cpp:132
PointCoordinateType GetDefaultCloudKernelSize(ccGenericPointCloud *cloud, unsigned knn)
Returns a default first guess for algorithms kernel size (one cloud)
Definition: ecvLibAlgorithms.cpp:67
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 void setInfo(const char *infoStr) override
Notifies some information about the ongoing process.
Definition: ecvProgressDialog.h:52
#define CC_MOMENT_ORDER1_FIELD_NAME
Definition: ecvCommon.h:28
void putObjectBackIntoDBTree(ccHObject *obj, const ccHObjectContext &context) override
Adds back object to DB tree.
Definition: MainWindow.cpp:3758
Vector3Tpl< T > getDiagVec() const
Returns diagonal vector.
Definition: BoundingBox.h:169
virtual void setGlobalShift(double x, double y, double z)
Sets shift applied to original coordinates (information storage only)
Definition: ecvShiftedObject.h:33
@ GAUSSIAN_CURV
Definition: Neighbourhood.h:42
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
virtual QString getName() const
Returns object name.
Definition: ecvObject.h:72
virtual ccBBox getOwnBB(bool withGLFeatures=false)
Returns the entity's own bounding-box.
Definition: ecvHObject.cpp:757
cloudViewer::GeometricalAnalysisTools::GeomCharacteristic charac
Definition: ecvLibAlgorithms.h:37
ScalarField * getCurrentInScalarField() const
Returns the scalar field currently associated to the cloud input.
Definition: PointCloudTpl.h:391
const CCVector3 * getGravityCenter()
Returns gravity center.
Definition: Neighbourhood.cpp:58
@ CCLIB_ALGO_SF_GRADIENT
Definition: ecvLibAlgorithms.h:65
Geometric characteristic (with sub option)
Definition: ecvLibAlgorithms.h:31
ccBBox getOwnBB(bool withGLFeatures=false) override
Returns the entity's own bounding-box.
Definition: ecvGenericPointCloud.cpp:139
#define CC_LOCAL_KNN_DENSITY_FIELD_NAME
Definition: ecvCommon.h:24
void * X
Definition: SmallVector.cpp:45
Definition: GenericProgressCallback.h:78
static QString GetDensitySFName(cloudViewer::GeometricalAnalysisTools::Density densityType, bool approx, double densityKernelSize=0.0)
Definition: ecvLibAlgorithms.cpp:38
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
@ NORMAL_CHANGE_RATE
Definition: Neighbourhood.h:42
@ EigenValue1
Definition: Neighbourhood.h:173
@ Sphericity
Definition: Neighbourhood.h:171
ccHObjectContext removeObjectTemporarilyFromDBTree(ccHObject *obj) override
Removes object temporarily from DB tree.
Definition: MainWindow.cpp:3776
void DisplayLockedVerticesWarning(const QString &meshName, bool displayAsError)
Display a warning or error for locked verts.
Definition: ecvUtils.cpp:13
@ PCA2
Definition: Neighbourhood.h:169
#define CC_LOCAL_SURF_DENSITY_FIELD_NAME
Definition: ecvCommon.h:25
#define CC_GRADIENT_NORMS_FIELD_NAME
Definition: ecvCommon.h:32
static ccGenericPointCloud * ToGenericPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccGenericPointCloud.
Definition: ecvHObjectCaster.cpp:81
@ Omnivariance
Definition: Neighbourhood.h:163
@ Planarity
Definition: Neighbourhood.h:166
void setCurrentScalarField(int index)
Sets both the INPUT & OUTPUT scalar field.
Definition: PointCloudTpl.h:435
bool ApplyCCLibAlgorithm(CC_LIB_ALGORITHM algo, ccHObject::Container &entities, QWidget *parent, void **additionalParameters)
Definition: ecvLibAlgorithms.cpp:395
#define CC_CURVATURE_MEAN_FIELD_NAME
Definition: ecvCommon.h:30
A scalar field associated to display-related parameters.
Definition: ecvScalarField.h:19
@ PCA_MAX_DIM
Definition: ecvLibAlgorithms.h:76
double computeVolume() const
Returns the bounding-box volume.
Definition: BoundingBox.h:192
QString getViewId() const
Definition: ecvHObject.h:225