VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Parallel/vtkCutMaterial.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkCutMaterial.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 =========================================================================*/
00027 #ifndef vtkCutMaterial_h
00028 #define vtkCutMaterial_h
00029 
00030 #include "vtkFiltersParallelModule.h" // For export macro
00031 #include "vtkPolyDataAlgorithm.h"
00032 
00033 class vtkPlane;
00034 
00035 class VTKFILTERSPARALLEL_EXPORT vtkCutMaterial : public vtkPolyDataAlgorithm
00036 {
00037 public:
00038   void PrintSelf(ostream& os, vtkIndent indent);
00039   vtkTypeMacro(vtkCutMaterial,vtkPolyDataAlgorithm);
00040   static vtkCutMaterial *New();
00041 
00043 
00044   vtkSetStringMacro(MaterialArrayName);
00045   vtkGetStringMacro(MaterialArrayName);
00047 
00049 
00050   vtkSetMacro(Material, int);
00051   vtkGetMacro(Material, int);
00053 
00055 
00056   vtkSetStringMacro(ArrayName);
00057   vtkGetStringMacro(ArrayName);
00059 
00061 
00062   vtkSetVector3Macro(UpVector, double);
00063   vtkGetVector3Macro(UpVector, double);
00065 
00067 
00069   vtkGetVector3Macro(MaximumPoint, double);
00070   vtkGetVector3Macro(CenterPoint, double);
00071   vtkGetVector3Macro(Normal, double);
00073 
00074 protected:
00075   vtkCutMaterial();
00076   ~vtkCutMaterial();
00077 
00078   virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); //generate output data
00079   virtual int FillInputPortInformation(int port, vtkInformation *info);
00080   void ComputeMaximumPoint(vtkDataSet *input);
00081   void ComputeNormal();
00082 
00083   char *MaterialArrayName;
00084   int Material;
00085   char *ArrayName;
00086   double UpVector[3];
00087   double MaximumPoint[3];
00088   double CenterPoint[3];
00089   double Normal[3];
00090 
00091   vtkPlane *PlaneFunction;
00092 
00093 private:
00094   vtkCutMaterial(const vtkCutMaterial&);  // Not implemented.
00095   void operator=(const vtkCutMaterial&);  // Not implemented.
00096 };
00097 
00098 #endif