SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
Intercept ParaView selections. More...
#include <vtkSMTKEncodeSelection.h>
Public Types | |
typedef vtkPVEncodeSelectionForServer | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkSMTKEncodeSelection * | NewInstance () const |
vtkSMTKEncodeSelection (const vtkSMTKEncodeSelection &)=delete | |
vtkSMTKEncodeSelection & | operator= (const vtkSMTKEncodeSelection &)=delete |
bool | ProcessSelection (vtkSelection *rawSelection, vtkSMRenderViewProxy *viewProxy, bool multipleSelectionsAllowed, vtkCollection *selectedRepresentations, vtkCollection *selectionSources, int modifier, bool selectBlocks) override |
Static Public Member Functions | |
static vtkSMTKEncodeSelection * | New () |
static int | IsTypeOf (const char *type) |
static vtkSMTKEncodeSelection * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
void | ProcessRawSelection (vtkSelection *rawSelection, vtkSMRenderViewProxy *viewProxy, int modifier, bool selectBlocks) |
Method called by ProcessSelection to perform SMTK-related selection. | |
bool | ProcessResource (pqSMTKWrapper *wrapper, const std::shared_ptr< smtk::resource::Resource > &resource, const std::shared_ptr< smtk::view::Selection > &smtkSelection, vtkSMTKResourceRepresentation *resourceRep, vtkSelection *rawSelection, vtkSMRenderViewProxy *vtkNotUsed(viewProxy), int modifier, bool selectBlocks) |
Intercept ParaView selections.
ParaView's usual framework for selection notification occurs after information we need is removed from the selection. We override the class (vtkPVEncodeSelectionForServer) used by ParaView to transform the selection by registering this class with vtkObjectFactory (see pqSMTKAppComponentsAutoStart) and perform our selection work at that point.