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
44 #ifndef vtkTextureMapToSphere_h
45 #define vtkTextureMapToSphere_h
46 
47 #include "vtkDataSetAlgorithm.h"
48 #include "vtkFiltersTextureModule.h" // For export macro
49 
50 VTK_ABI_NAMESPACE_BEGIN
51 class vtkDataSet;
52 
53 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
54 {
55 public:
57  void PrintSelf(ostream& os, vtkIndent indent) override;
58 
64 
66 
69  vtkSetVector3Macro(Center, double);
70  vtkGetVectorMacro(Center, double, 3);
72 
74 
78  vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
79  vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
80  vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
82 
84 
90  vtkSetMacro(PreventSeam, vtkTypeBool);
91  vtkGetMacro(PreventSeam, vtkTypeBool);
92  vtkBooleanMacro(PreventSeam, vtkTypeBool);
94 
95  /*
96  * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
97  */
98  virtual void ComputeCenter(vtkDataSet* input);
99 
100 protected:
102  ~vtkTextureMapToSphere() override = default;
103 
105 
106  double Center[3];
109 
110 private:
112  void operator=(const vtkTextureMapToSphere&) = delete;
113 };
114 
115 VTK_ABI_NAMESPACE_END
116 #endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
a simple class to control print indentation
Definition: vtkIndent.h:38
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