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 =========================================================================*/
31 #ifndef vtkResliceCursorPolyDataAlgorithm_h
32 #define vtkResliceCursorPolyDataAlgorithm_h
33 
34 #include "vtkInteractionWidgetsModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class vtkCutter;
38 class vtkResliceCursor;
39 class vtkPlane;
40 class vtkBox;
41 class vtkClipPolyData;
43 
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent);
49 
51 
53 
54  vtkSetMacro(ReslicePlaneNormal,int);
55  vtkGetMacro(ReslicePlaneNormal,int);
57 
58 //BTX
59  enum {XAxis=0,YAxis,ZAxis};
60 //ETX
61 
63 
65  { this->SetReslicePlaneNormal(XAxis); }
67  { this->SetReslicePlaneNormal(YAxis); }
69  { this->SetReslicePlaneNormal(ZAxis); }
71 
73 
78 
80 
82  vtkSetVector6Macro( SliceBounds, double );
83  vtkGetVector6Macro( SliceBounds, double );
85 
87 
95 
97 
98  virtual int GetAxis1();
99  virtual int GetAxis2();
100  virtual int GetPlaneAxis1();
101  virtual int GetPlaneAxis2();
103 
107 
110  virtual unsigned long int GetMTime();
111 
112 protected:
115 
119 
120  void GetSlabPolyData( int axis, int planeAxis, vtkPolyData *pd );
121 
122  virtual void CutAndClip( vtkPolyData *in, vtkPolyData *out);
123 
124  // Build the reslice slab axis
126 
133  double SliceBounds[6];
134  bool Extrude;
137  vtkPolyData *ThickAxes[2];
138 
139 private:
141  void operator=(const vtkResliceCursorPolyDataAlgorithm&); // Not implemented.
142 
143 };
144 
145 #endif
vtkGetVector6Macro
#define vtkGetVector6Macro(name, type)
Definition: vtkSetGet.h:380
vtkPlane
perform various plane computations
Definition: vtkPlane.h:37
vtkResliceCursorPolyDataAlgorithm::SetReslicePlaneNormalToYAxis
void SetReslicePlaneNormalToYAxis()
Definition: vtkResliceCursorPolyDataAlgorithm.h:66
vtkGetObjectMacro
#define vtkGetObjectMacro(name, type)
Definition: vtkSetGet.h:232
vtkLinearExtrusionFilter
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices
Definition: vtkLinearExtrusionFilter.h:69
vtkResliceCursorPolyDataAlgorithm::SlicePlane
vtkPlane * SlicePlane
Definition: vtkResliceCursorPolyDataAlgorithm.h:130
vtkResliceCursorPolyDataAlgorithm::GetMTime
virtual unsigned long int GetMTime()
vtkCutter
Cut vtkDataSet with user-specified implicit function.
Definition: vtkCutter.h:69
vtkResliceCursorPolyDataAlgorithm::vtkResliceCursorPolyDataAlgorithm
vtkResliceCursorPolyDataAlgorithm()
vtkResliceCursorPolyDataAlgorithm::GetAxis2
virtual int GetAxis2()
vtkResliceCursorPolyDataAlgorithm::ReslicePlaneNormal
int ReslicePlaneNormal
Definition: vtkResliceCursorPolyDataAlgorithm.h:127
vtkResliceCursorPolyDataAlgorithm::ExtrusionFilter2
vtkLinearExtrusionFilter * ExtrusionFilter2
Definition: vtkResliceCursorPolyDataAlgorithm.h:136
vtkResliceCursorPolyDataAlgorithm::GetOtherPlaneForAxis
int GetOtherPlaneForAxis(int p)
vtkResliceCursorPolyDataAlgorithm::GetSlabPolyData
void GetSlabPolyData(int axis, int planeAxis, vtkPolyData *pd)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkResliceCursorPolyDataAlgorithm::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkResliceCursor
Geometry for a reslice cursor.
Definition: vtkResliceCursor.h:46
vtkResliceCursorPolyDataAlgorithm::Cutter
vtkCutter * Cutter
Definition: vtkResliceCursorPolyDataAlgorithm.h:129
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkInteractionWidgetsModule.h
vtkResliceCursorPolyDataAlgorithm::GetCenterlineAxis2
virtual vtkPolyData * GetCenterlineAxis2()
vtkResliceCursorPolyDataAlgorithm::Extrude
bool Extrude
Definition: vtkResliceCursorPolyDataAlgorithm.h:134
vtkgl::in
GLuint in
Definition: vtkgl.h:16905
vtkResliceCursorPolyDataAlgorithm::SetResliceCursor
virtual void SetResliceCursor(vtkResliceCursor *)
vtkResliceCursorPolyDataAlgorithm::GetThickSlabAxis1
virtual vtkPolyData * GetThickSlabAxis1()
vtkPolyDataAlgorithm.h
vtkResliceCursorPolyDataAlgorithm::ExtrusionFilter1
vtkLinearExtrusionFilter * ExtrusionFilter1
Definition: vtkResliceCursorPolyDataAlgorithm.h:135
vtkResliceCursorPolyDataAlgorithm::GetThickSlabAxis2
virtual vtkPolyData * GetThickSlabAxis2()
vtkResliceCursorPolyDataAlgorithm::GetCenterlineAxis1
virtual vtkPolyData * GetCenterlineAxis1()
vtkResliceCursorPolyDataAlgorithm
generates a 2D reslice cursor polydata
Definition: vtkResliceCursorPolyDataAlgorithm.h:45
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkResliceCursorPolyDataAlgorithm::ClipWithBox
vtkClipPolyData * ClipWithBox
Definition: vtkResliceCursorPolyDataAlgorithm.h:132
vtkResliceCursorPolyDataAlgorithm::CutAndClip
virtual void CutAndClip(vtkPolyData *in, vtkPolyData *out)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkResliceCursorPolyDataAlgorithm::Box
vtkBox * Box
Definition: vtkResliceCursorPolyDataAlgorithm.h:131
vtkClipPolyData
clip polygonal data with user-specified implicit function or input scalar data
Definition: vtkClipPolyData.h:74
vtkBox
implicit function for a bounding box
Definition: vtkBox.h:41
VTKINTERACTIONWIDGETS_EXPORT
#define VTKINTERACTIONWIDGETS_EXPORT
Definition: vtkInteractionWidgetsModule.h:15
vtkSetVector6Macro
#define vtkSetVector6Macro(name, type)
Definition: vtkSetGet.h:360
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkgl::p
GLfloat GLfloat p
Definition: vtkgl.h:15717
vtkResliceCursorPolyDataAlgorithm::GetAxis1
virtual int GetAxis1()
vtkResliceCursorPolyDataAlgorithm::ResliceCursor
vtkResliceCursor * ResliceCursor
Definition: vtkResliceCursorPolyDataAlgorithm.h:128
vtkResliceCursorPolyDataAlgorithm::New
static vtkResliceCursorPolyDataAlgorithm * New()
vtkResliceCursorPolyDataAlgorithm::SetReslicePlaneNormalToZAxis
void SetReslicePlaneNormalToZAxis()
Definition: vtkResliceCursorPolyDataAlgorithm.h:68
vtkResliceCursorPolyDataAlgorithm::~vtkResliceCursorPolyDataAlgorithm
~vtkResliceCursorPolyDataAlgorithm()
vtkResliceCursorPolyDataAlgorithm::GetPlaneAxis1
virtual int GetPlaneAxis1()
vtkResliceCursorPolyDataAlgorithm::GetPlaneAxis2
virtual int GetPlaneAxis2()
vtkResliceCursorPolyDataAlgorithm::SetReslicePlaneNormalToXAxis
void SetReslicePlaneNormalToXAxis()
Definition: vtkResliceCursorPolyDataAlgorithm.h:64
vtkResliceCursorPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkResliceCursorPolyDataAlgorithm::BuildResliceSlabAxisTopology
void BuildResliceSlabAxisTopology()
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44