vtkSMTooltipSelectionPipeline.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
3 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkSMTooltipSelectionPipeline_h
18 #define vtkSMTooltipSelectionPipeline_h
19 
20 #include "vtkRemotingMiscModule.h" //needed for exports
22 #include "vtkSmartPointer.h" // for vtkSmartPointer
23 #include <string> // for std::string
24 
25 class vtkDataObject;
26 class vtkDataSet;
27 
29 {
30 public:
33  void PrintSelf(ostream& os, vtkIndent indent) override;
34  static vtkSMTooltipSelectionPipeline* GetInstance();
35 
37 
40  void Hide(vtkSMRenderViewProxy* view) override;
41  void Show(vtkSMSourceProxy* sourceRepresentation, vtkSMSourceProxy* selection,
42  vtkSMRenderViewProxy* view) override;
44 
50  bool CanDisplayTooltip(bool& showTooltip);
51 
53 
58  bool GetTooltipInfo(int association, std::string& tooltipText);
59  bool GetTooltipInfo(int association, std::string& tooltipText, std::string& plainTooltipText);
61 
62 protected:
65 
69  void ClearCache() override;
70 
75  vtkDataObject* ConnectPVMoveSelectionToClient(
76  vtkSMSourceProxy* source, unsigned int sourceOutputPort);
77 
81  bool GetCurrentSelectionId(vtkSMRenderViewProxy* view, vtkIdType& selId);
82 
87  vtkDataSet* FindDataSet(
88  vtkDataObject* dataObject, bool& compositeFound, std::string& compositeName);
89 
94 
95 private:
97  void operator=(const vtkSMTooltipSelectionPipeline&) = delete;
98 };
99 
100 #endif
Point tooltip mode enables the user to inspect points (coordinates, data array values) by hovering th...
int vtkIdType
vtkSmartPointer< vtkSMProxy > DataMover
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()