vtkCubeSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00041 #ifndef __vtkCubeSource_h
00042 #define __vtkCubeSource_h
00043
00044 #include "vtkPolyDataSource.h"
00045
00046 class VTK_GRAPHICS_EXPORT vtkCubeSource : public vtkPolyDataSource
00047 {
00048 public:
00049 static vtkCubeSource *New();
00050 vtkTypeRevisionMacro(vtkCubeSource,vtkPolyDataSource);
00051 void PrintSelf(ostream& os, vtkIndent indent);
00052
00054
00055 vtkSetClampMacro(XLength,double,0.0,VTK_DOUBLE_MAX);
00056 vtkGetMacro(XLength,double);
00058
00060
00061 vtkSetClampMacro(YLength,double,0.0,VTK_DOUBLE_MAX);
00062 vtkGetMacro(YLength,double);
00064
00066
00067 vtkSetClampMacro(ZLength,double,0.0,VTK_DOUBLE_MAX);
00068 vtkGetMacro(ZLength,double);
00070
00072
00073 vtkSetVector3Macro(Center,double);
00074 vtkGetVectorMacro(Center,double,3);
00076
00078
00080 void SetBounds(double xMin, double xMax,
00081 double yMin, double yMax,
00082 double zMin, double zMax);
00083 void SetBounds(double bounds[6]);
00085
00086
00087 protected:
00088 vtkCubeSource(double xL=1.0, double yL=1.0, double zL=1.0);
00089 ~vtkCubeSource() {};
00090
00091 void Execute();
00092 double XLength;
00093 double YLength;
00094 double ZLength;
00095 double Center[3];
00096 private:
00097 vtkCubeSource(const vtkCubeSource&);
00098 void operator=(const vtkCubeSource&);
00099 };
00100
00101 #endif
00102
00103