VTK  9.2.6
vtkCapsuleSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCapsuleSource.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8 
9  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
10 
11  This software is distributed WITHOUT ANY WARRANTY; without even
12  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
13  PURPOSE. See the above copyright notice for more information.
14 
15 =========================================================================*/
16 
17 /*=========================================================================
18 
19  Program: Bender
20  Copyright (c) Kitware Inc.
21 
22  Licensed under the Apache License, Version 2.0 (the "License");
23  you may not use this file except in compliance with the License.
24  You may obtain a copy of the License at
25 
26  http://www.apache.org/licenses/LICENSE-2.0.txt
27 
28  Unless required by applicable law or agreed to in writing, software
29  distributed under the License is distributed on an "AS IS" BASIS,
30  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31  See the License for the specific language governing permissions and
32  limitations under the License.
33 
34 =========================================================================*/
35 
52 #ifndef vtkCapsuleSource_h
53 #define vtkCapsuleSource_h
54 
55 #include "vtkFiltersSourcesModule.h" // For export macro
56 #include "vtkPolyDataAlgorithm.h"
57 
58 #include "vtkSphereSource.h" // For VTK_MAX_SPHERE_RESOLUTION
59 
60 class VTKFILTERSSOURCES_EXPORT vtkCapsuleSource : public vtkPolyDataAlgorithm
61 {
62 public:
64  void PrintSelf(ostream& os, vtkIndent indent) override;
65 
70  static vtkCapsuleSource* New();
71 
73 
76  vtkSetClampMacro(Radius, double, 0.0, VTK_DOUBLE_MAX);
77  vtkGetMacro(Radius, double);
79 
81 
84  vtkSetVector3Macro(Center, double);
85  vtkGetVectorMacro(Center, double, 3);
87 
89 
92  vtkSetClampMacro(CylinderLength, double, 0.0, VTK_DOUBLE_MAX);
93  vtkGetMacro(CylinderLength, double);
95 
97 
101  vtkSetClampMacro(ThetaResolution, int, 8, VTK_INT_MAX);
102  vtkGetMacro(ThetaResolution, int);
104 
106 
109  vtkSetClampMacro(PhiResolution, int, 8, VTK_INT_MAX);
110  vtkGetMacro(PhiResolution, int);
112 
114 
121  vtkSetMacro(LatLongTessellation, int);
122  vtkGetMacro(LatLongTessellation, int);
123  vtkBooleanMacro(LatLongTessellation, int);
125 
127 
132  vtkSetMacro(OutputPointsPrecision, int);
133  vtkGetMacro(OutputPointsPrecision, int);
135 
136 protected:
137  vtkCapsuleSource(int res = 8);
138  ~vtkCapsuleSource() override = default;
139 
142 
143  double Radius;
144  double Center[3];
151 
152 private:
153  vtkCapsuleSource(const vtkCapsuleSource&) = delete;
154  void operator=(const vtkCapsuleSource&) = delete;
155 };
156 
157 #endif
#define VTK_DOUBLE_MAX
Definition: vtkType.h:165
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
#define VTK_INT_MAX
Definition: vtkType.h:155
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Generate a capsule centered at the origin.
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.