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 
39 class VTKREMOTINGMISC_EXPORT vtkSMTooltipSelectionPipeline : public vtkSMPreselectionPipeline
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, double tooltipPos[2], std::string& tooltipText);
68 
69 protected:
72 
76  void ClearCache() override;
77 
82  vtkDataObject* ConnectPVMoveSelectionToClient(
83  vtkSMSourceProxy* source, unsigned int sourceOutputPort);
84 
88  bool GetCurrentSelectionId(vtkSMRenderViewProxy* view, vtkIdType& selId);
89 
94  vtkDataSet* FindDataSet(
95  vtkDataObject* dataObject, bool& compositeFound, std::string& compositeName);
96 
101 
102 private:
104  void operator=(const vtkSMTooltipSelectionPipeline&) = delete;
105 };
106 
107 #endif
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()
virtual void Show(vtkSMSourceProxy *sourceRepresentation, vtkSMSourceProxy *selection, vtkSMRenderViewProxy *view)
Shows the interactive selection for 'selection' and 'sourceRepresentation'.
static vtkObject * New()