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 "vtkFiltersSourcesModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
36 {
37 public:
38  static vtkCubeSource *New();
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(const double bounds[6]);
74 
76 
80  vtkSetMacro(OutputPointsPrecision,int);
81  vtkGetMacro(OutputPointsPrecision,int);
83 
84 protected:
85  vtkCubeSource(double xL=1.0, double yL=1.0, double zL=1.0);
87 
89  double XLength;
90  double YLength;
91  double ZLength;
92  double Center[3];
94 private:
95  vtkCubeSource(const vtkCubeSource&); // Not implemented.
96  void operator=(const vtkCubeSource&); // Not implemented.
97 };
98 
99 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
create a polygonal representation of a cube
Definition: vtkCubeSource.h:35
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
int OutputPointsPrecision
Definition: vtkCubeSource.h:93
#define VTKFILTERSSOURCES_EXPORT
Store zero or more vtkInformation instances.