37 m_icon(QIcon(QString::fromUtf8(
":/toolbar/pcl.png"))) {}
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Base abstract class for each implemented PCL filter.
virtual void initAction()
Initializes the corresponding action.
std::vector< std::string > getSelectedAvailableScalarFields()
ccPluginInterface * m_parent_plugin
associated parent plugin of the filter
int hasSelectedRGB()
Returns 1 if the first selected entity has RGB info.
QAction * getAction()
Get the action associated with the button used in menu and toolbar creation.
QString getStatusTip() const
Returns the status tip.
void throwError(int errCode)
int isFirstSelectedCcPointCloud()
Returns 1 if the first selected object is a ccPointCloud.
virtual void updateSelectedEntities(const ccHObject::Container &selectedEntities)
Updates the internal copy of selected entities.
ecvMainAppInterface * getMainAppInterface()
PclModuleDescription m_desc
Associated dialog.
QString getEntryName() const
Returns the entry name.
void newEntity(ccHObject *)
Signal emitted when a new entity is created by the filter.
QString getModuleName() const
Returns the name of the filter.
virtual int checkParameters()
void getAllEntitiesThatHaveMetaData(QString key, ccHObject::Container &entities)
ccHObject::Container getSelectedThatHaveMetaData(const QString key) const
Get selected object that also have the provided metadata key.
virtual int openOutputDialog()
void getSelectedEntitiesThatAre(CV_CLASS_ENUM kind, ccHObject::Container &entities)
ecvMainAppInterface * m_app
Associated application interface.
virtual QString getErrorMessage(int errorCode)
Returns the error message corresponding to a given error code.
QAction * m_action
Forces the Ui to be updated.
virtual int compute()=0
Performs the actual filter job.
void getAllEntitiesOfType(CV_CLASS_ENUM type, ccHObject::Container &entities)
Returns all the objects in db tree of type "type".
int performAction()
Returns is called when the dialog window is accepted.
BasePclModule(PclModuleDescription desc=PclModuleDescription(), ccPluginInterface *parent_plugin=0)
Default constructor.
int hasSelectedScalarField()
Returns 1 if the first selected entity has at least one scalar field.
void newErrorMessage(QString)
Signal emitted when a new error message is produced.
void setShowProgressBar(bool status)
Sets whether to show a progressbar while computing or not.
virtual int start()
Starts computation.
void getSelectedEntitiesThatAreCCPointCloud(ccHObject::Container &entities)
get all entities that are selected and that also are cc_point_cloud
bool m_show_progress
Do we want to show a progress bar when the filter works?
ccPointCloud * getSelectedEntityAsCCPointCloud() const
Returns the first selected entity as a ccPointCloud.
QIcon getIcon() const
Returns the icon associated with the button.
ccPluginInterface * getParentPlugin() const
Returns the associated parent plugin interface.
ccHObject::Container m_selected
Pointer to the main window.
void setMainAppInterface(ecvMainAppInterface *app)
Sets associated CC application interface (to access DB)
virtual int openInputDialog()
ccHObject * getSelectedEntityAsCCHObject() const
Returns the first selected entity as a ccHObject.
virtual void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
virtual int checkSelected()
Checks if current selection is compliant with the filter.
void entityHasChanged(ccHObject *)
Signal emitted when an entity is (visually) modified.
Hierarchical CLOUDVIEWER Object.
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Standard ECV plugin interface.
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Main application interface (for plugins)
PclModuleDescription(QString filterName, QString entryName, QString statusTip, QString icon)