VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 class VTKFILTERSSOURCES_EXPORT vtkCubeSource : public vtkPolyDataAlgorithm
36 {
37 public:
38  static vtkCubeSource *New();
39  vtkTypeMacro(vtkCubeSource,vtkPolyDataAlgorithm);
40  void PrintSelf(ostream& os, vtkIndent indent);
41 
43 
44  vtkSetClampMacro(XLength,double,0.0,VTK_DOUBLE_MAX);
45  vtkGetMacro(XLength,double);
47 
49 
50  vtkSetClampMacro(YLength,double,0.0,VTK_DOUBLE_MAX);
51  vtkGetMacro(YLength,double);
53 
55 
56  vtkSetClampMacro(ZLength,double,0.0,VTK_DOUBLE_MAX);
57  vtkGetMacro(ZLength,double);
59 
61 
62  vtkSetVector3Macro(Center,double);
63  vtkGetVectorMacro(Center,double,3);
65 
67 
69  void SetBounds(double xMin, double xMax,
70  double yMin, double yMax,
71  double zMin, double zMax);
72  void SetBounds(double bounds[6]);
74 
75 protected:
76  vtkCubeSource(double xL=1.0, double yL=1.0, double zL=1.0);
78 
79  int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
80  double XLength;
81  double YLength;
82  double ZLength;
83  double Center[3];
84 private:
85  vtkCubeSource(const vtkCubeSource&); // Not implemented.
86  void operator=(const vtkCubeSource&); // Not implemented.
87 };
88 
89 #endif
create a polygonal representation of a cube
Definition: vtkCubeSource.h:35