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

Surface of Revolution Analysis plugin. More...

#include <qSRA.h>

Inheritance diagram for qSRA:
Collaboration diagram for qSRA:

Public Member Functions

 qSRA (QObject *parent=nullptr)
 Default constructor. More...
 
virtual ~qSRA ()=default
 
virtual void onNewSelection (const ccHObject::Container &selectedEntities) override
 
virtual QList< QAction * > getActions () override
 Get a list of actions for this plugin. More...
 
- Public Member Functions inherited from ccStdPluginInterface
 ccStdPluginInterface (const QString &resourcePath=QString())
 Default constructor. More...
 
virtual ~ccStdPluginInterface () override=default
 Destructor. More...
 
virtual CC_PLUGIN_TYPE getType () const override
 Returns plugin type (standard or OpenGL filter) More...
 
virtual void setMainAppInterface (ecvMainAppInterface *app)
 Sets application entry point. More...
 
virtual ecvMainAppInterfacegetMainAppInterface ()
 A callback pointer to the main app interface for use by plugins. More...
 
virtual void dispToConsole (QString message, ecvMainAppInterface::ConsoleMessageLevel level=ecvMainAppInterface::STD_CONSOLE_MESSAGE)
 Shortcut to ecvMainAppInterface::dispToConsole. More...
 
- Public Member Functions inherited from ccDefaultPluginInterface
virtual ~ccDefaultPluginInterface ()
 
virtual bool isCore () const override
 Is this plugin a core plugin? More...
 
virtual QString getName () const override
 Returns (short) name (for menu entry, etc.) More...
 
virtual QString getDescription () const override
 Returns long name/description (for tooltip, etc.) More...
 
virtual QIcon getIcon () const override
 Returns icon. More...
 
virtual ReferenceList getReferences () const override
 
virtual ContactList getAuthors () const override
 
virtual ContactList getMaintainers () const override
 
- Public Member Functions inherited from ccPluginInterface
virtual ~ccPluginInterface ()=default
 Virtual destructor. More...
 
virtual bool start ()
 Starts the plugin. More...
 
virtual void stop ()
 Stops the plugin. More...
 
virtual ccExternalFactorygetCustomObjectsFactory () const
 Returns the plugin's custom object factory (if any) More...
 
virtual void registerCommands (ccCommandLineInterface *cmd)
 Optional: registers commands (for the command line mode) More...
 

Protected Slots

void loadProfile () const
 Loads profile from a dedicated file. More...
 
void computeCloud2ProfileRadialDist () const
 Computes cloud-to-profile radial distances. More...
 
void projectCloudDistsInGrid () const
 Projects the cloud distances into a 2D grid. More...
 

Protected Member Functions

void doProjectCloudDistsInGrid (ccPointCloud *cloud, ccPolyline *polyline) const
 
bool doComputeRadialDists (ccPointCloud *cloud, ccPolyline *polyline) const
 Computes cloud-to-profile radial distances. More...
 
- Protected Member Functions inherited from ccDefaultPluginInterface
 ccDefaultPluginInterface (const QString &resourcePath=QString())
 

Protected Attributes

QAction * m_doLoadProfile
 Associated action. More...
 
QAction * m_doCompareCloudToProfile
 Associated action. More...
 
QAction * m_doProjectCloudDists
 Associated action. More...
 
- Protected Attributes inherited from ccStdPluginInterface
ecvMainAppInterfacem_app
 Main application interface. More...
 

Additional Inherited Members

- Public Types inherited from ccPluginInterface
typedef QList< ContactContactList
 
using ReferenceList = QList< Reference >
 

Detailed Description

Surface of Revolution Analysis plugin.

Definition at line 16 of file qSRA.h.

Constructor & Destructor Documentation

◆ qSRA()

qSRA::qSRA ( QObject *  parent = nullptr)
explicit

Default constructor.

Definition at line 40 of file qSRA.cpp.

◆ ~qSRA()

virtual qSRA::~qSRA ( )
virtualdefault

Member Function Documentation

◆ computeCloud2ProfileRadialDist

◆ doComputeRadialDists()

◆ doProjectCloudDistsInGrid()

◆ getActions()

QList< QAction * > qSRA::getActions ( )
overridevirtual

Get a list of actions for this plugin.

Implements ccStdPluginInterface.

Definition at line 47 of file qSRA.cpp.

References computeCloud2ProfileRadialDist(), loadProfile(), m_doCompareCloudToProfile, m_doLoadProfile, m_doProjectCloudDists, and projectCloudDistsInGrid().

◆ loadProfile

◆ onNewSelection()

void qSRA::onNewSelection ( const ccHObject::Container selectedEntities)
overridevirtual

This method is called by the main application whenever the entity selection changes Does nothing by default. Should be re-implemented by the plugin if necessary.

Parameters
selectedEntitiescurrently selected entities

Reimplemented from ccStdPluginInterface.

Definition at line 92 of file qSRA.cpp.

References CV_TYPES::CONE, m_doCompareCloudToProfile, m_doLoadProfile, m_doProjectCloudDists, CV_TYPES::POINT_CLOUD, and CV_TYPES::POLY_LINE.

◆ projectCloudDistsInGrid

void qSRA::projectCloudDistsInGrid ( ) const
protectedslot

Member Data Documentation

◆ m_doCompareCloudToProfile

QAction* qSRA::m_doCompareCloudToProfile
protected

Associated action.

Definition at line 55 of file qSRA.h.

Referenced by doProjectCloudDistsInGrid(), getActions(), and onNewSelection().

◆ m_doLoadProfile

QAction* qSRA::m_doLoadProfile
protected

Associated action.

Definition at line 53 of file qSRA.h.

Referenced by getActions(), and onNewSelection().

◆ m_doProjectCloudDists

QAction* qSRA::m_doProjectCloudDists
protected

Associated action.

Definition at line 57 of file qSRA.h.

Referenced by getActions(), and onNewSelection().


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