VTK  9.2.6
vtkEarthSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEarthSource.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 =========================================================================*/
48 #ifndef vtkEarthSource_h
49 #define vtkEarthSource_h
50 
51 #include "vtkFiltersHybridModule.h" // For export macro
52 #include "vtkPolyDataAlgorithm.h"
53 
54 class VTKFILTERSHYBRID_EXPORT vtkEarthSource : public vtkPolyDataAlgorithm
55 {
56 public:
57  static vtkEarthSource* New();
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
62 
65  vtkSetClampMacro(Radius, double, 0.0, VTK_FLOAT_MAX);
66  vtkGetMacro(Radius, double);
68 
70 
75  vtkSetClampMacro(OnRatio, int, 1, 16);
76  vtkGetMacro(OnRatio, int);
78 
80 
86  vtkSetMacro(Outline, vtkTypeBool);
87  vtkGetMacro(Outline, vtkTypeBool);
88  vtkBooleanMacro(Outline, vtkTypeBool);
90 
91 protected:
93  ~vtkEarthSource() override = default;
94 
96 
97  double Radius;
98  int OnRatio;
100 
101 private:
102  vtkEarthSource(const vtkEarthSource&) = delete;
103  void operator=(const vtkEarthSource&) = delete;
104 };
105 
106 #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:119
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_FLOAT_MAX
Definition: vtkType.h:163