VTK  9.1.0
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=========================================================================*/
73#ifndef vtkTextureMapToSphere_h
74#define vtkTextureMapToSphere_h
75
76#include "vtkDataSetAlgorithm.h"
77#include "vtkFiltersTextureModule.h" // For export macro
78
79class vtkDataSet;
80
81class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
82{
83public:
85 void PrintSelf(ostream& os, vtkIndent indent) override;
86
92
94
97 vtkSetVector3Macro(Center, double);
98 vtkGetVectorMacro(Center, double, 3);
100
102
106 vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
107 vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
108 vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
110
112
118 vtkSetMacro(PreventSeam, vtkTypeBool);
119 vtkGetMacro(PreventSeam, vtkTypeBool);
120 vtkBooleanMacro(PreventSeam, vtkTypeBool);
122
123 /*
124 * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
125 */
126 virtual void ComputeCenter(vtkDataSet* input);
127
128protected:
130 ~vtkTextureMapToSphere() override = default;
131
133
134 double Center[3];
137
138private:
140 void operator=(const vtkTextureMapToSphere&) = delete;
141};
142
143#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:113
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
static vtkTextureMapToSphere * New()
Create object with Center (0,0,0) and the PreventSeam ivar is set to true.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called within ProcessRequest when a request asks the algorithm to do its work.
int vtkTypeBool
Definition: vtkABI.h:69