 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
37 m_icon(QIcon(QString::fromUtf8(
":/toolbar/pcl.png"))) {}
QIcon getIcon() const
Returns the icon associated with the button.
Definition: BasePclModule.cpp:214
ccHObject::Container m_selected
Pointer to the main window.
Definition: BasePclModule.h:281
bool hasColors() const override
Returns whether colors are enabled or not.
Definition: ecvPointCloud.cpp:1689
static void doCompute()
Definition: BasePclModule.cpp:153
unsigned filterChildren(Container &filteredChildren, bool recursive=false, CV_CLASS_ENUM filter=CV_TYPES::OBJECT, bool strict=false) const
Collects the children corresponding to a certain pattern.
Definition: ecvHObject.cpp:611
ccHObject::Container getSelectedThatHaveMetaData(const QString key) const
Get selected object that also have the provided metadata key.
Definition: BasePclModule.cpp:273
virtual ccHObjectContext removeObjectTemporarilyFromDBTree(ccHObject *obj)=0
Removes object temporarily from DB tree.
PclModuleDescription(QString filterName, QString entryName, QString statusTip, QString icon)
Definition: BasePclModule.h:39
virtual void updateSelectedEntities(const ccHObject::Container &selectedEntities)
Updates the internal copy of selected entities.
Definition: BasePclModule.cpp:61
static ccPointCloud * ToPointCloud(ccHObject *obj, bool *isLockedVertices=nullptr)
Converts current object to 'equivalent' ccPointCloud.
Definition: ecvHObjectCaster.cpp:54
virtual int openInputDialog()
Definition: BasePclModule.h:215
QString m_module_name
Definition: BasePclModule.h:28
#define signals
Definition: PythonPlugin.cpp:26
void setRedrawFlagRecursive(bool redraw=false)
Definition: ecvHObject.cpp:772
bool hasMetaData(const QString &key) const
Returns whether a meta-data element with the given key exists or not.
Definition: ecvObject.cpp:230
QAction * getAction()
Get the action associated with the button used in menu and toolbar creation.
Definition: BasePclModule.cpp:216
bool isA(CV_CLASS_ENUM type) const
Definition: ecvObject.h:131
unsigned getNumberOfScalarFields() const
Returns the number of associated (and active) scalar fields.
Definition: PointCloudTpl.h:345
@ POINT_CLOUD
Definition: CVTypes.h:104
QString m_status_tip
Definition: BasePclModule.h:30
PCL filter description.
Definition: BasePclModule.h:26
virtual ccHObject * dbRootObject()=0
Returns DB root (as a ccHObject)
ccPluginInterface * getParentPlugin() const
Returns the associated parent plugin interface.
Definition: BasePclModule.h:168
A 3D cloud and its associated features (color, normals, scalar fields, etc.)
Definition: ecvPointCloud.h:146
static bool s_computing
Definition: BasePclModule.cpp:152
virtual int checkSelected()
Checks if current selection is compliant with the filter.
Definition: BasePclModule.cpp:139
void throwError(int errCode)
Definition: BasePclModule.cpp:53
QString getModuleName() const
Returns the name of the filter.
Definition: BasePclModule.cpp:208
int isFirstSelectedCcPointCloud()
Returns 1 if the first selected object is a ccPointCloud.
Definition: BasePclModule.cpp:358
int hasSelectedRGB()
Returns 1 if the first selected entity has RGB info.
Definition: BasePclModule.cpp:365
int getScalarFieldIndexByName(const char *name) const
Returns the index of a scalar field represented by its name.
Definition: PointCloudTpl.h:375
std::vector< ccHObject * > Container
Standard instances container (for children, etc.)
Definition: ecvHObject.h:337
Backup "context" for an object.
Definition: ecvMainAppInterface.h:80
bool m_show_progress
Do we want to show a progress bar when the filter works?
Definition: BasePclModule.h:302
virtual int compute()=0
Performs the actual filter job.
virtual int start()
Starts computation.
Definition: BasePclModule.cpp:162
core::Tensor result
Definition: VtkUtils.cpp:76
virtual void initAction()
Initializes the corresponding action.
Definition: BasePclModule.cpp:44
int64_t CV_CLASS_ENUM
Type of object type flags (64 bits)
Definition: CVTypes.h:97
#define slots
Definition: PythonPlugin.cpp:25
Base abstract class for each implemented PCL filter.
Definition: BasePclModule.h:53
Main application interface (for plugins)
Definition: ecvMainAppInterface.h:24
int hasSelectedScalarField()
Returns 1 if the first selected entity has at least one scalar field.
Definition: BasePclModule.cpp:335
QString Q_DECL_IMPORT filterName(FilterType type)
Definition: datafilter.cpp:12
QAction * m_action
Forces the Ui to be updated.
Definition: BasePclModule.h:269
int performAction()
Returns is called when the dialog window is accepted.
Definition: BasePclModule.cpp:68
void applyGLTransformation_recursive(const ccGLMatrix *trans=nullptr)
Applies the active OpenGL transformation to the entity (recursive)
Definition: ecvHObject.cpp:948
void getAllEntitiesOfType(CV_CLASS_ENUM type, ccHObject::Container &entities)
Returns all the objects in db tree of type "type".
Definition: BasePclModule.cpp:285
virtual int openOutputDialog()
Definition: BasePclModule.h:225
virtual void putObjectBackIntoDBTree(ccHObject *obj, const ccHObjectContext &context)=0
Adds back object to DB tree.
void newEntity(ccHObject *)
Signal emitted when a new entity is created by the filter.
QIcon m_icon
Definition: BasePclModule.h:31
ecvMainAppInterface * m_app
Associated application interface.
Definition: BasePclModule.h:296
ccHObject * getSelectedEntityAsCCHObject() const
Returns the first selected entity as a ccHObject.
Definition: BasePclModule.cpp:266
ecvMainAppInterface * getMainAppInterface()
Definition: BasePclModule.h:165
virtual int checkParameters()
Definition: BasePclModule.h:239
static int s_computeStatus
Definition: BasePclModule.cpp:151
QString getStatusTip() const
Returns the status tip.
Definition: BasePclModule.cpp:212
bool hasScalarFields() const override
Returns whether one or more scalar fields are instantiated.
Definition: ecvPointCloud.cpp:1697
std::vector< std::string > getSelectedAvailableScalarFields()
Definition: BasePclModule.cpp:344
Standard ECV plugin interface.
Definition: ecvPluginInterface.h:33
void entityHasChanged(ccHObject *)
Signal emitted when an entity is (visually) modified.
const char * getScalarFieldName(int index) const
Returns the name of a specific scalar field.
Definition: PointCloudTpl.h:365
BasePclModule(PclModuleDescription desc=PclModuleDescription(), ccPluginInterface *parent_plugin=0)
Default constructor.
Definition: BasePclModule.cpp:37
@ HIERARCHY_OBJECT
Definition: CVTypes.h:103
static BasePclModule * s_module
Definition: BasePclModule.cpp:150
PclModuleDescription m_desc
Associated dialog.
Definition: BasePclModule.h:293
void getSelectedEntitiesThatAreCCPointCloud(ccHObject::Container &entities)
get all entities that are selected and that also are cc_point_cloud
Definition: BasePclModule.cpp:304
void Sleep(int milliseconds)
Definition: Helper.cpp:278
Hierarchical CLOUDVIEWER Object.
Definition: ecvHObject.h:25
void setMainAppInterface(ecvMainAppInterface *app)
Sets associated CC application interface (to access DB)
Definition: BasePclModule.h:161
QString m_entry_name
Definition: BasePclModule.h:29
QString getEntryName() const
Returns the entry name.
Definition: BasePclModule.cpp:210
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.
Definition: BasePclModule.h:95
void getSelectedEntitiesThatAre(CV_CLASS_ENUM kind, ccHObject::Container &entities)
Definition: BasePclModule.cpp:315
ccPointCloud * getSelectedEntityAsCCPointCloud() const
Returns the first selected entity as a ccPointCloud.
Definition: BasePclModule.cpp:256
char type
Definition: FileIOFactory.cpp:131
PclModuleDescription()
Definition: BasePclModule.h:33
virtual QString getErrorMessage(int errorCode)
Returns the error message corresponding to a given error code.
Definition: BasePclModule.cpp:218
void getAllEntitiesThatHaveMetaData(QString key, ccHObject::Container &entities)
Definition: BasePclModule.cpp:292
virtual void getParametersFromDialog()
Collects parameters from the filter dialog (if openDialog is successful)
Definition: BasePclModule.h:231
ccPluginInterface * m_parent_plugin
associated parent plugin of the filter
Definition: BasePclModule.h:299
QString getViewId() const
Definition: ecvHObject.h:225