Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkCutMaterial.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCutMaterial.h,v $
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 __vtkCutMaterial_h
00040 #define __vtkCutMaterial_h
00041 
00042 #include "vtkDataSetToPolyDataFilter.h"
00043 
00044 class vtkPlane;
00045 
00046 class VTK_PARALLEL_EXPORT vtkCutMaterial : public vtkDataSetToPolyDataFilter
00047 {
00048 public:
00049   void PrintSelf(ostream& os, vtkIndent indent);
00050   vtkTypeRevisionMacro(vtkCutMaterial,vtkDataSetToPolyDataFilter);
00051   static vtkCutMaterial *New();
00052 
00054 
00055   vtkSetStringMacro(MaterialArrayName);
00056   vtkGetStringMacro(MaterialArrayName);
00058   
00060 
00061   vtkSetMacro(Material, int);
00062   vtkGetMacro(Material, int);
00064   
00066 
00067   vtkSetStringMacro(ArrayName);
00068   vtkGetStringMacro(ArrayName);
00070 
00072 
00073   vtkSetVector3Macro(UpVector, double);
00074   vtkGetVector3Macro(UpVector, double);
00076   
00078 
00080   vtkGetVector3Macro(MaximumPoint, double);
00081   vtkGetVector3Macro(CenterPoint, double);
00082   vtkGetVector3Macro(Normal, double);
00084   
00085 protected:
00086   vtkCutMaterial();
00087   ~vtkCutMaterial();
00088 
00089   void Execute(); //generate output data
00090   void ComputeMaximumPoint(vtkDataSet *input);
00091   void ComputeNormal();
00092 
00093   char *MaterialArrayName;
00094   int Material;
00095   char *ArrayName;
00096   double UpVector[3];
00097   double MaximumPoint[3];
00098   double CenterPoint[3];
00099   double Normal[3];
00100   
00101   vtkPlane *PlaneFunction;
00102   
00103 private:
00104   vtkCutMaterial(const vtkCutMaterial&);  // Not implemented.
00105   void operator=(const vtkCutMaterial&);  // Not implemented.
00106 };
00107 
00108 #endif