VTK
vtkCylinderSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCylinderSource.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 =========================================================================*/
33 #ifndef vtkCylinderSource_h
34 #define vtkCylinderSource_h
35 
36 #include "vtkFiltersSourcesModule.h" // For export macro
37 #include "vtkPolyDataAlgorithm.h"
38 
39 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
40 
42 {
43 public:
44  static vtkCylinderSource *New();
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
51  vtkGetMacro(Height,double);
53 
55 
56  vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
57  vtkGetMacro(Radius,double);
59 
61 
62  vtkSetVector3Macro(Center,double);
63  vtkGetVectorMacro(Center,double,3);
65 
67 
68  vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
69  vtkGetMacro(Resolution,int);
71 
73 
75  vtkSetMacro(Capping,int);
76  vtkGetMacro(Capping,int);
77  vtkBooleanMacro(Capping,int);
79 
81 
85  vtkSetMacro(OutputPointsPrecision,int);
86  vtkGetMacro(OutputPointsPrecision,int);
88 
89 protected:
90  vtkCylinderSource(int res=6);
92 
94  double Height;
95  double Radius;
96  double Center[3];
98  int Capping;
100 
101 private:
102  vtkCylinderSource(const vtkCylinderSource&); // Not implemented.
103  void operator=(const vtkCylinderSource&); // Not implemented.
104 };
105 
106 #endif
generate a cylinder centered at origin
#define VTK_DOUBLE_MAX
Definition: vtkType.h:142
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
#define VTK_CELL_SIZE
Definition: vtkCell.h:45
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
Store zero or more vtkInformation instances.