VTK  9.6.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
23
24#ifndef vtkConeSource_h
25#define vtkConeSource_h
26
27#include "vtkFiltersSourcesModule.h" // For export macro
29#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
30
31#include "vtkCell.h" // Needed for VTK_CELL_SIZE
32
33VTK_ABI_NAMESPACE_BEGIN
34class VTKFILTERSSOURCES_EXPORT VTK_MARSHALAUTO vtkConeSource : public vtkPolyDataAlgorithm
35{
36public:
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
123protected:
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
138private:
139 vtkConeSource(const vtkConeSource&) = delete;
140 void operator=(const vtkConeSource&) = delete;
141};
142
143VTK_ABI_NAMESPACE_END
144#endif
vtkTypeBool Capping
static vtkConeSource * New()
Construct with default resolution 6, height 1.0, radius 0.5, and capping on.
double Direction[3]
~vtkConeSource() override=default
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
vtkConeSource(int res=6)
void SetAngle(double angle)
Set the angle of the cone.
double GetAngle()
Set the angle of the cone.
double Center[3]
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
int vtkTypeBool
Definition vtkABI.h:64
#define VTK_CELL_SIZE
Definition vtkCell.h:31
#define VTK_DOUBLE_MAX
Definition vtkType.h:207
#define VTK_MARSHALAUTO