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

#include <MLSSmoothingUpsampling.h>

Inheritance diagram for MLSSmoothingUpsampling:
Collaboration diagram for MLSSmoothingUpsampling:

Public Member Functions

 MLSSmoothingUpsampling ()
 
virtual ~MLSSmoothingUpsampling ()
 
- 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...
 
virtual QString getErrorMessage (int errorCode)
 Returns the error message corresponding to a given error code. 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 ()
 
ccPointCloudgetSelectedEntityAsCCPointCloud () const
 Returns the first selected entity as a ccPointCloud. More...
 
ccHObjectgetSelectedEntityAsCCHObject () 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...
 
ecvMainAppInterfacegetMainAppInterface ()
 
ccPluginInterfacegetParentPlugin () const
 Returns the associated parent plugin interface. More...
 

Protected Member Functions

int openInputDialog ()
 
int compute ()
 Performs the actual filter job. More...
 
void getParametersFromDialog ()
 Collects parameters from the filter dialog (if openDialog is successful) 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 checkParameters ()
 
virtual int start ()
 Starts computation. More...
 
virtual void initAction ()
 Initializes the corresponding action. More...
 
void throwError (int errCode)
 

Protected Attributes

MLSDialogm_dialog
 
bool m_dialogHasParent
 
PCLModules::MLSParameters * m_parameters
 
- 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...
 
ecvMainAppInterfacem_app
 Associated application interface. More...
 
ccPluginInterfacem_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...
 

Detailed Description

Definition at line 18 of file MLSSmoothingUpsampling.h.

Constructor & Destructor Documentation

◆ MLSSmoothingUpsampling()

MLSSmoothingUpsampling::MLSSmoothingUpsampling ( )

Definition at line 31 of file MLSSmoothingUpsampling.cpp.

◆ ~MLSSmoothingUpsampling()

MLSSmoothingUpsampling::~MLSSmoothingUpsampling ( )
virtual

Definition at line 42 of file MLSSmoothingUpsampling.cpp.

References m_dialog, m_dialogHasParent, and m_parameters.

Member Function Documentation

◆ compute()

◆ getParametersFromDialog()

void MLSSmoothingUpsampling::getParametersFromDialog ( )
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.

Definition at line 62 of file MLSSmoothingUpsampling.cpp.

References m_dialog, and m_parameters.

◆ openInputDialog()

int MLSSmoothingUpsampling::openInputDialog ( )
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.

Returns
1 if dialog has been successfully executed, 0 if canceled, negative error code otherwise

Reimplemented from BasePclModule.

Definition at line 53 of file MLSSmoothingUpsampling.cpp.

References ecvMainAppInterface::getMainWindow(), BasePclModule::m_app, m_dialog, and m_dialogHasParent.

Member Data Documentation

◆ m_dialog

MLSDialog* MLSSmoothingUpsampling::m_dialog
protected

◆ m_dialogHasParent

bool MLSSmoothingUpsampling::m_dialogHasParent
protected

Definition at line 30 of file MLSSmoothingUpsampling.h.

Referenced by openInputDialog(), and ~MLSSmoothingUpsampling().

◆ m_parameters

PCLModules::MLSParameters* MLSSmoothingUpsampling::m_parameters
protected

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