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=========================================================================*/
56#ifndef vtkTextureMapToSphere_h
57#define vtkTextureMapToSphere_h
58
59#include "vtkDataSetAlgorithm.h"
60#include "vtkFiltersTextureModule.h" // For export macro
61
62class vtkDataSet;
63
64class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
65{
66public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
75
77
80 vtkSetVector3Macro(Center, double);
81 vtkGetVectorMacro(Center, double, 3);
83
85
89 vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
90 vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
91 vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
93
95
101 vtkSetMacro(PreventSeam, vtkTypeBool);
102 vtkGetMacro(PreventSeam, vtkTypeBool);
103 vtkBooleanMacro(PreventSeam, vtkTypeBool);
105
106 /*
107 * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
108 */
109 virtual void ComputeCenter(vtkDataSet* input);
110
111protected:
113 ~vtkTextureMapToSphere() override = default;
114
116
117 double Center[3];
120
121private:
123 void operator=(const vtkTextureMapToSphere&) = delete;
124};
125
126#endif
Superclass for algorithms that produce output of the same type as input.
abstract class to specify dataset behavior
Definition vtkDataSet.h:72
a simple class to control print indentation
Definition vtkIndent.h:49
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