SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Keep the ParaView pipeline browser and SMTK selections in sync. More...
#include <pqSMTKPipelineSelectionBehavior.h>
Public Slots | |
virtual void | setDisplayAttributeResourcesOnSelection (bool shouldDisplay) |
Set whether selecting an attribute resource should cause that resource to appear in the attribute-editor panel (assuming it is not marked private). More... | |
Public Member Functions | |
pqSMTKPipelineSelectionBehavior (QObject *parent=nullptr) | |
void | setSelectionValue (const std::string &selectionValue) |
Set which integer bit(s) to modify in the SMTK selection when a pipeline source is selected. | |
const std::string & | selectionValue () const |
bool | displayAttributeResourcesOnSelection () const |
Return whether selecting an attribute resource should cause that resource to appear in the attribute-editor panel (assuming it is not marked private). | |
Static Public Member Functions | |
static pqSMTKPipelineSelectionBehavior * | instance (QObject *parent=nullptr) |
This behavior is a singleton. | |
Protected Attributes | |
bool | m_changingSource { false } |
bool | m_displayAttributeResourcesOnSelection { true } |
std::string | m_selectionValue |
std::map< smtk::view::SelectionPtr, smtk::view::SelectionObservers::Key > | m_selectionObservers |
Keep the ParaView pipeline browser and SMTK selections in sync.
When the SMTK selection is updated and contains resources (as opposed to components), select those resources in the pipeline browser. Similarly, when pipeline sources in ParaView are selected, replace the SMTK selection with the related resources.
This behavior can also be configured to update the attribute editor panel (pqSMTKAttributePanel) when the selection is set to an attribute resource. (The default behavior is to show the resource when it is selected.)
|
virtualslot |
Set whether selecting an attribute resource should cause that resource to appear in the attribute-editor panel (assuming it is not marked private).
This is true by default.