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 
28 class VTKREMOTINGMISC_EXPORT vtkSMTooltipSelectionPipeline : public vtkSMPreselectionPipeline
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
vtkSMRenderViewProxy
implementation for View that includes render window and renderers.
Definition: vtkSMRenderViewProxy.h:27
vtkIdType
int vtkIdType
vtkSMTooltipSelectionPipeline::DataMover
vtkSmartPointer< vtkSMProxy > DataMover
Definition: vtkSMTooltipSelectionPipeline.h:90
vtkObject::New
static vtkObject * New()
vtkSMPreselectionPipeline::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkSmartPointer< vtkSMProxy >
vtkSMPreselectionPipeline::Show
virtual void Show(vtkSMSourceProxy *sourceRepresentation, vtkSMSourceProxy *selection, vtkSMRenderViewProxy *view)
Shows the interactive selection for 'selection' and 'sourceRepresentation'.
vtkSMPreselectionPipeline::Hide
virtual void Hide(vtkSMRenderViewProxy *view)
Hides the interactive selection.
vtkSMTooltipSelectionPipeline::PreviousSelectionId
vtkIdType PreviousSelectionId
Definition: vtkSMTooltipSelectionPipeline.h:91
vtkSMTooltipSelectionPipeline::SelectionFound
bool SelectionFound
Definition: vtkSMTooltipSelectionPipeline.h:92
vtkSMSourceProxy
proxy for a VTK source on a server
Definition: vtkSMSourceProxy.h:37
vtkIndent
vtkSmartPointer.h
vtkSMTooltipSelectionPipeline::TooltipEnabled
bool TooltipEnabled
Definition: vtkSMTooltipSelectionPipeline.h:93
vtkDataSet
vtkSMPreselectionPipeline
Definition: vtkSMPreselectionPipeline.h:30
vtkSMPreselectionPipeline::ClearCache
virtual void ClearCache()
vtkSMTooltipSelectionPipeline
Definition: vtkSMTooltipSelectionPipeline.h:28
vtkDataObject
vtkSMPreselectionPipeline.h