VTK
vtkCubeSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCubeSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
29 #ifndef __vtkCubeSource_h
30 #define __vtkCubeSource_h
31 
32 #include "vtkPolyDataAlgorithm.h"
33 
35 {
36 public:
37  static vtkCubeSource *New();
39  void PrintSelf(ostream& os, vtkIndent indent);
40 
42 
43  vtkSetClampMacro(XLength,double,0.0,VTK_DOUBLE_MAX);
44  vtkGetMacro(XLength,double);
46 
48 
49  vtkSetClampMacro(YLength,double,0.0,VTK_DOUBLE_MAX);
50  vtkGetMacro(YLength,double);
52 
54 
55  vtkSetClampMacro(ZLength,double,0.0,VTK_DOUBLE_MAX);
56  vtkGetMacro(ZLength,double);
58 
60 
61  vtkSetVector3Macro(Center,double);
62  vtkGetVectorMacro(Center,double,3);
64 
66 
68  void SetBounds(double xMin, double xMax,
69  double yMin, double yMax,
70  double zMin, double zMax);
71  void SetBounds(double bounds[6]);
73 
74 protected:
75  vtkCubeSource(double xL=1.0, double yL=1.0, double zL=1.0);
77 
79  double XLength;
80  double YLength;
81  double ZLength;
82  double Center[3];
83 private:
84  vtkCubeSource(const vtkCubeSource&); // Not implemented.
85  void operator=(const vtkCubeSource&); // Not implemented.
86 };
87 
88 #endif