vtkPVHardwareSelector.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
16 #ifndef vtkPVHardwareSelector_h
17 #define vtkPVHardwareSelector_h
18 
19 #include "vtkOpenGLHardwareSelector.h"
20 #include "vtkRemotingViewsModule.h" //needed for exports
21 
22 class vtkPVRenderView;
23 
25 {
26 public:
27  static vtkPVHardwareSelector* New();
29  void PrintSelf(ostream& os, vtkIndent indent) override;
30 
35  void SetView(vtkPVRenderView* view);
36 
41  virtual vtkSelection* Select(int region[4]);
42 
47  vtkSelection* PolygonSelect(int* polygonPoints, vtkIdType count);
48 
53  virtual bool NeedToRenderForSelection();
54 
58  void InvalidateCachedSelection() { this->Modified(); }
59 
60  int AssignUniqueId(vtkProp*);
61 
62  // Fixes a -Woverloaded-virtual warning.
67  void BeginRenderProp(vtkRenderWindow*) override;
68 
69 protected:
71  ~vtkPVHardwareSelector() override;
72 
76  int GetPropID(int idx, vtkProp* prop) override;
77 
84  bool PassRequired(int pass) override;
85 
90  bool PrepareSelect();
91 
92  void SavePixelBuffer(int passNo) override;
93 
95  int UniqueId;
96 
97 private:
99  void operator=(const vtkPVHardwareSelector&) = delete;
100 
101  class vtkInternals;
102  vtkInternals* Internals;
103 };
104 
105 #endif
#define VTKREMOTINGVIEWS_EXPORT
virtual void BeginRenderProp()
int vtkIdType
vtkHardwareSelector subclass with paraview specific logic to avoid recapturing buffers unless needed...
void PrintSelf(ostream &os, vtkIndent indent)
static vtkOpenGLHardwareSelector * New()
virtual void SavePixelBuffer(int passNo)
virtual int GetPropID(int idx, vtkProp *vtkNotUsed(prop))
virtual void Modified()
vtkSelection * Select()
void InvalidateCachedSelection()
Called to invalidate the cache.
Render View for ParaView.
void operator=(const vtkObjectBase &)
virtual bool PassRequired(int pass)
vtkInternals * Internals