VTK  9.2.6
vtkConeSource.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkConeSource.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=========================================================================*/
36#ifndef vtkConeSource_h
37#define vtkConeSource_h
38
39#include "vtkFiltersSourcesModule.h" // For export macro
41
42#include "vtkCell.h" // Needed for VTK_CELL_SIZE
43
44class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
45{
46public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
55 static vtkConeSource* New();
56
58
62 vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
63 vtkGetMacro(Height, double);
65
67
70 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
71 vtkGetMacro(Radius, double);
73
75
78 vtkSetClampMacro(Resolution, int, 0, VTK_CELL_SIZE);
79 vtkGetMacro(Resolution, int);
81
83
88 vtkSetVector3Macro(Center, double);
89 vtkGetVectorMacro(Center, double, 3);
91
93
98 vtkSetVector3Macro(Direction, double);
99 vtkGetVectorMacro(Direction, double, 3);
101
103
110 void SetAngle(double angle);
111 double GetAngle();
113
115
118 vtkSetMacro(Capping, vtkTypeBool);
119 vtkGetMacro(Capping, vtkTypeBool);
120 vtkBooleanMacro(Capping, vtkTypeBool);
122
124
129 vtkSetMacro(OutputPointsPrecision, int);
130 vtkGetMacro(OutputPointsPrecision, int);
132
133protected:
134 vtkConeSource(int res = 6);
135 ~vtkConeSource() override = default;
136
139
140 double Height;
141 double Radius;
144 double Center[3];
145 double Direction[3];
147
148private:
149 vtkConeSource(const vtkConeSource&) = delete;
150 void operator=(const vtkConeSource&) = delete;
151};
152
153#endif
generate polygonal cone
Definition: vtkConeSource.h:45
vtkTypeBool Capping
static vtkConeSource * New()
Construct with default resolution 6, height 1.0, radius 0.5, and capping on.
~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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int OutputPointsPrecision
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition: vtkIndent.h:40
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition: vtkABI.h:69
#define VTK_CELL_SIZE
Definition: vtkCell.h:43
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165