VTK  9.1.0
vtkWorldPointPicker.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkWorldPointPicker.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm 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=========================================================================*/
51#ifndef vtkWorldPointPicker_h
52#define vtkWorldPointPicker_h
53
54#include "vtkAbstractPicker.h"
55#include "vtkRenderingCoreModule.h" // For export macro
56
57class VTKRENDERINGCORE_EXPORT vtkWorldPointPicker : public vtkAbstractPicker
58{
59public:
62 void PrintSelf(ostream& os, vtkIndent indent) override;
63
65
68 int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
69 int Pick(double selectionPt[3], vtkRenderer* renderer)
70 {
71 return this->vtkAbstractPicker::Pick(selectionPt, renderer);
72 }
74
75protected:
77 ~vtkWorldPointPicker() override = default;
78
79private:
81 void operator=(const vtkWorldPointPicker&) = delete;
82};
83
84#endif
define API for picking subclasses
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
a simple class to control print indentation
Definition: vtkIndent.h:113
abstract specification for renderers
Definition: vtkRenderer.h:173
find world x,y,z corresponding to display x,y,z
int Pick(double selectionPt[3], vtkRenderer *renderer)
Perform the pick.
static vtkWorldPointPicker * New()
~vtkWorldPointPicker() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
Perform the pick.