vtkSMPreselectionPipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkSMPreselectionPipeline_h
19 #define vtkSMPreselectionPipeline_h
20 
21 #include "vtkObject.h"
22 #include "vtkRemotingMiscModule.h" //needed for exports
23 #include "vtkWeakPointer.h" // Weak Pointer
24 
25 // Forward declarations
26 class vtkCallbackCommand;
27 class vtkSMProxy;
29 class vtkSMSourceProxy;
31 {
32 public:
34  void PrintSelf(ostream& os, vtkIndent indent) override;
35 
37 
40  virtual vtkSMProxy* GetSelectionRepresentation() const;
41  virtual vtkSMProxy* GetOrCreateSelectionRepresentation();
42  virtual vtkSMProxy* CreateSelectionRepresentation(
43  vtkSMSourceProxy* extract, vtkSMRenderViewProxy* view);
45  {
46  return this->CreateSelectionRepresentation(extract, nullptr);
47  }
49 
55  virtual void Show(vtkSMSourceProxy* sourceRepresentation, vtkSMSourceProxy* selection,
56  vtkSMRenderViewProxy* view);
60  virtual void Hide(vtkSMRenderViewProxy* view);
65  void CopyLabels(vtkSMProxy* representation);
66 
67 protected:
69  ~vtkSMPreselectionPipeline() override;
70  static void OnColorModified(
71  vtkObject* source, unsigned long eid, void* clientdata, void* calldata);
72  static void ClearCache(vtkObject* source, unsigned long eid, void* clientdata, void* calldata);
73  virtual void ClearCache();
74  vtkSMSourceProxy* ConnectPVExtractSelection(
75  vtkSMSourceProxy* source, unsigned int sourceOutputPort, vtkSMSourceProxy* selection);
76 
77 private:
79  void operator=(const vtkSMPreselectionPipeline&) = delete;
80 
81 protected:
84 
89 };
90 
91 #endif
vtkCallbackCommand * ConnectionObserver
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
virtual vtkSMProxy * CreateSelectionRepresentation(vtkSMSourceProxy *extract)
Get/Create the interactive selection representation.
vtkSMSourceProxy * ExtractInteractiveSelection
implementation for View that includes render window and renderers.
Preselection enables the user to inspect cells/points without actually selecting them.
proxy for a VTK source on a server
vtkWeakPointer< vtkSMRenderViewProxy > PreviousView
source
#define VTKREMOTINGMISC_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
vtkWeakPointer< vtkSMSourceProxy > PreviousRepresentation
void operator=(const vtkObjectBase &)