diff --git a/SplatCloudObjectSelectionPlugin.cc b/SplatCloudObjectSelectionPlugin.cc index 4e3aeae50463bf38997e38d66b653d3f8f3762ff..ae0eb6d5a27a89c353db8fb6b923f033897ff620 100644 --- a/SplatCloudObjectSelectionPlugin.cc +++ b/SplatCloudObjectSelectionPlugin.cc @@ -150,7 +150,7 @@ void SplatCloudObjectSelectionPlugin::updateSlotDescriptions() //---------------------------------------------------------------- -void SplatCloudObjectSelectionPlugin::slotSelectionOperation( const QString& _operation ) +void SplatCloudObjectSelectionPlugin::slotSelectionOperation( const QString _operation) { SelectionInterface::PrimitiveType type = 0u; emit getActivePrimitiveType( type ); diff --git a/SplatCloudObjectSelectionPlugin.hh b/SplatCloudObjectSelectionPlugin.hh index 19c0051dda22601ead607fbd618a1051c5d5c21e..b8712e74143ab69f4a85d27c16bbfe47ecf6841c 100644 --- a/SplatCloudObjectSelectionPlugin.hh +++ b/SplatCloudObjectSelectionPlugin.hh @@ -105,37 +105,37 @@ public: signals: //-- Base Interface -- - void updateView(); - void updatedObject( int _objectId, const UpdateType& _type ); - void nodeVisibilityChanged( int _objectId ); - void setSlotDescription( QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions ); + void updateView() override; + void updatedObject( int _objectId, const UpdateType& _type ) override; + void nodeVisibilityChanged( int _objectId ) override; + void setSlotDescription( QString _slotName, QString _slotDescription, QStringList _parameters, QStringList _descriptions ) override; //-- Backup Interface -- - void createBackup( int _objectId, QString _name, UpdateType _type = UPDATE_ALL ); + void createBackup( int _objectId, QString _name, UpdateType _type = UPDATE_ALL ) override; //-- Logging Interface -- - void log( QString _message ); - void log( Logtype _type, QString _message ); + void log( QString _message ) override; + void log( Logtype _type, QString _message ) override; //-- Selection Interface -- - void addSelectionEnvironment( QString _modeName, QString _description, QString _icon, QString &_handleName ); - void registerType( QString _handleName, DataType _type ); - void addPrimitiveType( QString _handleName, QString _name, QString _icon, SelectionInterface::PrimitiveType &_typeHandle ); - void addSelectionOperations( QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type = 0u ); + void addSelectionEnvironment( QString _modeName, QString _description, QString _icon, QString &_handleName ) override; + void registerType( QString _handleName, DataType _type ) override; + void addPrimitiveType( QString _handleName, QString _name, QString _icon, SelectionInterface::PrimitiveType &_typeHandle ) override; + void addSelectionOperations( QString _handleName, QStringList _operationsList, QString _category, SelectionInterface::PrimitiveType _type = 0u ) override; - void showToggleSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ); - void showSphereSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ); - void showLassoSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ); - void showVolumeLassoSelectionMode( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ); + void showToggleSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ) override; + void showSphereSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ) override; + void showLassoSelectionMode ( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ) override; + void showVolumeLassoSelectionMode( QString _handleName, bool _show, SelectionInterface::PrimitiveType _associatedTypes ) override; - void getActiveDataTypes( SelectionInterface::TypeList &_types ); - void getActivePrimitiveType( SelectionInterface::PrimitiveType &_type ); - void targetObjectsOnly( bool &_targetsOnly ); + void getActiveDataTypes( SelectionInterface::TypeList &_types) override; + void getActivePrimitiveType( SelectionInterface::PrimitiveType &_type) override; + void targetObjectsOnly( bool &_targetsOnly) override; - void registerKeyShortcut( int _key, Qt::KeyboardModifiers _modifiers = Qt::NoModifier ); + void registerKeyShortcut( int _key, Qt::KeyboardModifiers _modifiers = Qt::NoModifier) override; //-- LoadSave Interface -- - void deleteObject( int _objectId ); + void deleteObject( int _objectId) override; //-- Script Interface -- void scriptInfo( QString _functionName ); @@ -143,37 +143,37 @@ signals: public slots: //-- Selection Interface -- - void loadSelection( int _objectId, const QString &_filename ); + void loadSelection( int _objectId, const QString &_filename) override; private slots: //-- INI Interface -- - void loadIniFile( INIFile &_ini, int _objectId ); - void saveIniFile( INIFile &_ini, int _objectId ); + void loadIniFile( INIFile &_ini, int _objectId) override; + void saveIniFile( INIFile &_ini, int _objectId) override; //-- Base Interface -- - void initializePlugin(); - void pluginsInitialized(); - void noguiSupported() { }; + void initializePlugin() override; + void pluginsInitialized() override; + void noguiSupported() override { }; //-- Selection Interface -- - void slotSelectionOperation(const QString &_operation ); + void slotSelectionOperation(const QString _operation ) override; - void slotToggleSelection ( QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect ); - void slotSphereSelection ( QMouseEvent *_event, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect ); - void slotLassoSelection ( QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect ); - void slotVolumeLassoSelection( QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect ); + void slotToggleSelection ( QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect) override; + void slotSphereSelection ( QMouseEvent *_event, double _radius, SelectionInterface::PrimitiveType _currentType, bool _deselect) override; + void slotLassoSelection ( QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect) override; + void slotVolumeLassoSelection( QMouseEvent *_event, SelectionInterface::PrimitiveType _currentType, bool _deselect) override; - void slotLoadSelection( const INIFile &_file ); - void slotSaveSelection( INIFile &_file ); + void slotLoadSelection( const INIFile &_file ) override; + void slotSaveSelection( INIFile &_file ) override; - void slotKeyShortcutEvent( int _key, Qt::KeyboardModifiers _modifiers ); + void slotKeyShortcutEvent( int _key, Qt::KeyboardModifiers _modifiers ) override; public: //-- Base Interface -- - QString name() { return QString( tr("SplatCloud Object Selection" ) ); } - QString description() { return QString( tr("Allows to select parts of SplatCloud Objects") ); } + QString name() override { return QString( tr("SplatCloud Object Selection" ) ); } + QString description() override { return QString( tr("Allows to select parts of SplatCloud Objects") ); } //=========================================================================== /** @name Private methods @@ -199,7 +199,7 @@ private slots: public slots: - QString version() { return QString( "1.0" ); } + QString version() override { return QString( "1.0" ); } // Is vertex type active? (for use in plugins that need SplatCloud selection) bool vertexTypeActive()