VTK  9.1.0
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 "vtkCellPicker.h"
37#include "vtkRenderingVolumeModule.h" // For export macro
38
39class VTKRENDERINGVOLUME_EXPORT vtkVolumePicker : public vtkCellPicker
40{
41public:
44 void PrintSelf(ostream& os, vtkIndent indent) override;
45
47
54 vtkSetMacro(PickCroppingPlanes, vtkTypeBool);
55 vtkBooleanMacro(PickCroppingPlanes, vtkTypeBool);
56 vtkGetMacro(PickCroppingPlanes, vtkTypeBool);
58
60
67 vtkGetMacro(CroppingPlaneId, int);
69
70protected:
72 ~vtkVolumePicker() override;
73
74 void ResetPickInfo() override;
75
76 double IntersectVolumeWithLine(const double p1[3], const double p2[3], double t1, double t2,
77 vtkProp3D* prop, vtkAbstractVolumeMapper* mapper) override;
78
79 static int ClipLineWithCroppingRegion(const double bounds[6], const int extent[6], int flags,
80 const double x1[3], const double x2[3], double t1, double t2, int& extentPlaneId,
81 int& numSegments, double* t1List, double* t2List, double* s1List, int* planeIdList);
82
85
86private:
87 vtkVolumePicker(const vtkVolumePicker&) = delete;
88 void operator=(const vtkVolumePicker&) = delete;
89};
90
91#endif
Abstract class for a volume mapper.
ray-cast cell picker for all kinds of Prop3Ds
Definition: vtkCellPicker.h:96
a simple class to control print indentation
Definition: vtkIndent.h:113
represents an 3D object for placement in a rendered scene
Definition: vtkProp3D.h:93
ray-cast picker enhanced for volumes
static vtkVolumePicker * New()
void ResetPickInfo() override
double IntersectVolumeWithLine(const double p1[3], const double p2[3], double t1, double t2, vtkProp3D *prop, vtkAbstractVolumeMapper *mapper) override
~vtkVolumePicker() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static int ClipLineWithCroppingRegion(const double bounds[6], const int extent[6], int flags, const double x1[3], const double x2[3], double t1, double t2, int &extentPlaneId, int &numSegments, double *t1List, double *t2List, double *s1List, int *planeIdList)
vtkTypeBool PickCroppingPlanes
@ extent
Definition: vtkX3D.h:351
int vtkTypeBool
Definition: vtkABI.h:69