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 =========================================================================*/
38 #ifndef vtkVolumePicker_h
39 #define vtkVolumePicker_h
40 
41 #include "vtkRenderingVolumeModule.h" // For export macro
42 #include "vtkCellPicker.h"
43 
45 {
46 public:
47  static vtkVolumePicker *New();
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
57  vtkSetMacro(PickCroppingPlanes, int);
58  vtkBooleanMacro(PickCroppingPlanes, int);
59  vtkGetMacro(PickCroppingPlanes, int);
61 
63 
68  vtkGetMacro(CroppingPlaneId, int);
70 
71 protected:
73  ~vtkVolumePicker();
74 
75  virtual void ResetPickInfo();
76 
77  virtual double IntersectVolumeWithLine(const double p1[3],
78  const double p2[3],
79  double t1, double t2,
80  vtkProp3D *prop,
81  vtkAbstractVolumeMapper *mapper);
82 
83  static int ClipLineWithCroppingRegion(const double bounds[6],
84  const int extent[6], int flags,
85  const double x1[3], const double x2[3],
86  double t1, double t2,
87  int &extentPlaneId, int &numSegments,
88  double *t1List, double *t2List,
89  double *s1List, int *planeIdList);
90 
93 
94 private:
95  vtkVolumePicker(const vtkVolumePicker&); // Not implemented.
96  void operator=(const vtkVolumePicker&); // Not implemented.
97 };
98 
99 #endif
100 
101 
void PrintSelf(ostream &os, vtkIndent indent)
virtual void ResetPickInfo()
#define VTKRENDERINGVOLUME_EXPORT
virtual double IntersectVolumeWithLine(const double p1[3], const double p2[3], double t1, double t2, vtkProp3D *prop, vtkAbstractVolumeMapper *mapper)
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:42
a simple class to control print indentation
Definition: vtkIndent.h:38
static vtkCellPicker * New()
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:68