VTK  9.2.6
vtkTextureMapToSphere.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkTextureMapToSphere.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 =========================================================================*/
47 #ifndef vtkTextureMapToSphere_h
48 #define vtkTextureMapToSphere_h
49 
50 #include "vtkDataSetAlgorithm.h"
51 #include "vtkFiltersTextureModule.h" // For export macro
52 
53 class vtkDataSet;
54 
55 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
65  static vtkTextureMapToSphere* New();
66 
68 
71  vtkSetVector3Macro(Center, double);
72  vtkGetVectorMacro(Center, double, 3);
74 
76 
80  vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
81  vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
82  vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
84 
86 
92  vtkSetMacro(PreventSeam, vtkTypeBool);
93  vtkGetMacro(PreventSeam, vtkTypeBool);
94  vtkBooleanMacro(PreventSeam, vtkTypeBool);
96 
97  /*
98  * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
99  */
100  virtual void ComputeCenter(vtkDataSet* input);
101 
102 protected:
104  ~vtkTextureMapToSphere() override = default;
105 
107 
108  double Center[3];
111 
112 private:
114  void operator=(const vtkTextureMapToSphere&) = delete;
115 };
116 
117 #endif
Store vtkAlgorithm input/output information.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:62
int vtkTypeBool
Definition: vtkABI.h:69
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:39
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()