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=========================================================================*/
30#ifndef vtkConeSource_h
31#define vtkConeSource_h
32
33#include "vtkFiltersSourcesModule.h" // For export macro
35
36#include "vtkCell.h" // Needed for VTK_CELL_SIZE
37
38class VTKFILTERSSOURCES_EXPORT vtkConeSource : public vtkPolyDataAlgorithm
39{
40public:
42 void PrintSelf(ostream& os, vtkIndent indent) override;
43
49 static vtkConeSource* New();
50
52
56 vtkSetClampMacro(Height, double, 0.0, VTK_DOUBLE_MAX);
57 vtkGetMacro(Height, double);
59
61
64 vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
65 vtkGetMacro(Radius, double);
67
69
72 vtkSetClampMacro(Resolution, int, 0, VTK_CELL_SIZE);
73 vtkGetMacro(Resolution, int);
75
77
82 vtkSetVector3Macro(Center, double);
83 vtkGetVectorMacro(Center, double, 3);
85
87
92 vtkSetVector3Macro(Direction, double);
93 vtkGetVectorMacro(Direction, double, 3);
95
97
104 void SetAngle(double angle);
105 double GetAngle();
107
109
112 vtkSetMacro(Capping, vtkTypeBool);
113 vtkGetMacro(Capping, vtkTypeBool);
114 vtkBooleanMacro(Capping, vtkTypeBool);
116
118
123 vtkSetMacro(OutputPointsPrecision, int);
124 vtkGetMacro(OutputPointsPrecision, int);
126
127protected:
128 vtkConeSource(int res = 6);
129 ~vtkConeSource() override = default;
130
133
134 double Height;
135 double Radius;
138 double Center[3];
139 double Direction[3];
141
142private:
143 vtkConeSource(const vtkConeSource&) = delete;
144 void operator=(const vtkConeSource&) = delete;
145};
146
147#endif
generate polygonal cone
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 RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
a simple class to control print indentation
Definition vtkIndent.h:34
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:40
#define VTK_DOUBLE_MAX
Definition vtkType.h:165