dox/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
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&);
00090
void operator=(
const vtkCubeSource&);
00091 };
00092
00093
#endif
00094
00095