Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members File Members Related Pages
Graphics/vtkCubeSource.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00045 #ifndef __vtkCubeSource_h
00046 #define __vtkCubeSource_h
00047
00048 #include "vtkPolyDataSource.h"
00049
00050 class VTK_GRAPHICS_EXPORT vtkCubeSource : public vtkPolyDataSource
00051 {
00052 public:
00053 static vtkCubeSource *New();
00054 vtkTypeRevisionMacro(vtkCubeSource,vtkPolyDataSource);
00055 void PrintSelf(ostream& os, vtkIndent indent);
00056
00058
00059 vtkSetClampMacro(XLength,float,0.0,VTK_LARGE_FLOAT);
00060 vtkGetMacro(XLength,float);
00062
00064
00065 vtkSetClampMacro(YLength,float,0.0,VTK_LARGE_FLOAT);
00066 vtkGetMacro(YLength,float);
00068
00070
00071 vtkSetClampMacro(ZLength,float,0.0,VTK_LARGE_FLOAT);
00072 vtkGetMacro(ZLength,float);
00074
00076
00077 vtkSetVector3Macro(Center,float);
00078 vtkGetVectorMacro(Center,float,3);
00080
00082
00084 void SetBounds(float xMin, float xMax,
00085 float yMin, float yMax,
00086 float zMin, float zMax);
00087 void SetBounds(float bounds[6]);
00089
00090
00091 protected:
00092 vtkCubeSource(float xL=1.0, float yL=1.0, float zL=1.0);
00093 ~vtkCubeSource() {};
00094
00095 void Execute();
00096 float XLength;
00097 float YLength;
00098 float ZLength;
00099 float Center[3];
00100 private:
00101 vtkCubeSource(const vtkCubeSource&);
00102 void operator=(const vtkCubeSource&);
00103 };
00104
00105 #endif
00106
00107