![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Surface of Revolution Analysis plugin. More...
#include <qSRA.h>


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 ecvMainAppInterface * | getMainAppInterface () |
| 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 ccExternalFactory * | getCustomObjectsFactory () 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 | |
| ecvMainAppInterface * | m_app |
| Main application interface. More... | |
Additional Inherited Members | |
Public Types inherited from ccPluginInterface | |
| typedef QList< Contact > | ContactList |
| using | ReferenceList = QList< Reference > |
|
explicit |
|
virtualdefault |
|
protectedslot |
Computes cloud-to-profile radial distances.
Definition at line 304 of file qSRA.cpp.
References ccHObject::addChild(), ecvMainAppInterface::addToDB(), CV_TYPES::CONE, ecvMainAppInterface::dispToConsole(), doComputeRadialDists(), doProjectCloudDistsInGrid(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, GetConeProfile(), ecvMainAppInterface::getMainWindow(), ecvMainAppInterface::getSelectedEntities(), ecvColor::green(), ccStdPluginInterface::m_app, CV_TYPES::POINT_CLOUD, CV_TYPES::POLY_LINE, ccPolyline::set2DMode(), ccPolyline::setColor(), ccDrawableObject::setVisible(), ccPolyline::setWidth(), and ccDrawableObject::showColors().
Referenced by getActions().
|
protected |
Computes cloud-to-profile radial distances.
Definition at line 382 of file qSRA.cpp.
References DistanceMapGenerationTool::ComputeRadialDist(), ecvMainAppInterface::dispToConsole(), ccStdPluginInterface::m_app, ecvMainAppInterface::refreshAll(), ccDrawableObject::setRedraw(), ecvDisplayTools::SetRedrawRecursive(), ecvMainAppInterface::updateUI(), and ecvMainAppInterface::WRN_CONSOLE_MESSAGE.
Referenced by computeCloud2ProfileRadialDist().
|
protected |
Projects the cloud distances into a 2D grid (needs the revolution profile)
Definition at line 456 of file qSRA.cpp.
References CVLog::Error(), ccPointCloud::getCurrentDisplayedScalarField(), ecvMainAppInterface::getMainWindow(), cloudViewer::PointCloudTpl< T >::getScalarField(), cloudViewer::PointCloudTpl< T >::getScalarFieldIndexByName(), ccStdPluginInterface::m_app, m_doCompareCloudToProfile, RADIAL_DIST_SF_NAME, and CVLog::Warning().
Referenced by computeCloud2ProfileRadialDist(), and projectCloudDistsInGrid().
|
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().
|
protectedslot |
Loads profile from a dedicated file.
Definition at line 146 of file qSRA.cpp.
References ProfileImportDlg::absoluteHeightValues(), ccHObject::addChild(), ecvMainAppInterface::addToDB(), ccGLMatrixTpl< T >::data(), ecvFileUtils::defaultDocPath(), ecvMainAppInterface::dispToConsole(), ecvMainAppInterface::ERR_CONSOLE_MESSAGE, filename, ProfileImportDlg::getAxisDimension(), GetDefaultContainer(), ProfileImportDlg::getFilename(), ecvMainAppInterface::getMainWindow(), ProfileLoader::Load(), ccStdPluginInterface::m_app, cloudViewer::t::geometry::path, ccPolyline::set2DMode(), ProfileImportDlg::setDefaultFilename(), ccDrawableObject::setGLTransformation(), DistanceMapGenerationTool::SetPolylineHeightShift(), DistanceMapGenerationTool::SetPoylineOrigin(), DistanceMapGenerationTool::SetPoylineRevolDim(), ccGLMatrixTpl< T >::setTranslation(), ecvMainAppInterface::STD_CONSOLE_MESSAGE, and Tuple3Tpl< Type >::u.
Referenced by getActions().
|
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.
| selectedEntities | currently 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.
|
protectedslot |
Projects the cloud distances into a 2D grid.
Definition at line 408 of file qSRA.cpp.
References CV_TYPES::CONE, doProjectCloudDistsInGrid(), GetConeProfile(), ecvMainAppInterface::getSelectedEntities(), ccStdPluginInterface::m_app, CV_TYPES::POINT_CLOUD, and CV_TYPES::POLY_LINE.
Referenced by getActions().
|
protected |
Associated action.
Definition at line 55 of file qSRA.h.
Referenced by doProjectCloudDistsInGrid(), getActions(), and onNewSelection().
|
protected |
Associated action.
Definition at line 53 of file qSRA.h.
Referenced by getActions(), and onNewSelection().
|
protected |
Associated action.
Definition at line 57 of file qSRA.h.
Referenced by getActions(), and onNewSelection().