VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkIntersectionPolyDataFilter.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00035 #ifndef __vtkIntersectionPolyDataFilter_h 00036 #define __vtkIntersectionPolyDataFilter_h 00037 00038 #include "vtkFiltersGeneralModule.h" // For export macro 00039 #include "vtkPolyDataAlgorithm.h" 00040 00041 class VTKFILTERSGENERAL_EXPORT vtkIntersectionPolyDataFilter : public vtkPolyDataAlgorithm 00042 { 00043 public: 00044 static vtkIntersectionPolyDataFilter *New(); 00045 vtkTypeMacro(vtkIntersectionPolyDataFilter, vtkPolyDataAlgorithm); 00046 virtual void PrintSelf(ostream &os, vtkIndent indent); 00047 00049 00051 vtkGetMacro(SplitFirstOutput, int); 00052 vtkSetMacro(SplitFirstOutput, int); 00053 vtkBooleanMacro(SplitFirstOutput, int); 00055 00057 00059 vtkGetMacro(SplitSecondOutput, int); 00060 vtkSetMacro(SplitSecondOutput, int); 00061 vtkBooleanMacro(SplitSecondOutput, int); 00063 00065 00070 static int TriangleTriangleIntersection(double p1[3], double q1[3], double r1[3], 00071 double p2[3], double q2[3], double r2[3], 00072 int &coplanar, double pt1[3], double pt2[3]); 00074 00075 protected: 00076 vtkIntersectionPolyDataFilter(); 00077 ~vtkIntersectionPolyDataFilter(); 00078 00079 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*); 00080 int FillInputPortInformation(int, vtkInformation*); 00081 00082 private: 00083 vtkIntersectionPolyDataFilter(const vtkIntersectionPolyDataFilter&); // Not implemented 00084 void operator=(const vtkIntersectionPolyDataFilter&); // Not implemented 00085 00086 int SplitFirstOutput; 00087 int SplitSecondOutput; 00088 00089 class Impl; 00090 }; 00091 00092 00093 #endif // __vtkIntersectionPolyDataFilter_h