10 #ifndef smtk_extension_paraview_appcomponents_pqSMTKPipelineSelectionBehavior_h
11 #define smtk_extension_paraview_appcomponents_pqSMTKPipelineSelectionBehavior_h
14 #include "smtk/model/EntityTypeBits.h"
15 #include "smtkPQComponentsExtModule.h"
17 #include "smtk/view/SelectionObserver.h"
19 #include "smtk/extension/paraview/appcomponents/pqQtKeywordWrapping.h"
25 class vtkSMSMTKWrapperProxy;
26 class pqPipelineSource;
44 using Superclass = QObject;
54 void setSelectionValue(
const std::string& selectionValue);
55 const std::string& selectionValue()
const {
return m_selectionValue; }
61 return m_displayAttributeResourcesOnSelection;
68 virtual void setDisplayAttributeResourcesOnSelection(
bool shouldDisplay);
71 virtual void onActiveSourceChanged(pqPipelineSource* source);
72 virtual void observeSelectionOnServer(vtkSMSMTKWrapperProxy* mgr, pqServer* server);
73 virtual void unobserveSelectionOnServer(vtkSMSMTKWrapperProxy* mgr, pqServer* server);
76 bool m_changingSource{
false };
77 bool m_displayAttributeResourcesOnSelection{
true };
78 std::string m_selectionValue;
79 std::map<smtk::view::SelectionPtr, smtk::view::SelectionObservers::Key> m_selectionObservers;