VTK
vtkPropPicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPropPicker.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 =========================================================================*/
35 #ifndef vtkPropPicker_h
36 #define vtkPropPicker_h
37 
38 #include "vtkRenderingCoreModule.h" // For export macro
39 #include "vtkAbstractPropPicker.h"
40 
41 class vtkProp;
43 
45 {
46 public:
47  static vtkPropPicker *New();
48 
50  void PrintSelf(ostream& os, vtkIndent indent);
51 
56  int PickProp(double selectionX, double selectionY, vtkRenderer *renderer);
57 
59 
61  int PickProp(double selectionX, double selectionY, vtkRenderer *renderer,
62  vtkPropCollection* pickfrom);
64 
66 
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); }
73 
74 protected:
77 
78  void Initialize();
79 
81 
82  // Used to get x-y-z pick position
84 private:
85  vtkPropPicker(const vtkPropPicker&); // Not implemented.
86  void operator=(const vtkPropPicker&); // Not implemented.
87 };
88 
89 #endif
vtkPropPicker::Initialize
void Initialize()
vtkPropPicker::vtkPropPicker
vtkPropPicker()
vtkPropPicker::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkPropPicker::Pick
int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)
vtkWorldPointPicker
find world x,y,z corresponding to display x,y,z
Definition: vtkWorldPointPicker.h:44
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPropPicker::New
static vtkPropPicker * New()
vtkPropPicker::~vtkPropPicker
~vtkPropPicker()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkRenderingCoreModule.h
vtkPropPicker::WorldPointPicker
vtkWorldPointPicker * WorldPointPicker
Definition: vtkPropPicker.h:83
vtkAbstractPropPicker.h
vtkPropPicker::PickProp
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer)
vtkPropPicker
pick an actor/prop using graphics hardware
Definition: vtkPropPicker.h:45
vtkAbstractPropPicker
abstract API for pickers that can pick an instance of vtkProp
Definition: vtkAbstractPropPicker.h:79
vtkPropPicker::Pick
int Pick(double selectionPt[3], vtkRenderer *renderer)
Definition: vtkPropPicker.h:69
vtkPropPicker::PickProp
int PickProp(double selectionX, double selectionY, vtkRenderer *renderer, vtkPropCollection *pickfrom)
vtkProp
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:50
vtkRenderer
abstract specification for renderers
Definition: vtkRenderer.h:64
VTKRENDERINGCORE_EXPORT
#define VTKRENDERINGCORE_EXPORT
Definition: vtkRenderingCoreModule.h:15
vtkAbstractPicker::Pick
virtual int Pick(double selectionX, double selectionY, double selectionZ, vtkRenderer *renderer)=0
vtkPropCollection
a list of Props
Definition: vtkPropCollection.h:38
vtkPropPicker::PickFromProps
vtkPropCollection * PickFromProps
Definition: vtkPropPicker.h:80