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 
24 class VTKREMOTINGVIEWS_EXPORT vtkPVHardwareSelector : public vtkOpenGLHardwareSelector
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
vtkObjectBase::operator=
void operator=(const vtkObjectBase &)
vtkOpenGLHardwareSelector::Internals
vtkInternals * Internals
vtkOpenGLHardwareSelector::BeginRenderProp
virtual void BeginRenderProp()
vtkIdType
int vtkIdType
vtkTimeStamp
vtkObject::Modified
virtual void Modified()
vtkPVHardwareSelector
vtkHardwareSelector subclass with paraview specific logic to avoid recapturing buffers unless needed.
Definition: vtkPVHardwareSelector.h:24
vtkHardwareSelector::PassRequired
virtual bool PassRequired(int pass)
vtkHardwareSelector::GetPropID
virtual int GetPropID(int idx, vtkProp *vtkNotUsed(prop))
vtkSelection
vtkOpenGLHardwareSelector
vtkHardwareSelector::Select
vtkSelection * Select()
vtkOpenGLHardwareSelector::New
static vtkOpenGLHardwareSelector * New()
vtkPVHardwareSelector::UniqueId
int UniqueId
Definition: vtkPVHardwareSelector.h:95
vtkPVHardwareSelector::InvalidateCachedSelection
void InvalidateCachedSelection()
Called to invalidate the cache.
Definition: vtkPVHardwareSelector.h:58
vtkOpenGLHardwareSelector::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkIndent
vtkOpenGLHardwareSelector::SavePixelBuffer
virtual void SavePixelBuffer(int passNo)
vtkProp
vtkPVRenderView
Render View for ParaView.
Definition: vtkPVRenderView.h:64
vtkRenderWindow
vtkPVHardwareSelector::CaptureTime
vtkTimeStamp CaptureTime
Definition: vtkPVHardwareSelector.h:94