VTK  9.0.20201203
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 =========================================================================*/
44 #ifndef vtkTextureMapToSphere_h
45 #define vtkTextureMapToSphere_h
46 
47 #include "vtkDataSetAlgorithm.h"
48 #include "vtkFiltersTextureModule.h" // For export macro
49 
50 class vtkDataSet;
51 
52 class VTKFILTERSTEXTURE_EXPORT vtkTextureMapToSphere : public vtkDataSetAlgorithm
53 {
54 public:
56  void PrintSelf(ostream& os, vtkIndent indent) override;
57 
62  static vtkTextureMapToSphere* New();
63 
65 
68  vtkSetVector3Macro(Center, double);
69  vtkGetVectorMacro(Center, double, 3);
71 
73 
77  vtkSetMacro(AutomaticSphereGeneration, vtkTypeBool);
78  vtkGetMacro(AutomaticSphereGeneration, vtkTypeBool);
79  vtkBooleanMacro(AutomaticSphereGeneration, vtkTypeBool);
81 
83 
89  vtkSetMacro(PreventSeam, vtkTypeBool);
90  vtkGetMacro(PreventSeam, vtkTypeBool);
91  vtkBooleanMacro(PreventSeam, vtkTypeBool);
93 
94  /*
95  * Computes the center point of the data set if AutomaticSphereGeneration is set to true.
96  */
97  virtual void ComputeCenter(vtkDataSet* input);
98 
99 protected:
101  ~vtkTextureMapToSphere() override = default;
102 
104 
105  double Center[3];
108 
109 private:
111  void operator=(const vtkTextureMapToSphere&) = delete;
112 };
113 
114 #endif
vtkTextureMapToSphere::PreventSeam
vtkTypeBool PreventSeam
Definition: vtkTextureMapToSphere.h:107
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkDataSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called within ProcessRequest when a request asks the algorithm to do its work.
Definition: vtkDataSetAlgorithm.h:176
vtkDataSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkDataSetAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkDataSetAlgorithm::New
static vtkDataSetAlgorithm * New()
vtkTextureMapToSphere::AutomaticSphereGeneration
vtkTypeBool AutomaticSphereGeneration
Definition: vtkTextureMapToSphere.h:106
vtkDataSet
abstract class to specify dataset behavior
Definition: vtkDataSet.h:56
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkDataSetAlgorithm.h
vtkDataSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkTextureMapToSphere
generate texture coordinates by mapping points to sphere
Definition: vtkTextureMapToSphere.h:52
vtkTypeBool
int vtkTypeBool
Definition: vtkABI.h:69