20 #ifndef cvHardwareSelector_h
21 #define cvHardwareSelector_h
23 #include <vtkOpenGLHardwareSelector.h>
24 #include <vtkTimeStamp.h>
46 :
public vtkOpenGLHardwareSelector {
50 void PrintSelf(ostream& os, vtkIndent indent)
override;
61 virtual vtkSelection* Select(
int region[4]);
72 vtkSelection* PolygonSelect(
int* polygonPoints, vtkIdType
count);
82 virtual bool NeedToRenderForSelection();
101 int AssignUniqueId(vtkProp* prop);
117 using vtkOpenGLHardwareSelector::BeginRenderProp;
122 void BeginRenderProp(vtkRenderWindow* rw)
override;
127 void BeginSelection()
override;
132 void EndSelection()
override;
143 int GetPropID(
int idx, vtkProp* prop)
override;
150 bool PassRequired(
int pass)
override;
160 bool PrepareSelect();
165 void SavePixelBuffer(
int passNo)
override;
181 std::map<void*, int> PropMap;
Hardware selector with ParaView-style buffer caching.
void InvalidateCachedSelection()
Invalidate the cached selection buffers.
int UniqueId
Counter for unique prop IDs.
vtkTypeMacro(cvHardwareSelector, vtkOpenGLHardwareSelector)
vtkSetMacro(PointPickingRadius, unsigned int)
Point picking radius (in pixels)
vtkTimeStamp CaptureTime
Time when buffers were last captured.
static cvHardwareSelector * New()
vtkGetMacro(PointPickingRadius, unsigned int)
unsigned int PointPickingRadius
Point picking radius in pixels (default: 10)
#define QPCL_ENGINE_LIB_API