VTK  9.4.20250203
vtkProjectSphereFilter.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
33#ifndef vtkProjectSphereFilter_h
34#define vtkProjectSphereFilter_h
35
36#include "vtkFiltersGeometryModule.h" // For export macro
38
39VTK_ABI_NAMESPACE_BEGIN
40class vtkCell;
41class vtkCellArray;
43class vtkIdList;
46
47class VTKFILTERSGEOMETRY_EXPORT vtkProjectSphereFilter : public vtkPointSetAlgorithm
48{
49public:
51 void PrintSelf(ostream& os, vtkIndent indent) override;
52
54
56
59 vtkSetVector3Macro(Center, double);
60 vtkGetVectorMacro(Center, double, 3);
62
64
68 vtkGetMacro(KeepPolePoints, bool);
69 vtkSetMacro(KeepPolePoints, bool);
70 vtkBooleanMacro(KeepPolePoints, bool);
72
74
79 vtkGetMacro(TranslateZ, bool);
80 vtkSetMacro(TranslateZ, bool);
81 vtkBooleanMacro(TranslateZ, bool);
83
84protected:
87
88 int FillInputPortInformation(int port, vtkInformation* info) override;
89
91
94 void TransformTensors(vtkIdType id, double* coord, vtkDataSetAttributes* arrays);
95
102
107 virtual double GetZTranslation(vtkPointSet* input);
108
113 void SplitCell(vtkPointSet* input, vtkPointSet* output, vtkIdType inputCellId,
114 vtkIncrementalPointLocator* locator, vtkCellArray* connectivity, int splitSide);
115
116 void SetCellInformation(vtkUnstructuredGrid* output, vtkCell* cell, vtkIdType numberOfNewCells);
117
118private:
120 void operator=(const vtkProjectSphereFilter&) = delete;
121
122 double Center[3];
123 const double SplitLongitude;
124 bool KeepPolePoints;
125 bool TranslateZ;
126};
127
128VTK_ABI_NAMESPACE_END
129#endif // vtkProjectSphereFilter_h
object to represent cell connectivity
abstract class to specify cell behavior
Definition vtkCell.h:130
represent and manipulate attribute data in a dataset
list of point or cell ids
Definition vtkIdList.h:133
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce output of the same type as input.
concrete class for storing a set of points
Definition vtkPointSet.h:98
A filter to 'unroll' a sphere.
void TransformCellInformation(vtkPointSet *input, vtkPointSet *output, vtkIdList *)
virtual double GetZTranslation(vtkPointSet *input)
If TranslateZ is true then this is the method that computes the amount to translate.
static vtkProjectSphereFilter * New()
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void TransformTensors(vtkIdType id, double *coord, vtkDataSetAttributes *arrays)
virtual void ComputePointsClosestToCenterLine(double, vtkIdList *)
Parallel part of the algorithm to figure out the closest point to the centerline (i....
void TransformPointInformation(vtkPointSet *input, vtkPointSet *output, vtkIdList *)
~vtkProjectSphereFilter() override
void SplitCell(vtkPointSet *input, vtkPointSet *output, vtkIdType inputCellId, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, int splitSide)
Split a cell into multiple cells because it stretches across the SplitLongitude.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
void SetCellInformation(vtkUnstructuredGrid *output, vtkCell *cell, vtkIdType numberOfNewCells)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
dataset represents arbitrary combinations of all possible cell types
int vtkIdType
Definition vtkType.h:315