SMTK  @SMTK_VERSION@
Simulation Modeling Tool Kit
Public Slots | Public Member Functions | Static Public Member Functions | Protected Slots | Protected Attributes | List of all members
pqSMTKPipelineSelectionBehavior Class Reference

Keep the ParaView pipeline browser and SMTK selections in sync. More...

#include <pqSMTKPipelineSelectionBehavior.h>

Inheritance diagram for pqSMTKPipelineSelectionBehavior:
[legend]
Collaboration diagram for pqSMTKPipelineSelectionBehavior:
[legend]

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 pqSMTKPipelineSelectionBehaviorinstance (QObject *parent=nullptr)
 This behavior is a singleton.
 

Protected Slots

virtual void onActiveSourceChanged (pqPipelineSource *source)
 
virtual void observeSelectionOnServer (vtkSMSMTKWrapperProxy *mgr, pqServer *server)
 
virtual void unobserveSelectionOnServer (vtkSMSMTKWrapperProxy *mgr, pqServer *server)
 

Protected Attributes

bool m_changingSource { false }
 
bool m_displayAttributeResourcesOnSelection { true }
 
std::string m_selectionValue
 
std::map< smtk::view::SelectionPtr, smtk::view::SelectionObservers::Keym_selectionObservers
 

Detailed Description

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.)

Member Function Documentation

◆ setDisplayAttributeResourcesOnSelection

void pqSMTKPipelineSelectionBehavior::setDisplayAttributeResourcesOnSelection ( bool  shouldDisplay)
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.


The documentation for this class was generated from the following files: