VTK  9.3.20240328
vtkEarthSource.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
36 #ifndef vtkEarthSource_h
37 #define vtkEarthSource_h
38 
39 #include "vtkFiltersHybridModule.h" // For export macro
40 #include "vtkPolyDataAlgorithm.h"
41 
42 VTK_ABI_NAMESPACE_BEGIN
43 class VTKFILTERSHYBRID_EXPORT vtkEarthSource : public vtkPolyDataAlgorithm
44 {
45 public:
46  static vtkEarthSource* New();
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
51 
54  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
55  vtkGetMacro(Radius, double);
57 
59 
64  vtkSetClampMacro(OnRatio, int, 1, 16);
65  vtkGetMacro(OnRatio, int);
67 
69 
75  vtkSetMacro(Outline, vtkTypeBool);
76  vtkGetMacro(Outline, vtkTypeBool);
77  vtkBooleanMacro(Outline, vtkTypeBool);
79 
80 protected:
82  ~vtkEarthSource() override = default;
83 
85 
86  double Radius;
87  int OnRatio;
89 
90 private:
91  vtkEarthSource(const vtkEarthSource&) = delete;
92  void operator=(const vtkEarthSource&) = delete;
93 };
94 
95 VTK_ABI_NAMESPACE_END
96 #endif
create the continents of the Earth as a sphere
~vtkEarthSource() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTypeBool Outline
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkEarthSource * New()
a simple class to control print indentation
Definition: vtkIndent.h:108
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:64
#define VTK_FLOAT_MAX
Definition: vtkType.h:152