VTK
vtkAbstractPropPicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAbstractPropPicker.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 =========================================================================*/
64 #ifndef vtkAbstractPropPicker_h
65 #define vtkAbstractPropPicker_h
66 
67 #include "vtkRenderingCoreModule.h" // For export macro
68 #include "vtkAbstractPicker.h"
69 
70 class vtkProp;
71 class vtkPropAssembly;
72 class vtkAssembly;
73 class vtkActor;
74 class vtkVolume;
75 class vtkProp3D;
76 class vtkAssemblyPath;
77 class vtkActor2D;
78 
79 class VTKRENDERINGCORE_EXPORT vtkAbstractPropPicker : public vtkAbstractPicker
80 {
81 public:
83  void PrintSelf(ostream& os, vtkIndent indent) override;
84 
86 
94  virtual void SetPath(vtkAssemblyPath*);
95  vtkGetObjectMacro(Path,vtkAssemblyPath);
97 
98  // The following are convenience methods to maintain API with older
99  // versions of VTK, and to allow query for the return type of a pick. Note:
100  // the functionality of these methods can also be obtained by using the
101  // returned vtkAssemblyPath and using the IsA() to determine type.
102 
107  virtual vtkProp* GetViewProp();
108 
112  virtual vtkProp3D *GetProp3D();
113 
117  virtual vtkActor *GetActor();
118 
123  virtual vtkActor2D *GetActor2D();
124 
128  virtual vtkVolume *GetVolume();
129 
136  virtual vtkAssembly *GetAssembly();
137 
145  virtual vtkPropAssembly *GetPropAssembly();
146 
147 protected:
149  ~vtkAbstractPropPicker() override;
150 
151  void Initialize() override;
152 
153  vtkAssemblyPath *Path; //this is what is picked, and includes the prop
154 private:
156  void operator=(const vtkAbstractPropPicker&) = delete;
157 };
158 
159 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
represents a volume (data & properties) in a rendered scene
Definition: vtkVolume.h:50
represents an object (geometry & properties) in a rendered scene
Definition: vtkActor.h:51
a actor that draws 2D data
Definition: vtkActor2D.h:45
create hierarchies of props
virtual void Initialize()
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:46
a list of nodes that form an assembly path
a simple class to control print indentation
Definition: vtkIndent.h:39
create hierarchies of vtkProp3Ds (transformable props)
Definition: vtkAssembly.h:75
abstract API for pickers that can pick an instance of vtkProp
define API for picking subclasses
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.