vtkSMPreselectionPipeline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSMPreselectionPipeline.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14  =========================================================================*/
29 #ifndef vtkSMPreselectionPipeline_h
30 #define vtkSMPreselectionPipeline_h
31 
32 #include "vtkObject.h"
33 #include "vtkRemotingMiscModule.h" //needed for exports
34 #include "vtkWeakPointer.h" // Weak Pointer
35 
36 // Forward declarations
37 class vtkCallbackCommand;
38 class vtkSMProxy;
40 class vtkSMSourceProxy;
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) override;
46 
48 
51  virtual vtkSMProxy* GetSelectionRepresentation() const;
52  virtual vtkSMProxy* GetOrCreateSelectionRepresentation();
53  virtual vtkSMProxy* CreateSelectionRepresentation(vtkSMSourceProxy* extract);
55 
61  virtual void Show(vtkSMSourceProxy* sourceRepresentation, vtkSMSourceProxy* selection,
62  vtkSMRenderViewProxy* view);
66  virtual void Hide(vtkSMRenderViewProxy* view);
71  void CopyLabels(vtkSMProxy* representation);
72 
73 protected:
75  ~vtkSMPreselectionPipeline() override;
76  static void OnColorModified(
77  vtkObject* source, unsigned long eid, void* clientdata, void* calldata);
78  static void ClearCache(vtkObject* source, unsigned long eid, void* clientdata, void* calldata);
79  virtual void ClearCache();
80  vtkSMSourceProxy* ConnectPVExtractSelection(
81  vtkSMSourceProxy* source, unsigned int sourceOutputPort, vtkSMSourceProxy* selection);
82 
83 private:
85  void operator=(const vtkSMPreselectionPipeline&) = delete;
86 
87 protected:
90 
95 };
96 
97 #endif
vtkCallbackCommand * ConnectionObserver
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
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
#define VTKREMOTINGMISC_EXPORT
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152
vtkWeakPointer< vtkSMSourceProxy > PreviousRepresentation
void operator=(const vtkObjectBase &)