VTK  9.3.1
vtkConeSource.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
24 #ifndef vtkConeSource_h
25 #define vtkConeSource_h
26 
27 #include "vtkFiltersSourcesModule.h" // For export macro
28 #include "vtkPolyDataAlgorithm.h"
29 
30 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
44  static vtkConeSource* New();
45 
47 
51  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
52  vtkGetMacro(Height, double);
54 
56 
59  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
60  vtkGetMacro(Radius, double);
62 
64 
67  vtkSetClampMacro(Resolution, int, 0, VTK_CELL_SIZE);
68  vtkGetMacro(Resolution, int);
70 
72 
77  vtkSetVector3Macro(Center, double);
78  vtkGetVectorMacro(Center, double, 3);
80 
82 
87  vtkSetVector3Macro(Direction, double);
88  vtkGetVectorMacro(Direction, double, 3);
90 
92 
99  void SetAngle(double angle);
100  double GetAngle();
102 
104 
107  vtkSetMacro(Capping, vtkTypeBool);
108  vtkGetMacro(Capping, vtkTypeBool);
109  vtkBooleanMacro(Capping, vtkTypeBool);
111 
113 
118  vtkSetMacro(OutputPointsPrecision, int);
119  vtkGetMacro(OutputPointsPrecision, int);
121 
122 protected:
123  vtkConeSource(int res = 6);
124  ~vtkConeSource() override = default;
125 
128 
129  double Height;
130  double Radius;
133  double Center[3];
134  double Direction[3];
136 
137 private:
138  vtkConeSource(const vtkConeSource&) = delete;
139  void operator=(const vtkConeSource&) = delete;
140 };
141 
142 VTK_ABI_NAMESPACE_END
143 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:154
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
generate polygonal cone
Definition: vtkConeSource.h:33
#define VTK_CELL_SIZE
Definition: vtkCell.h:31
static vtkPolyDataAlgorithm * New()
int vtkTypeBool
Definition: vtkABI.h:64
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
int OutputPointsPrecision
vtkTypeBool Capping
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.