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=========================================================================*/
76#ifndef vtkTextureMapToSphere_h
77#define vtkTextureMapToSphere_h
78
79#include "vtkDataSetAlgorithm.h"
80#include "vtkFiltersTextureModule.h" // For export macro
81
82class vtkDataSet;
83
84class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
85{
86public:
88 void PrintSelf(ostream& os, vtkIndent indent) override;
89
95
97
100 vtkSetVector3Macro(Center, double);
101 vtkGetVectorMacro(Center, double, 3);
103
105
109 vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
110 vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
111 vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
113
115
121 vtkSetMacro(PreventSeam, vtkTypeBool);
122 vtkGetMacro(PreventSeam, vtkTypeBool);
123 vtkBooleanMacro(PreventSeam, vtkTypeBool);
125
126 /*
127 * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
128 */
129 virtual void ComputeCenter(vtkDataSet* input);
130
131protected:
133 ~vtkTextureMapToSphere() override = default;
134
136
137 double Center[3];
140
141private:
143 void operator=(const vtkTextureMapToSphere&) = delete;
144};
145
146#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition: vtkDataSet.h:172
a simple class to control print indentation
Definition: vtkIndent.h:119
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