![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Dialog for normal computation. More...
#include <ecvNormalComputationDlg.h>


Public Member Functions | |
| ccNormalComputationDlg (bool withScanGrid, bool withSensor, QWidget *parent=nullptr) | |
| Default constructor. More... | |
| CV_LOCAL_MODEL_TYPES | getLocalModel () const |
| Returns the local model chosen for normal computation. More... | |
| void | setLocalModel (CV_LOCAL_MODEL_TYPES model) |
| Sets the local model chosen for normal computation. More... | |
| void | setRadius (PointCoordinateType radius) |
| Sets default value for local neighbourhood radius. More... | |
| void | setPreferredOrientation (ccNormalVectors::Orientation orientation) |
| Sets the preferred orientation. More... | |
| void | setCloud (ccPointCloud *cloud) |
| Sets the currently selected cloud (required for 'auto' feature) More... | |
| bool | useScanGridsForComputation () const |
| Returns whether scan grids should be used for computation. More... | |
| double | getMinGridAngle_deg () const |
| Returns the min angle for grid triangles. More... | |
| void | setMinGridAngle_deg (double value) |
| Sets the min angle for grid triangles. More... | |
| PointCoordinateType | getRadius () const |
| Returns local neighbourhood radius. More... | |
| bool | orientNormals () const |
| Returns whether normals should be oriented or not. More... | |
| bool | useScanGridsForOrientation () const |
| Returns whether scan grids should be used for normals orientation. More... | |
| bool | useSensorsForOrientation () const |
| Returns whether scan grids should be used for normals computation. More... | |
| bool | usePreferredOrientation () const |
| Returns whether a preferred orientation should be used. More... | |
| ccNormalVectors::Orientation | getPreferredOrientation () const |
| Returns the preferred orientation (if any) More... | |
| bool | useMSTOrientation () const |
| int | getMSTNeighborCount () const |
| Returns the number of neighbors for Minimum Spanning Tree (MST) More... | |
| void | setMSTNeighborCount (int n) |
| Sets the number of neighbors for Minimum Spanning Tree (MST) More... | |
Protected Slots | |
| void | localModelChanged (int index) |
| On local model change. More... | |
| void | autoEstimateRadius () |
| Automatically estimate the local surface radius. More... | |
Protected Attributes | |
| ccPointCloud * | m_cloud |
| Selected cloud. More... | |
Dialog for normal computation.
Definition at line 18 of file ecvNormalComputationDlg.h.
|
explicit |
Default constructor.
| withScanGrid | whether the selection contains some structured point clouds |
| withSensor | whether the selection contains some sensors associated to the point clouds |
| parent | parent widget |
Definition at line 21 of file ecvNormalComputationDlg.cpp.
References autoEstimateRadius(), and localModelChanged().
|
protectedslot |
Automatically estimate the local surface radius.
Definition at line 175 of file ecvNormalComputationDlg.cpp.
References ccGenericPointCloud::computeOctree(), CVLog::Error(), ccObject::getName(), ccGenericPointCloud::getOctree(), ccNormalVectors::GuessBestRadius(), and m_cloud.
Referenced by ccNormalComputationDlg().
| CV_LOCAL_MODEL_TYPES ccNormalComputationDlg::getLocalModel | ( | ) | const |
Returns the local model chosen for normal computation.
Definition at line 79 of file ecvNormalComputationDlg.cpp.
References LS, QUADRIC, and TRI.
Referenced by ccEntityAction::computeNormals().
| double ccNormalComputationDlg::getMinGridAngle_deg | ( | ) | const |
Returns the min angle for grid triangles.
Definition at line 128 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| int ccNormalComputationDlg::getMSTNeighborCount | ( | ) | const |
Returns the number of neighbors for Minimum Spanning Tree (MST)
Definition at line 160 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| ccNormalVectors::Orientation ccNormalComputationDlg::getPreferredOrientation | ( | ) | const |
Returns the preferred orientation (if any)
Definition at line 164 of file ecvNormalComputationDlg.cpp.
References ccNormalVectors::PREVIOUS, and ccNormalVectors::UNDEFINED.
Referenced by ccEntityAction::computeNormals().
| PointCoordinateType ccNormalComputationDlg::getRadius | ( | ) | const |
Returns local neighbourhood radius.
Definition at line 110 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
|
protectedslot |
On local model change.
Definition at line 93 of file ecvNormalComputationDlg.cpp.
Referenced by ccNormalComputationDlg().
| bool ccNormalComputationDlg::orientNormals | ( | ) | const |
Returns whether normals should be oriented or not.
Definition at line 136 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setCloud | ( | ccPointCloud * | cloud | ) |
Sets the currently selected cloud (required for 'auto' feature)
Definition at line 104 of file ecvNormalComputationDlg.cpp.
References m_cloud, and ccDrawableObject::setVisible().
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setLocalModel | ( | CV_LOCAL_MODEL_TYPES | model | ) |
Sets the local model chosen for normal computation.
Definition at line 60 of file ecvNormalComputationDlg.cpp.
References LS, QUADRIC, and TRI.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setMinGridAngle_deg | ( | double | value | ) |
Sets the min angle for grid triangles.
Definition at line 132 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setMSTNeighborCount | ( | int | n | ) |
Sets the number of neighbors for Minimum Spanning Tree (MST)
Definition at line 156 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setPreferredOrientation | ( | ccNormalVectors::Orientation | orientation | ) |
Sets the preferred orientation.
Definition at line 114 of file ecvNormalComputationDlg.cpp.
References ccNormalVectors::UNDEFINED.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setRadius | ( | PointCoordinateType | radius | ) |
Sets default value for local neighbourhood radius.
Definition at line 100 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::useMSTOrientation | ( | ) | const |
Returns whether a Minimum Spanning Tree (MST) should be used for normals orientation
Definition at line 152 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::usePreferredOrientation | ( | ) | const |
Returns whether a preferred orientation should be used.
Definition at line 148 of file ecvNormalComputationDlg.cpp.
| bool ccNormalComputationDlg::useScanGridsForComputation | ( | ) | const |
Returns whether scan grids should be used for computation.
Definition at line 124 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::useScanGridsForOrientation | ( | ) | const |
Returns whether scan grids should be used for normals orientation.
Definition at line 140 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::useSensorsForOrientation | ( | ) | const |
Returns whether scan grids should be used for normals computation.
Definition at line 144 of file ecvNormalComputationDlg.cpp.
Referenced by ccEntityAction::computeNormals().
|
protected |
Selected cloud.
Definition at line 94 of file ecvNormalComputationDlg.h.
Referenced by autoEstimateRadius(), and setCloud().