SMTK
@SMTK_VERSION@
Simulation Modeling Tool Kit
|
10 #ifndef smtk_view_RespondToVTKSelection_h
11 #define smtk_view_RespondToVTKSelection_h
14 #include "smtk/extension/paraview/server/smtkPVServerExtModule.h"
15 #include "smtk/operation/XMLOperation.h"
17 #include "smtk/view/Selection.h"
20 class vtkMultiBlockDataSet;
41 using Result = smtk::operation::Operation::Result;
66 bool setInteractionMode(
int mode);
67 int interactionMode()
const {
return m_interactionMode; }
73 bool setVTKData(vtkMultiBlockDataSet* seln);
74 vtkMultiBlockDataSet* vtkData()
const {
return m_vtkData; }
80 bool setVTKSelection(vtkSelection* seln);
81 ::vtkSelection* vtkSelection()
const {
return m_vtkSelection; }
95 bool setSMTKSelectionSource(
const std::string& sourceName);
96 std::string smtkSelectionSource()
const {
return m_smtkSelectionSource; }
104 bool setSMTKSelectionValue(
int value);
105 int smtkSelectionValue()
const {
return m_smtkSelectionValue; }
113 bool setModifier(
int modifier);
114 int modifier()
const {
return m_modifier; }
130 bool setSelectingBlocks(
bool shouldSelectBlocks);
131 bool selectingBlocks()
const {
return m_selectingBlocks; }
144 bool transcribeBlockSelection();
147 Result operateInternal()
override;
151 int m_interactionMode;
152 ::vtkSelection* m_vtkSelection{
nullptr };
153 vtkMultiBlockDataSet* m_vtkData{
nullptr };
155 std::string m_smtkSelectionSource;
156 int m_smtkSelectionValue{ 1 };
158 bool m_selectingBlocks{
false };
161 const char* xmlDescription()
const override;
168 #endif // smtk_view_RespondToVTKSelection_h
The main namespace for the Simulation Modeling Tool Kit (SMTK).
Definition: doc.h:33
smtk::weak_ptr< smtk::view::Selection > WeakSelectionPtr
Definition: PublicPointerDefs.h:636
smtk::shared_ptr< smtk::view::Selection > SelectionPtr
Definition: PublicPointerDefs.h:634
A specialization of smtk::operation::Operation for operations whose specifications are defined by an ...
Definition: XMLOperation.h:23
SelectionAction
Descriptors for how lists passed to the selection should modify the selection-map.
Definition: SelectionAction.h:19
#define smtkCreateMacro(...)
Add static create() methods to a class.
Definition: SharedFromThis.h:173
#define smtkSharedFromThisMacro(...)
A macro to help with derived classes whose bases enable shared_from_this().
Definition: SharedFromThis.h:250
Operation is a base class for all SMTK operations.
Definition: Operation.h:61
#define smtkTypeMacro(...)
Add typedefs to a class for identifcation.
Definition: SharedFromThis.h:128
A base class for operations that should be invoked when the VTK selection changes.
Definition: RespondToVTKSelection.h:38
#define smtkSuperclassMacro(...)
Add a typedef to the superclass of this class.
Definition: SharedFromThis.h:147
void generateSummary(Operation::Result &) override
Fail or succeed quietly.
Definition: RespondToVTKSelection.h:149