VTK  9.3.20240329
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
64 #ifndef vtkTextureMapToSphere_h
65 #define vtkTextureMapToSphere_h
66 
67 #include "vtkDataSetAlgorithm.h"
68 #include "vtkFiltersTextureModule.h" // For export macro
69 
70 VTK_ABI_NAMESPACE_BEGIN
71 class vtkDataSet;
72 
73 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
74 {
75 public:
77  void PrintSelf(ostream& os, vtkIndent indent) override;
78 
84 
86 
89  vtkSetVector3Macro(Center, double);
90  vtkGetVectorMacro(Center, double, 3);
92 
94 
98  vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
99  vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
100  vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
102 
104 
110  vtkSetMacro(PreventSeam, vtkTypeBool);
111  vtkGetMacro(PreventSeam, vtkTypeBool);
112  vtkBooleanMacro(PreventSeam, vtkTypeBool);
114 
115  /*
116  * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
117  */
118  virtual void ComputeCenter(vtkDataSet* input);
119 
120 protected:
122  ~vtkTextureMapToSphere() override = default;
123 
125 
126  double Center[3];
129 
130 private:
132  void operator=(const vtkTextureMapToSphere&) = delete;
133 };
134 
135 VTK_ABI_NAMESPACE_END
136 #endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:166
a simple class to control print indentation
Definition: vtkIndent.h:108
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