VTK  9.3.1
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 
54  static vtkTextureMapToSphere* New();
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
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:52
int vtkTypeBool
Definition: vtkABI.h:64
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:28
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
generate texture coordinates by mapping points to sphere
Store zero or more vtkInformation instances.
Superclass for algorithms that produce output of the same type as input.
static vtkDataSetAlgorithm * New()