![]() |
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.
|
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 |
References autoEstimateRadius(), and localModelChanged().
|
protectedslot |
Automatically estimate the local surface radius.
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.
References LS, QUADRIC, and TRI.
Referenced by ccEntityAction::computeNormals().
| double ccNormalComputationDlg::getMinGridAngle_deg | ( | ) | const |
Returns the min angle for grid triangles.
Referenced by ccEntityAction::computeNormals().
| int ccNormalComputationDlg::getMSTNeighborCount | ( | ) | const |
Returns the number of neighbors for Minimum Spanning Tree (MST)
Referenced by ccEntityAction::computeNormals().
| ccNormalVectors::Orientation ccNormalComputationDlg::getPreferredOrientation | ( | ) | const |
Returns the preferred orientation (if any)
References ccNormalVectors::PREVIOUS, and ccNormalVectors::UNDEFINED.
Referenced by ccEntityAction::computeNormals().
| PointCoordinateType ccNormalComputationDlg::getRadius | ( | ) | const |
Returns local neighbourhood radius.
Referenced by ccEntityAction::computeNormals().
|
protectedslot |
On local model change.
Referenced by ccNormalComputationDlg().
| bool ccNormalComputationDlg::orientNormals | ( | ) | const |
Returns whether normals should be oriented or not.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setCloud | ( | ccPointCloud * | cloud | ) |
Sets the currently selected cloud (required for 'auto' feature)
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.
References LS, QUADRIC, and TRI.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setMinGridAngle_deg | ( | double | value | ) |
Sets the min angle for grid triangles.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setMSTNeighborCount | ( | int | n | ) |
Sets the number of neighbors for Minimum Spanning Tree (MST)
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setPreferredOrientation | ( | ccNormalVectors::Orientation | orientation | ) |
Sets the preferred orientation.
References ccNormalVectors::UNDEFINED.
Referenced by ccEntityAction::computeNormals().
| void ccNormalComputationDlg::setRadius | ( | PointCoordinateType | radius | ) |
Sets default value for local neighbourhood radius.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::useMSTOrientation | ( | ) | const |
Returns whether a Minimum Spanning Tree (MST) should be used for normals orientation
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::usePreferredOrientation | ( | ) | const |
Returns whether a preferred orientation should be used.
| bool ccNormalComputationDlg::useScanGridsForComputation | ( | ) | const |
Returns whether scan grids should be used for computation.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::useScanGridsForOrientation | ( | ) | const |
Returns whether scan grids should be used for normals orientation.
Referenced by ccEntityAction::computeNormals().
| bool ccNormalComputationDlg::useSensorsForOrientation | ( | ) | const |
Returns whether scan grids should be used for normals computation.
Referenced by ccEntityAction::computeNormals().
|
protected |
Selected cloud.
Referenced by autoEstimateRadius(), and setCloud().