ParaView
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 "vtkPVServerManagerDefaultModule.h" //needed for exports
34 #include "vtkWeakPointer.h" // Weak Pointer
35 
36 // Forward declarations
37 class vtkCallbackCommand;
38 class vtkSMProxy;
40 class vtkSMSourceProxy;
41 class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkSMPreselectionPipeline : public vtkObject
42 {
43 public:
44  vtkTypeMacro(vtkSMPreselectionPipeline, vtkObject);
45  void PrintSelf(ostream& os, vtkIndent indent);
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:
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:
84  vtkSMPreselectionPipeline(const vtkSMPreselectionPipeline&) VTK_DELETE_FUNCTION;
85  void operator=(const vtkSMPreselectionPipeline&) VTK_DELETE_FUNCTION;
86 
87 protected:
88  vtkSMSourceProxy* ExtractInteractiveSelection;
89  vtkSMProxy* SelectionRepresentation;
90 
91  vtkWeakPointer<vtkSMRenderViewProxy> PreviousView;
92  vtkWeakPointer<vtkSMSourceProxy> PreviousRepresentation;
93  vtkCallbackCommand* ColorObserver;
94  vtkCallbackCommand* ConnectionObserver;
95 };
96 
97 #endif
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
proxy for a VTK object(s) on a server
Definition: vtkSMProxy.h:152