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
vtkCubeSource::SetBounds
void SetBounds(double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
vtkCubeSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCubeSource::ZLength
double ZLength
Definition: vtkCubeSource.h:91
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkCubeSource::~vtkCubeSource
~vtkCubeSource()
Definition: vtkCubeSource.h:86
vtkCubeSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkFiltersSourcesModule.h
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkCubeSource::OutputPointsPrecision
int OutputPointsPrecision
Definition: vtkCubeSource.h:93
vtkPolyDataAlgorithm.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkCubeSource::SetBounds
void SetBounds(const double bounds[6])
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkCubeSource::XLength
double XLength
Definition: vtkCubeSource.h:89
vtkCubeSource::vtkCubeSource
vtkCubeSource(double xL=1.0, double yL=1.0, double zL=1.0)
vtkCubeSource::New
static vtkCubeSource * New()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCubeSource::YLength
double YLength
Definition: vtkCubeSource.h:90
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkCubeSource
create a polygonal representation of a cube
Definition: vtkCubeSource.h:36
VTK_DOUBLE_MAX
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44