VTK
vtkVolumePicker.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkVolumePicker.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 =========================================================================*/
33 #ifndef vtkVolumePicker_h
34 #define vtkVolumePicker_h
35 
36 #include "vtkRenderingVolumeModule.h" // For export macro
37 #include "vtkCellPicker.h"
38 
39 class VTKRENDERINGVOLUME_EXPORT vtkVolumePicker : public vtkCellPicker
40 {
41 public:
42  static vtkVolumePicker *New();
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
54  vtkSetMacro(PickCroppingPlanes, int);
55  vtkBooleanMacro(PickCroppingPlanes, int);
56  vtkGetMacro(PickCroppingPlanes, int);
58 
60 
67  vtkGetMacro(CroppingPlaneId, int);
69 
70 protected:
72  ~vtkVolumePicker() VTK_OVERRIDE;
73 
74  void ResetPickInfo() VTK_OVERRIDE;
75 
76  double IntersectVolumeWithLine(const double p1[3],
77  const double p2[3],
78  double t1, double t2,
79  vtkProp3D *prop,
80  vtkAbstractVolumeMapper *mapper) VTK_OVERRIDE;
81 
82  static int ClipLineWithCroppingRegion(const double bounds[6],
83  const int extent[6], int flags,
84  const double x1[3], const double x2[3],
85  double t1, double t2,
86  int &extentPlaneId, int &numSegments,
87  double *t1List, double *t2List,
88  double *s1List, int *planeIdList);
89 
90  int PickCroppingPlanes;
91  int CroppingPlaneId;
92 
93 private:
94  vtkVolumePicker(const vtkVolumePicker&) VTK_DELETE_FUNCTION;
95  void operator=(const vtkVolumePicker&) VTK_DELETE_FUNCTION;
96 };
97 
98 #endif
99 
100 
Abstract class for a volume mapper.
ray-cast picker enhanced for volumes
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:43
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:33
static vtkCellPicker * New()
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:63
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.