ParaView
vtkSMTooltipSelectionPipeline.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkSMTooltipSelectionPipeline.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  =========================================================================*/
28 #ifndef vtkSMTooltipSelectionPipeline_h
29 #define vtkSMTooltipSelectionPipeline_h
30 
31 #include "vtkPVServerManagerDefaultModule.h" //needed for exports
33 
34 #include <string> // STL Header
35 
36 class vtkDataObject;
37 class vtkDataSet;
38 
39 class VTKPVSERVERMANAGERDEFAULT_EXPORT vtkSMTooltipSelectionPipeline
41 {
42 public:
43  static vtkSMTooltipSelectionPipeline* New();
45  void PrintSelf(ostream& os, vtkIndent indent);
46  static vtkSMTooltipSelectionPipeline* GetInstance();
47 
49 
52  virtual void Hide(vtkSMRenderViewProxy* view);
53  virtual void Show(vtkSMSourceProxy* sourceRepresentation, vtkSMSourceProxy* selection,
54  vtkSMRenderViewProxy* view);
56 
62  bool CanDisplayTooltip(bool& showTooltip);
63 
68  bool GetTooltipInfo(double tooltipPos[2], std::string& tooltipText);
69 
70 protected:
73 
77  void ClearCache();
78 
83  vtkDataObject* ConnectPVMoveSelectionToClient(
84  vtkSMSourceProxy* source, unsigned int sourceOutputPort);
85 
89  bool GetCurrentSelectionId(vtkSMRenderViewProxy* view, vtkIdType& selId);
90 
95  vtkDataSet* FindDataSet(
96  vtkDataObject* dataObject, bool& compositeFound, std::string& compositeName);
97 
102 
103 private:
105  void operator=(const vtkSMTooltipSelectionPipeline&) VTK_DELETE_FUNCTION;
106 };
107 
108 #endif
Point tooltip mode enables the user to inspect points (coordinates, data array values) by hovering th...
void PrintSelf(ostream &os, vtkIndent indent)
virtual void Hide(vtkSMRenderViewProxy *view)
Hides the interactive selection.
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
virtual void ClearCache()
virtual void Show(vtkSMSourceProxy *sourceRepresentation, vtkSMSourceProxy *selection, vtkSMRenderViewProxy *view)
Shows the interactive selection for &#39;selection&#39; and &#39;sourceRepresentation&#39;.