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=========================================================================*/
53#ifndef vtkTextureMapToSphere_h
54#define vtkTextureMapToSphere_h
55
56#include "vtkDataSetAlgorithm.h"
57#include "vtkFiltersTextureModule.h" // For export macro
58
59class vtkDataSet;
60
61class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
62{
63public:
65 void PrintSelf(ostream& os, vtkIndent indent) override;
66
72
74
77 vtkSetVector3Macro(Center, double);
78 vtkGetVectorMacro(Center, double, 3);
80
82
86 vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
87 vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
88 vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
90
92
98 vtkSetMacro(PreventSeam, vtkTypeBool);
99 vtkGetMacro(PreventSeam, vtkTypeBool);
100 vtkBooleanMacro(PreventSeam, vtkTypeBool);
102
103 /*
104 * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
105 */
106 virtual void ComputeCenter(vtkDataSet* input);
107
108protected:
110 ~vtkTextureMapToSphere() override = default;
111
113
114 double Center[3];
117
118private:
120 void operator=(const vtkTextureMapToSphere&) = delete;
121};
122
123#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:66
a simple class to control print indentation
Definition: vtkIndent.h:43
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