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

dox/Graphics/vtkCubeSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkCubeSource.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00033 #ifndef __vtkCubeSource_h 00034 #define __vtkCubeSource_h 00035 00036 #include "vtkPolyDataSource.h" 00037 00038 class VTK_GRAPHICS_EXPORT vtkCubeSource : public vtkPolyDataSource 00039 { 00040 public: 00041 static vtkCubeSource *New(); 00042 vtkTypeRevisionMacro(vtkCubeSource,vtkPolyDataSource); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 vtkSetClampMacro(XLength,float,0.0,VTK_LARGE_FLOAT); 00048 vtkGetMacro(XLength,float); 00050 00052 00053 vtkSetClampMacro(YLength,float,0.0,VTK_LARGE_FLOAT); 00054 vtkGetMacro(YLength,float); 00056 00058 00059 vtkSetClampMacro(ZLength,float,0.0,VTK_LARGE_FLOAT); 00060 vtkGetMacro(ZLength,float); 00062 00064 00065 vtkSetVector3Macro(Center,float); 00066 vtkGetVectorMacro(Center,float,3); 00068 00070 00072 void SetBounds(float xMin, float xMax, 00073 float yMin, float yMax, 00074 float zMin, float zMax); 00075 void SetBounds(float bounds[6]); 00077 00078 00079 protected: 00080 vtkCubeSource(float xL=1.0, float yL=1.0, float zL=1.0); 00081 ~vtkCubeSource() {}; 00082 00083 void Execute(); 00084 float XLength; 00085 float YLength; 00086 float ZLength; 00087 float Center[3]; 00088 private: 00089 vtkCubeSource(const vtkCubeSource&); // Not implemented. 00090 void operator=(const vtkCubeSource&); // Not implemented. 00091 }; 00092 00093 #endif 00094 00095