![]() |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Projection Filter. More...
#include <GeneralFilters.h>
Public Member Functions | |
| GeneralFilters () | |
| virtual | ~GeneralFilters () |
| virtual int | compute () |
| Performs the actual filter job. More... | |
Public Member Functions inherited from BasePclModule | |
| BasePclModule (PclModuleDescription desc=PclModuleDescription(), ccPluginInterface *parent_plugin=0) | |
| Default constructor. More... | |
| QAction * | getAction () |
| Get the action associated with the button used in menu and toolbar creation. More... | |
| QString | getStatusTip () const |
| Returns the status tip. More... | |
| QString | getModuleName () const |
| Returns the name of the filter. More... | |
| QString | getEntryName () const |
| Returns the entry name. More... | |
| QIcon | getIcon () const |
| Returns the icon associated with the button. More... | |
| void | setShowProgressBar (bool status) |
| Sets whether to show a progressbar while computing or not. More... | |
| std::vector< std::string > | getSelectedAvailableScalarFields () |
| ccPointCloud * | getSelectedEntityAsCCPointCloud () const |
| Returns the first selected entity as a ccPointCloud. More... | |
| ccHObject * | getSelectedEntityAsCCHObject () const |
| Returns the first selected entity as a ccHObject. More... | |
| ccHObject::Container | getSelectedThatHaveMetaData (const QString key) const |
| Get selected object that also have the provided metadata key. More... | |
| void | getAllEntitiesOfType (CV_CLASS_ENUM type, ccHObject::Container &entities) |
| Returns all the objects in db tree of type "type". More... | |
| void | getAllEntitiesThatHaveMetaData (QString key, ccHObject::Container &entities) |
| void | getSelectedEntitiesThatAreCCPointCloud (ccHObject::Container &entities) |
| get all entities that are selected and that also are cc_point_cloud More... | |
| void | getSelectedEntitiesThatAre (CV_CLASS_ENUM kind, ccHObject::Container &entities) |
| int | hasSelectedRGB () |
| Returns 1 if the first selected entity has RGB info. More... | |
| int | hasSelectedScalarField () |
| Returns 1 if the first selected entity has at least one scalar field. More... | |
| int | hasSelectedScalarField (std::string field_name) |
| int | isFirstSelectedCcPointCloud () |
| Returns 1 if the first selected object is a ccPointCloud. More... | |
| virtual void | updateSelectedEntities (const ccHObject::Container &selectedEntities) |
| Updates the internal copy of selected entities. More... | |
| void | setMainAppInterface (ecvMainAppInterface *app) |
| Sets associated CC application interface (to access DB) More... | |
| ecvMainAppInterface * | getMainAppInterface () |
| ccPluginInterface * | getParentPlugin () const |
| Returns the associated parent plugin interface. More... | |
Protected Types | |
| enum | FilterType { PASS_FILTER, CR_FILTER, VOXEL_FILTER, PM_FILTER, HULL_FILTER } |
Protected Member Functions | |
| virtual int | openInputDialog () |
| virtual int | checkParameters () |
| virtual void | getParametersFromDialog () |
| Collects parameters from the filter dialog (if openDialog is successful) More... | |
| virtual QString | getErrorMessage (int errorCode) |
| Returns the error message corresponding to a given error code. More... | |
Protected Member Functions inherited from BasePclModule | |
| virtual int | checkSelected () |
| Checks if current selection is compliant with the filter. More... | |
| virtual int | openOutputDialog () |
| virtual int | start () |
| Starts computation. More... | |
| virtual void | initAction () |
| Initializes the corresponding action. More... | |
| void | throwError (int errCode) |
Protected Attributes | |
| GeneralFiltersDlg * | m_dialog |
| bool | m_keepColors |
| bool | m_hasColors |
| FilterType | m_filterType |
| QString | m_comparisonField |
| QStringList | m_comparisonTypes |
| float | m_minMagnitude |
| float | m_maxMagnitude |
| bool | m_extractRemainings |
| int | m_maxWindowSize |
| float | m_slope |
| float | m_initialDistance |
| float | m_maxDistance |
| float | m_leafSize |
| ccPolyline * | m_polyline |
| std::vector< CCVector3 > | m_boundary |
| int | m_dimension |
Protected Attributes inherited from BasePclModule | |
| QAction * | m_action |
| Forces the Ui to be updated. More... | |
| ccHObject::Container | m_selected |
| Pointer to the main window. More... | |
| PclModuleDescription | m_desc |
| Associated dialog. More... | |
| ecvMainAppInterface * | m_app |
| Associated application interface. More... | |
| ccPluginInterface * | m_parent_plugin |
| associated parent plugin of the filter More... | |
| bool | m_show_progress |
| Do we want to show a progress bar when the filter works? More... | |
Additional Inherited Members | |
Signals inherited from BasePclModule | |
| void | entityHasChanged (ccHObject *) |
| Signal emitted when an entity is (visually) modified. More... | |
| void | newEntity (ccHObject *) |
| Signal emitted when a new entity is created by the filter. More... | |
| void | newErrorMessage (QString) |
| Signal emitted when a new error message is produced. More... | |
Protected Slots inherited from BasePclModule | |
| int | performAction () |
| Returns is called when the dialog window is accepted. More... | |
Projection Filter.
|
protected |
| GeneralFilters::GeneralFilters | ( | ) |
|
virtual |
References m_dialog.
|
protectedvirtual |
Checks that the parameters retrieved by getParametersFromDialog are valid Automatically called by performAction. Does nothing by default. Must be overridden if necessary.
Reimplemented from BasePclModule.
References m_maxMagnitude, and m_minMagnitude.
|
virtual |
Performs the actual filter job.
This method MUST be re-implemented by derived filter
Implements BasePclModule.
References ccHObject::addChild(), PCLModules::ConditionParameters::ComparisonParam::comparison_type_, PCLModules::ConditionParameters::condition_params_, PCLModules::ConditionParameters::condition_type_, pcl2cc::Convert(), CR_FILTER, PCLModules::CropHullFilter< PointRGB >(), PCLModules::CropHullFilter< PointT >(), PCLModules::ExtractIndicesFilter< PointRGB >(), PCLModules::ExtractIndicesFilter< PointT >(), PCLModules::ConditionParameters::ComparisonParam::fieldName_, FROM_PCL_CLOUD, cc2smReader::getAsSM(), ccShiftedObject::getGlobalScale(), ccShiftedObject::getGlobalShift(), ccObject::getName(), ccHObject::getParent(), cloudViewer::ReferenceCloud::getPoint(), BasePclModule::getSelectedEntityAsCCPointCloud(), ccPointCloud::hasColors(), ccPointCloud::hasScalarFields(), HULL_FILTER, m_boundary, m_comparisonField, m_comparisonTypes, m_dimension, m_extractRemainings, m_filterType, m_hasColors, m_initialDistance, m_keepColors, m_leafSize, m_maxDistance, m_maxMagnitude, m_maxWindowSize, m_minMagnitude, m_polyline, m_slope, PCLModules::ConditionParameters::ComparisonParam::max_threshold_, PCLModules::ConditionParameters::ComparisonParam::min_threshold_, name, BasePclModule::newEntity(), PASS_FILTER, PCLModules::PassThroughFilter< PointRGB >(), PCLModules::PassThroughFilter< PointT >(), PM_FILTER, PCLModules::ProgressiveMpFilter< PointRGB >(), PCLModules::ProgressiveMpFilter< PointT >(), ecvColor::Generator::Random(), ccObject::setEnabled(), ccShiftedObject::setGlobalScale(), ccShiftedObject::setGlobalShift(), ccObject::setName(), ccPointCloud::setRGBColor(), ccDrawableObject::showColors(), ccDrawableObject::showSF(), cloudViewer::ReferenceCloud::size(), TO_PCL_CLOUD, type, VOXEL_FILTER, PCLModules::VoxelGridFilter< PointRGB >(), PCLModules::VoxelGridFilter< PointT >(), Tuple3Tpl< Type >::x, Tuple3Tpl< Type >::y, and Tuple3Tpl< Type >::z.
|
protectedvirtual |
Returns the error message corresponding to a given error code.
Each filter have a set of possible error message to be used given bt getFilterErrorMessage() Baseclass implementation provides some generic messages.
Reimplemented from BasePclModule.
References BasePclModule::getErrorMessage().
|
protectedvirtual |
Collects parameters from the filter dialog (if openDialog is successful)
Automatically called by performAction. Does nothing by default. Must be overridden if necessary.
Reimplemented from BasePclModule.
References GeneralFiltersDlg::getComparisonField(), GeneralFiltersDlg::getComparisonTypes(), GeneralFiltersDlg::getContour(), GeneralFiltersDlg::getPolyline(), m_boundary, m_comparisonField, m_comparisonTypes, m_dialog, m_dimension, m_extractRemainings, m_filterType, m_initialDistance, m_keepColors, m_leafSize, m_maxDistance, m_maxMagnitude, m_maxWindowSize, m_minMagnitude, m_polyline, and m_slope.
|
protectedvirtual |
Opens the input dialog window. Where the user can supply parameters for the computation Automatically called by performAction. Does nothing by default. Must be overridden if a dialog must be displayed.
Reimplemented from BasePclModule.
References BasePclModule::m_app, m_dialog, and GeneralFiltersDlg::refreshPolylineComboBox().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by getParametersFromDialog(), openInputDialog(), and ~GeneralFilters().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by checkParameters(), compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by checkParameters(), compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().
|
protected |
Referenced by compute(), and getParametersFromDialog().