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 "vtkPolyDataAlgorithm.h" 00039 00040 class VTK_GRAPHICS_EXPORT vtkIntersectionPolyDataFilter : public vtkPolyDataAlgorithm 00041 { 00042 public: 00043 static vtkIntersectionPolyDataFilter *New(); 00044 vtkTypeMacro(vtkIntersectionPolyDataFilter, vtkPolyDataAlgorithm); 00045 virtual void PrintSelf(ostream &os, vtkIndent indent); 00046 00048 00050 vtkGetMacro(SplitFirstOutput, int); 00051 vtkSetMacro(SplitFirstOutput, int); 00052 vtkBooleanMacro(SplitFirstOutput, int); 00054 00056 00058 vtkGetMacro(SplitSecondOutput, int); 00059 vtkSetMacro(SplitSecondOutput, int); 00060 vtkBooleanMacro(SplitSecondOutput, int); 00062 00064 00069 static int TriangleTriangleIntersection(double p1[3], double q1[3], double r1[3], 00070 double p2[3], double q2[3], double r2[3], 00071 int &coplanar, double pt1[3], double pt2[3]); 00073 00074 protected: 00075 vtkIntersectionPolyDataFilter(); 00076 ~vtkIntersectionPolyDataFilter(); 00077 00078 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*); 00079 int FillInputPortInformation(int, vtkInformation*); 00080 00081 private: 00082 vtkIntersectionPolyDataFilter(const vtkIntersectionPolyDataFilter&); // Not implemented 00083 void operator=(const vtkIntersectionPolyDataFilter&); // Not implemented 00084 00085 int SplitFirstOutput; 00086 int SplitSecondOutput; 00087 00088 class Impl; 00089 }; 00090 00091 00092 #endif // __vtkIntersectionPolyDataFilter_h