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
00029
#ifndef __vtkCubeSource_h
00030
#define __vtkCubeSource_h
00031
00032
#include "vtkPolyDataSource.h"
00033
00034 class VTK_GRAPHICS_EXPORT vtkCubeSource :
public vtkPolyDataSource
00035 {
00036
public:
00037
static vtkCubeSource *
New();
00038 vtkTypeRevisionMacro(vtkCubeSource,
vtkPolyDataSource);
00039
void PrintSelf(ostream& os,
vtkIndent indent);
00040
00042
00043 vtkSetClampMacro(XLength,
double,0.0,VTK_DOUBLE_MAX);
00044 vtkGetMacro(XLength,
double);
00046
00048
00049 vtkSetClampMacro(YLength,
double,0.0,VTK_DOUBLE_MAX);
00050 vtkGetMacro(YLength,
double);
00052
00054
00055 vtkSetClampMacro(ZLength,
double,0.0,VTK_DOUBLE_MAX);
00056 vtkGetMacro(ZLength,
double);
00058
00060
00061 vtkSetVector3Macro(Center,
double);
00062 vtkGetVectorMacro(Center,
double,3);
00064
00066
00068
void SetBounds(
double xMin,
double xMax,
00069
double yMin,
double yMax,
00070
double zMin,
double zMax);
00071
void SetBounds(
double bounds[6]);
00073
00074
00075
protected:
00076 vtkCubeSource(
double xL=1.0,
double yL=1.0,
double zL=1.0);
00077 ~vtkCubeSource() {};
00078
00079
void Execute();
00080 double XLength;
00081 double YLength;
00082 double ZLength;
00083 double Center[3];
00084
private:
00085 vtkCubeSource(
const vtkCubeSource&);
00086
void operator=(
const vtkCubeSource&);
00087 };
00088
00089
#endif
00090
00091