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
36 #include "vtkPolyDataAlgorithm.h"
37 
38 class vtkCutter;
39 class vtkResliceCursor;
40 class vtkPlane;
41 class vtkBox;
42 class vtkClipPolyData;
44 
45 class VTKINTERACTIONWIDGETS_EXPORT vtkResliceCursorPolyDataAlgorithm : public vtkPolyDataAlgorithm
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
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 
77  virtual void SetResliceCursor( vtkResliceCursor * );
78  vtkGetObjectMacro( ResliceCursor, vtkResliceCursor );
80 
82 
86  vtkSetVector6Macro( SliceBounds, double );
87  vtkGetVector6Macro( SliceBounds, double );
89 
91 
96  virtual vtkPolyData * GetCenterlineAxis1();
97  virtual vtkPolyData * GetCenterlineAxis2();
98  virtual vtkPolyData * GetThickSlabAxis1();
99  virtual vtkPolyData * GetThickSlabAxis2();
101 
103 
106  virtual int GetAxis1();
107  virtual int GetAxis2();
108  virtual int GetPlaneAxis1();
109  virtual int GetPlaneAxis2();
111 
116  int GetOtherPlaneForAxis( int p );
117 
122  vtkMTimeType GetMTime() override;
123 
124 protected:
127 
130  vtkInformationVector*) override;
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
137  void BuildResliceSlabAxisTopology();
138 
145  double SliceBounds[6];
146  bool Extrude;
149  vtkPolyData *ThickAxes[2];
150 
151 private:
153  void operator=(const vtkResliceCursorPolyDataAlgorithm&) = delete;
154 
155 };
156 
157 #endif
Cut vtkDataSet with user-specified implicit function.
Definition: vtkCutter.h:69
Store vtkAlgorithm input/output information.
vtkTypeUInt32 vtkMTimeType
Definition: vtkType.h:302
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
generates a 2D reslice cursor polydata
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual vtkMTimeType GetMTime()
Return this object's modified time.
perform various plane computations
Definition: vtkPlane.h:37
clip polygonal data with user-specified implicit function or input scalar data
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices ...
Store zero or more vtkInformation instances.
void SetReslicePlaneNormalToXAxis()
Set the planes that correspond to the reslice axes.
implicit function for a bounding box
Definition: vtkBox.h:41
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Geometry for a reslice cursor.