#3296 caf::SelectionManager: Refactoring to avoid sending multiple selection changes

Must be considered if using the CmdSelectionGangeExec
This commit is contained in:
Jacob Støren
2018-08-31 15:13:58 +02:00
parent 9a94fc2cde
commit e26a57011d
10 changed files with 196 additions and 60 deletions

View File

@@ -59,6 +59,7 @@ public:
void appendPartsToModel(cvf::ModelBasicList* model);
signals:
void notifySelected();
void notifyRedraw();
void notifyUpdate(const cvf::Vec3d& origin, const cvf::Vec3d& tangent);
@@ -229,7 +230,7 @@ public:
PdmUiSelectionVisualizer3d(caf::Viewer* ownerViewer);
~PdmUiSelectionVisualizer3d();
protected:
virtual void onSelectionManagerSelectionChanged(int selectionLevel) override;
virtual void onSelectionManagerSelectionChanged( const std::set<int>& changedSelectionLevels ) override;
std::vector< QPointer<PdmUi3dObjectEditorHandle> > m_active3DEditors;
@@ -284,6 +285,7 @@ protected:
private slots:
void slotUpdated(const cvf::Vec3d& origin, const cvf::Vec3d& tangent);
void slotSelectedIn3D();
private:
QPointer<RicPointTangentManipulator> m_manipulator;
cvf::ref<cvf::ModelBasicList> m_cvfModel;