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 "vtkRemotingMiscModule.h" //needed for exports
33 
34 #include <string> // STL Header
35 
36 class vtkDataObject;
37 class vtkDataSet;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45  static vtkSMTooltipSelectionPipeline* GetInstance();
46 
48 
51  void Hide(vtkSMRenderViewProxy* view) override;
52  void Show(vtkSMSourceProxy* sourceRepresentation, vtkSMSourceProxy* selection,
53  vtkSMRenderViewProxy* view) override;
55 
61  bool CanDisplayTooltip(bool& showTooltip);
62 
67  bool GetTooltipInfo(int association, std::string& tooltipText);
68 
73  VTK_LEGACY(bool GetTooltipInfo(int association, double pos[2], std::string& tooltipText));
74 
75 protected:
78 
82  void ClearCache() override;
83 
88  vtkDataObject* ConnectPVMoveSelectionToClient(
89  vtkSMSourceProxy* source, unsigned int sourceOutputPort);
90 
94  bool GetCurrentSelectionId(vtkSMRenderViewProxy* view, vtkIdType& selId);
95 
100  vtkDataSet* FindDataSet(
101  vtkDataObject* dataObject, bool& compositeFound, std::string& compositeName);
102 
107 
108 private:
110  void operator=(const vtkSMTooltipSelectionPipeline&) = delete;
111 };
112 
113 #endif
#define VTK_LEGACY(method)
Definition: vtkLegacy.h:52
Point tooltip mode enables the user to inspect points (coordinates, data array values) by hovering th...
int vtkIdType
void PrintSelf(ostream &os, vtkIndent indent) override
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()
#define VTKREMOTINGMISC_EXPORT
virtual void Show(vtkSMSourceProxy *sourceRepresentation, vtkSMSourceProxy *selection, vtkSMRenderViewProxy *view)
Shows the interactive selection for &#39;selection&#39; and &#39;sourceRepresentation&#39;.
static vtkObject * New()