VTK
vtkPropPicker3D.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkPropPicker3D.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=========================================================================*/
31#ifndef vtkPropPicker3D_h
32#define vtkPropPicker3D_h
33
34#include "vtkRenderingCoreModule.h" // For export macro
36
37class vtkProp;
38
39class VTKRENDERINGCORE_EXPORT vtkPropPicker3D : public vtkAbstractPropPicker
40{
41public:
43
45 void PrintSelf(ostream& os, vtkIndent indent);
46
53 int PickProp(double selectionX, double selectionY,
54 double selectionZ, vtkRenderer *renderer);
55
60 int PickProp(double selectionX, double selectionY,
61 double selectionZ, vtkRenderer *renderer,
62 vtkPropCollection* pickfrom);
63
67 int Pick(double selectionX, double selectionY, double selectionZ,
68 vtkRenderer *renderer);
69 int Pick(double selectionPt[3], vtkRenderer *renderer)
70 { return this->Pick( selectionPt[0],
71 selectionPt[1], selectionPt[2], renderer); }
72
73protected:
76
77 void Initialize();
78
80
81 private:
82 vtkPropPicker3D(const vtkPropPicker3D&) VTK_DELETE_FUNCTION; // Not implemented.
83 void operator=(const vtkPropPicker3D&) VTK_DELETE_FUNCTION; // Not implemented.
84};
85
86#endif
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
Perform pick operation with selection point provided.
abstract API for pickers that can pick an instance of vtkProp
a simple class to control print indentation
Definition: vtkIndent.h:40
a list of Props
pick an actor/prop given XYZ coordinates
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
int PickProp(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer, vtkPropCollection *pickfrom)
Perform a pick from the user-provided list of vtkProps and not from the list of vtkProps that the ren...
vtkPropCollection * PickFromProps
int PickProp(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
Perform the pick and set the PickedProp ivar.
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
Overide superclasses' Pick() method.
int Pick(double selectionPt[3], vtkRenderer *renderer)
static vtkPropPicker3D * New()
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:48
abstract specification for renderers
Definition: vtkRenderer.h:64