VTK  9.7.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 #include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30 
31 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
32 
33 VTK_ABI_NAMESPACE_BEGIN
34 class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkConeSource : public vtkPolyDataAlgorithm
35 {
36 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
45  static vtkConeSource* New();
46 
48 
52  vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
53  vtkGetMacro(Height, double);
55 
57 
60  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
61  vtkGetMacro(Radius, double);
63 
65 
68  vtkSetClampMacro(Resolution, int, 0, VTK_CELL_SIZE);
69  vtkGetMacro(Resolution, int);
71 
73 
78  vtkSetVector3Macro(Center, double);
79  vtkGetVectorMacro(Center, double, 3);
81 
83 
88  vtkSetVector3Macro(Direction, double);
89  vtkGetVectorMacro(Direction, double, 3);
91 
93 
100  void SetAngle(double angle);
101  double GetAngle();
103 
105 
108  vtkSetMacro(Capping, vtkTypeBool);
109  vtkGetMacro(Capping, vtkTypeBool);
110  vtkBooleanMacro(Capping, vtkTypeBool);
112 
114 
119  vtkSetMacro(OutputPointsPrecision, int);
120  vtkGetMacro(OutputPointsPrecision, int);
122 
123 protected:
124  vtkConeSource(int res = 6);
125  ~vtkConeSource() override = default;
126 
129 
130  double Height;
131  double Radius;
134  double Center[3];
135  double Direction[3];
137 
138 private:
139  vtkConeSource(const vtkConeSource&) = delete;
140  void operator=(const vtkConeSource&) = delete;
141 };
142 
143 VTK_ABI_NAMESPACE_END
144 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:202
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:34
#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.
#define VTK_MARSHALAUTO
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.