VTK
dox/Filters/Parallel/vtkPOutlineCornerFilter.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkPOutlineCornerFilter.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 =========================================================================*/
00024 #ifndef __vtkPOutlineCornerFilter_h
00025 #define __vtkPOutlineCornerFilter_h
00026 
00027 #include "vtkFiltersParallelModule.h" // For export macro
00028 #include "vtkPolyDataAlgorithm.h"
00029 class vtkOutlineCornerSource;
00030 class vtkMultiProcessController;
00031 class vtkAppendPolyData;
00032 class vtkPOutlineFilterInternals;
00033 
00034 class VTKFILTERSPARALLEL_EXPORT vtkPOutlineCornerFilter : public vtkPolyDataAlgorithm
00035 {
00036 public:
00037   vtkTypeMacro(vtkPOutlineCornerFilter,vtkPolyDataAlgorithm);
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039 
00041   static vtkPOutlineCornerFilter *New();
00042 
00044 
00049   virtual void SetCornerFactor(double cornerFactor);
00050   virtual double GetCornerFactorMinValue()  { return 0.001;}
00051   virtual double GetCornerFactorMaxValue() { return 0.5; }
00053 
00054   vtkGetMacro(CornerFactor, double);
00055 
00057 
00058   virtual void SetController(vtkMultiProcessController*);
00059   vtkGetObjectMacro(Controller, vtkMultiProcessController);
00061 
00062 protected:
00063   vtkPOutlineCornerFilter();
00064   ~vtkPOutlineCornerFilter();
00065 
00066   vtkMultiProcessController* Controller;
00067   vtkOutlineCornerSource *OutlineCornerSource;
00068   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00069   virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00070   virtual int FillInputPortInformation(int port, vtkInformation *info);
00071 
00072   double CornerFactor;
00073 private:
00074   vtkPOutlineCornerFilter(const vtkPOutlineCornerFilter&);  // Not implemented.
00075   void operator=(const vtkPOutlineCornerFilter&);  // Not implemented.
00076 
00077   vtkPOutlineFilterInternals* Internals;
00078 };
00079 
00080 #endif