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;
30 class VTKREMOTINGMISC_EXPORT vtkSMPreselectionPipeline : public vtkObject
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
vtkSMPreselectionPipeline::ConnectionObserver
vtkCallbackCommand * ConnectionObserver
Definition: vtkSMPreselectionPipeline.h:88
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
vtkSMRenderViewProxy
implementation for View that includes render window and renderers.
Definition: vtkSMRenderViewProxy.h:27
vtkSMPreselectionPipeline::SelectionRepresentation
vtkSMProxy * SelectionRepresentation
Definition: vtkSMPreselectionPipeline.h:83
vtkObject
vtkSMPreselectionPipeline::CreateSelectionRepresentation
virtual vtkSMProxy * CreateSelectionRepresentation(vtkSMSourceProxy *extract)
Get/Create the interactive selection representation.
Definition: vtkSMPreselectionPipeline.h:44
vtkSMProxy
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:140
vtkSMSourceProxy
proxy for a VTK source on a server
Definition: vtkSMSourceProxy.h:37
vtkIndent
vtkWeakPointer.h
vtkObject.h
vtkSMPreselectionPipeline
Definition: vtkSMPreselectionPipeline.h:30
vtkSMPreselectionPipeline::PreviousView
vtkWeakPointer< vtkSMRenderViewProxy > PreviousView
Definition: vtkSMPreselectionPipeline.h:85
vtkSMPreselectionPipeline::PreviousRepresentation
vtkWeakPointer< vtkSMSourceProxy > PreviousRepresentation
Definition: vtkSMPreselectionPipeline.h:86
vtkSMPreselectionPipeline::ExtractInteractiveSelection
vtkSMSourceProxy * ExtractInteractiveSelection
Definition: vtkSMPreselectionPipeline.h:82
vtkCallbackCommand
vtkObject::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
vtkWeakPointer< vtkSMRenderViewProxy >
vtkSMPreselectionPipeline::ColorObserver
vtkCallbackCommand * ColorObserver
Definition: vtkSMPreselectionPipeline.h:87