VTK  9.3.0
vtkTextureMapToSphere.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
35 #ifndef vtkTextureMapToSphere_h
36 #define vtkTextureMapToSphere_h
37 
38 #include "vtkDataSetAlgorithm.h"
39 #include "vtkFiltersTextureModule.h" // For export macro
40 
41 VTK_ABI_NAMESPACE_BEGIN
42 class vtkDataSet;
43 
44 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
55 
57 
60  vtkSetVector3Macro(Center, double);
61  vtkGetVectorMacro(Center, double, 3);
63 
65 
69  vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
70  vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
71  vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
73 
75 
81  vtkSetMacro(PreventSeam, vtkTypeBool);
82  vtkGetMacro(PreventSeam, vtkTypeBool);
83  vtkBooleanMacro(PreventSeam, vtkTypeBool);
85 
86  /*
87  * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
88  */
89  virtual void ComputeCenter(vtkDataSet* input);
90 
91 protected:
93  ~vtkTextureMapToSphere() override = default;
94 
96 
97  double Center[3];
100 
101 private:
103  void operator=(const vtkTextureMapToSphere&) = delete;
104 };
105 
106 VTK_ABI_NAMESPACE_END
107 #endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:53
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
generate texture coordinates by mapping points to sphere
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ComputeCenter(vtkDataSet *input)
~vtkTextureMapToSphere() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
static vtkTextureMapToSphere * New()
Create object with Center (0,0,0) and the PreventSeam ivar is set to true.
int vtkTypeBool
Definition: vtkABI.h:64