ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
ccNormalComputationDlg Class Reference

Dialog for normal computation. More...

#include <ecvNormalComputationDlg.h>

Inheritance diagram for ccNormalComputationDlg:
[legend]
Collaboration diagram for ccNormalComputationDlg:
[legend]

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...
 

Detailed Description

Dialog for normal computation.

Constructor & Destructor Documentation

◆ ccNormalComputationDlg()

ccNormalComputationDlg::ccNormalComputationDlg ( bool  withScanGrid,
bool  withSensor,
QWidget *  parent = nullptr 
)
explicit

Default constructor.

Parameters
withScanGridwhether the selection contains some structured point clouds
withSensorwhether the selection contains some sensors associated to the point clouds
parentparent widget

References autoEstimateRadius(), and localModelChanged().

Member Function Documentation

◆ autoEstimateRadius

void ccNormalComputationDlg::autoEstimateRadius ( )
protectedslot

◆ getLocalModel()

CV_LOCAL_MODEL_TYPES ccNormalComputationDlg::getLocalModel ( ) const

Returns the local model chosen for normal computation.

References LS, QUADRIC, and TRI.

Referenced by ccEntityAction::computeNormals().

◆ getMinGridAngle_deg()

double ccNormalComputationDlg::getMinGridAngle_deg ( ) const

Returns the min angle for grid triangles.

Referenced by ccEntityAction::computeNormals().

◆ getMSTNeighborCount()

int ccNormalComputationDlg::getMSTNeighborCount ( ) const

Returns the number of neighbors for Minimum Spanning Tree (MST)

Referenced by ccEntityAction::computeNormals().

◆ getPreferredOrientation()

ccNormalVectors::Orientation ccNormalComputationDlg::getPreferredOrientation ( ) const

Returns the preferred orientation (if any)

References ccNormalVectors::PREVIOUS, and ccNormalVectors::UNDEFINED.

Referenced by ccEntityAction::computeNormals().

◆ getRadius()

PointCoordinateType ccNormalComputationDlg::getRadius ( ) const

Returns local neighbourhood radius.

Referenced by ccEntityAction::computeNormals().

◆ localModelChanged

void ccNormalComputationDlg::localModelChanged ( int  index)
protectedslot

On local model change.

Referenced by ccNormalComputationDlg().

◆ orientNormals()

bool ccNormalComputationDlg::orientNormals ( ) const

Returns whether normals should be oriented or not.

Referenced by ccEntityAction::computeNormals().

◆ setCloud()

void ccNormalComputationDlg::setCloud ( ccPointCloud *  cloud)

Sets the currently selected cloud (required for 'auto' feature)

References m_cloud, and ccDrawableObject::setVisible().

Referenced by ccEntityAction::computeNormals().

◆ setLocalModel()

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().

◆ setMinGridAngle_deg()

void ccNormalComputationDlg::setMinGridAngle_deg ( double  value)

Sets the min angle for grid triangles.

Referenced by ccEntityAction::computeNormals().

◆ setMSTNeighborCount()

void ccNormalComputationDlg::setMSTNeighborCount ( int  n)

Sets the number of neighbors for Minimum Spanning Tree (MST)

Referenced by ccEntityAction::computeNormals().

◆ setPreferredOrientation()

void ccNormalComputationDlg::setPreferredOrientation ( ccNormalVectors::Orientation  orientation)

Sets the preferred orientation.

References ccNormalVectors::UNDEFINED.

Referenced by ccEntityAction::computeNormals().

◆ setRadius()

void ccNormalComputationDlg::setRadius ( PointCoordinateType  radius)

Sets default value for local neighbourhood radius.

Referenced by ccEntityAction::computeNormals().

◆ useMSTOrientation()

bool ccNormalComputationDlg::useMSTOrientation ( ) const

Returns whether a Minimum Spanning Tree (MST) should be used for normals orientation

Referenced by ccEntityAction::computeNormals().

◆ usePreferredOrientation()

bool ccNormalComputationDlg::usePreferredOrientation ( ) const

Returns whether a preferred orientation should be used.

◆ useScanGridsForComputation()

bool ccNormalComputationDlg::useScanGridsForComputation ( ) const

Returns whether scan grids should be used for computation.

Referenced by ccEntityAction::computeNormals().

◆ useScanGridsForOrientation()

bool ccNormalComputationDlg::useScanGridsForOrientation ( ) const

Returns whether scan grids should be used for normals orientation.

Referenced by ccEntityAction::computeNormals().

◆ useSensorsForOrientation()

bool ccNormalComputationDlg::useSensorsForOrientation ( ) const

Returns whether scan grids should be used for normals computation.

Referenced by ccEntityAction::computeNormals().

Member Data Documentation

◆ m_cloud

ccPointCloud* ccNormalComputationDlg::m_cloud
protected

Selected cloud.

Referenced by autoEstimateRadius(), and setCloud().


The documentation for this class was generated from the following files: