VTK  9.3.0
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
26 #ifndef vtkEarthSource_h
27 #define vtkEarthSource_h
28 
29 #include "vtkFiltersHybridModule.h" // For export macro
30 #include "vtkPolyDataAlgorithm.h"
31 
32 VTK_ABI_NAMESPACE_BEGIN
33 class VTKFILTERSHYBRID_EXPORT vtkEarthSource : public vtkPolyDataAlgorithm
34 {
35 public:
36  static vtkEarthSource* New();
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
41 
44  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
45  vtkGetMacro(Radius, double);
47 
49 
54  vtkSetClampMacro(OnRatio, int, 1, 16);
55  vtkGetMacro(OnRatio, int);
57 
59 
65  vtkSetMacro(Outline, vtkTypeBool);
66  vtkGetMacro(Outline, vtkTypeBool);
67  vtkBooleanMacro(Outline, vtkTypeBool);
69 
70 protected:
72  ~vtkEarthSource() override = default;
73 
75 
76  double Radius;
77  int OnRatio;
79 
80 private:
81  vtkEarthSource(const vtkEarthSource&) = delete;
82  void operator=(const vtkEarthSource&) = delete;
83 };
84 
85 VTK_ABI_NAMESPACE_END
86 #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:38
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