VTK
dox/Filters/General/vtkDistancePolyDataFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkDistancePolyDataFilter.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 =========================================================================*/
00039 #ifndef __vtkDistancePolyDataFilter_h
00040 #define __vtkDistancePolyDataFilter_h
00041 
00042 #include "vtkFiltersGeneralModule.h" // For export macro
00043 #include "vtkPolyDataAlgorithm.h"
00044 
00045 class VTKFILTERSGENERAL_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm {
00046 public:
00047   static vtkDistancePolyDataFilter *New();
00048   vtkTypeMacro(vtkDistancePolyDataFilter, vtkPolyDataAlgorithm);
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050 
00052 
00054   vtkSetMacro(SignedDistance,int);
00055   vtkGetMacro(SignedDistance,int);
00056   vtkBooleanMacro(SignedDistance,int);
00058 
00060 
00062   vtkSetMacro(NegateDistance,int);
00063   vtkGetMacro(NegateDistance,int);
00064   vtkBooleanMacro(NegateDistance,int);
00066 
00068 
00070   vtkSetMacro(ComputeSecondDistance,int);
00071   vtkGetMacro(ComputeSecondDistance,int);
00072   vtkBooleanMacro(ComputeSecondDistance,int);
00074 
00077   vtkPolyData* GetSecondDistanceOutput();
00078 
00079 protected:
00080   vtkDistancePolyDataFilter();
00081   ~vtkDistancePolyDataFilter();
00082 
00083   int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
00084   int FillInputPortInformation(int, vtkInformation*);
00085 
00086   void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
00087 
00088 private:
00089   vtkDistancePolyDataFilter(const vtkDistancePolyDataFilter&); // Not implemented
00090   void operator=(const vtkDistancePolyDataFilter&); // Not implemented
00091 
00092   int SignedDistance;
00093   int NegateDistance;
00094   int ComputeSecondDistance;
00095 };
00096 
00097 #endif