vtkPVHardwareSelector.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVHardwareSelector.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html 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 vtkPVHardwareSelector_h
29 #define vtkPVHardwareSelector_h
30 
31 #include "vtkOpenGLHardwareSelector.h"
32 #include "vtkRemotingViewsModule.h" //needed for exports
33 
34 class vtkPVRenderView;
35 
37 {
38 public:
39  static vtkPVHardwareSelector* New();
41  void PrintSelf(ostream& os, vtkIndent indent) override;
42 
47  void SetView(vtkPVRenderView* view);
48 
52  vtkSelection* Select(int region[4]);
53 
58  vtkSelection* PolygonSelect(int* polygonPoints, vtkIdType count);
59 
64  virtual bool NeedToRenderForSelection();
65 
69  void InvalidateCachedSelection() { this->Modified(); }
70 
71  int AssignUniqueId(vtkProp*);
72 
73  // Fixes a -Woverloaded-virtual warning.
78  void BeginRenderProp(vtkRenderWindow*) override;
79 
80 protected:
82  ~vtkPVHardwareSelector() override;
83 
87  int GetPropID(int idx, vtkProp* prop) override;
88 
95  bool PassRequired(int pass) override;
96 
101  bool PrepareSelect();
102 
103  void SavePixelBuffer(int passNo) override;
104 
106  int UniqueId;
107 
108 private:
110  void operator=(const vtkPVHardwareSelector&) = delete;
111 
112  class vtkInternals;
113  vtkInternals* Internals;
114 };
115 
116 #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