vtkCutMaterial.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
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();
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&);
00105 void operator=(const vtkCutMaterial&);
00106 };
00107
00108 #endif