VTK  9.0.20210621
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 =========================================================================*/
38 #ifndef vtkWorldPointPicker_h
39 #define vtkWorldPointPicker_h
40 
41 #include "vtkAbstractPicker.h"
42 #include "vtkRenderingCoreModule.h" // For export macro
43 
44 class VTKRENDERINGCORE_EXPORT vtkWorldPointPicker : public vtkAbstractPicker
45 {
46 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50 
52 
55  int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer* renderer) override;
56  int Pick(double selectionPt[3], vtkRenderer* renderer)
57  {
58  return this->vtkAbstractPicker::Pick(selectionPt, renderer);
59  }
61 
62 protected:
64  ~vtkWorldPointPicker() override = default;
65 
66 private:
68  void operator=(const vtkWorldPointPicker&) = delete;
69 };
70 
71 #endif
vtkWorldPointPicker::New
static vtkWorldPointPicker * New()
vtkWorldPointPicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkWorldPointPicker::Pick
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer) override
Perform the pick.
vtkWorldPointPicker
find world x,y,z corresponding to display x,y,z
Definition: vtkWorldPointPicker.h:45
vtkWorldPointPicker::vtkWorldPointPicker
vtkWorldPointPicker()
vtkAbstractPicker
define API for picking subclasses
Definition: vtkAbstractPicker.h:69
vtkWorldPointPicker::Pick
int Pick(double selectionPt[3], vtkRenderer *renderer)
Perform the pick.
Definition: vtkWorldPointPicker.h:56
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:34
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:71
vtkWorldPointPicker::~vtkWorldPointPicker
~vtkWorldPointPicker() override=default
vtkAbstractPicker::Pick
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
vtkAbstractPicker.h