VTK
vtkResliceCursorPolyDataAlgorithm.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkResliceCursorPolyDataAlgorithm.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=========================================================================*/
32#ifndef vtkResliceCursorPolyDataAlgorithm_h
33#define vtkResliceCursorPolyDataAlgorithm_h
34
35#include "vtkInteractionWidgetsModule.h" // For export macro
37
38class vtkCutter;
40class vtkPlane;
41class vtkBox;
42class vtkClipPolyData;
44
45class VTKINTERACTIONWIDGETS_EXPORT vtkResliceCursorPolyDataAlgorithm : public vtkPolyDataAlgorithm
46{
47public:
49 void PrintSelf(ostream& os, vtkIndent indent);
50
52
54
57 vtkSetMacro(ReslicePlaneNormal,int);
58 vtkGetMacro(ReslicePlaneNormal,int);
60
61 enum {XAxis=0,YAxis,ZAxis};
62
67 { this->SetReslicePlaneNormal(XAxis); }
69 { this->SetReslicePlaneNormal(YAxis); }
71 { this->SetReslicePlaneNormal(ZAxis); }
72
74
78 vtkGetObjectMacro( ResliceCursor, vtkResliceCursor );
80
82
86 vtkSetVector6Macro( SliceBounds, double );
87 vtkGetVector6Macro( SliceBounds, double );
89
91
101
103
106 virtual int GetAxis1();
107 virtual int GetAxis2();
108 virtual int GetPlaneAxis1();
109 virtual int GetPlaneAxis2();
111
117
123
124protected:
127
131
132 void GetSlabPolyData( int axis, int planeAxis, vtkPolyData *pd );
133
134 virtual void CutAndClip( vtkPolyData *in, vtkPolyData *out);
135
136 // Build the reslice slab axis
138
145 double SliceBounds[6];
149 vtkPolyData *ThickAxes[2];
150
151private:
153 void operator=(const vtkResliceCursorPolyDataAlgorithm&) VTK_DELETE_FUNCTION;
154
155};
156
157#endif
implicit function for a bounding box
Definition: vtkBox.h:42
clip polygonal data with user-specified implicit function or input scalar data
Cut vtkDataSet with user-specified implicit function.
Definition: vtkCutter.h:70
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices
perform various plane computations
Definition: vtkPlane.h:38
Superclass for algorithms that produce only polydata as output.
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:86
generates a 2D reslice cursor polydata
virtual vtkPolyData * GetCenterlineAxis1()
Get either one of the axes that this object produces.
virtual vtkPolyData * GetThickSlabAxis1()
static vtkResliceCursorPolyDataAlgorithm * New()
int GetOtherPlaneForAxis(int p)
Convenience method that, given one plane, returns the other plane that this class represents.
virtual vtkMTimeType GetMTime()
Get the MTime.
virtual vtkPolyData * GetCenterlineAxis2()
void GetSlabPolyData(int axis, int planeAxis, vtkPolyData *pd)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void CutAndClip(vtkPolyData *in, vtkPolyData *out)
virtual vtkPolyData * GetThickSlabAxis2()
virtual int GetAxis1()
Get the index of the axes and the planes that they represent.
virtual void SetResliceCursor(vtkResliceCursor *)
Set the Reslice cursor from which to generate the polydata representation.
void SetReslicePlaneNormalToXAxis()
Set the planes that correspond to the reslice axes.
Geometry for a reslice cursor.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkTypeUInt64 vtkMTimeType
Definition: vtkType.h:248