VTK
dox/Graphics/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 "vtkPolyDataAlgorithm.h"
00043 
00044 class VTK_GRAPHICS_EXPORT vtkDistancePolyDataFilter : public vtkPolyDataAlgorithm {
00045 public:
00046   static vtkDistancePolyDataFilter *New();
00047   vtkTypeMacro(vtkDistancePolyDataFilter, vtkPolyDataAlgorithm);
00048   void PrintSelf(ostream& os, vtkIndent indent);
00049 
00051 
00053   vtkSetMacro(SignedDistance,int);
00054   vtkGetMacro(SignedDistance,int);
00055   vtkBooleanMacro(SignedDistance,int);
00057 
00059 
00061   vtkSetMacro(NegateDistance,int);
00062   vtkGetMacro(NegateDistance,int);
00063   vtkBooleanMacro(NegateDistance,int);
00065 
00067 
00069   vtkSetMacro(ComputeSecondDistance,int);
00070   vtkGetMacro(ComputeSecondDistance,int);
00071   vtkBooleanMacro(ComputeSecondDistance,int);
00073 
00076   vtkPolyData* GetSecondDistanceOutput();
00077 
00078 protected:
00079   vtkDistancePolyDataFilter();
00080   ~vtkDistancePolyDataFilter();
00081 
00082   int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
00083   int FillInputPortInformation(int, vtkInformation*);
00084 
00085   void GetPolyDataDistance(vtkPolyData*, vtkPolyData*);
00086 
00087 private:
00088   vtkDistancePolyDataFilter(const vtkDistancePolyDataFilter&); // Not implemented
00089   void operator=(const vtkDistancePolyDataFilter&); // Not implemented
00090 
00091   int SignedDistance;
00092   int NegateDistance;
00093   int ComputeSecondDistance;
00094 };
00095 
00096 #endif