VTK  9.2.6
vtkProjectSphereFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkProjectSphereFilter.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 =========================================================================*/
26 #ifndef vtkProjectSphereFilter_h
27 #define vtkProjectSphereFilter_h
28 
29 #include "vtkFiltersGeometryModule.h" // For export macro
30 #include "vtkPointSetAlgorithm.h"
31 
32 class vtkCell;
33 class vtkCellArray;
35 class vtkIdList;
38 
39 class VTKFILTERSGEOMETRY_EXPORT vtkProjectSphereFilter : public vtkPointSetAlgorithm
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
45  static vtkProjectSphereFilter* New();
46 
48 
51  vtkSetVector3Macro(Center, double);
52  vtkGetVectorMacro(Center, double, 3);
54 
56 
60  vtkGetMacro(KeepPolePoints, bool);
61  vtkSetMacro(KeepPolePoints, bool);
62  vtkBooleanMacro(KeepPolePoints, bool);
64 
66 
71  vtkGetMacro(TranslateZ, bool);
72  vtkSetMacro(TranslateZ, bool);
73  vtkBooleanMacro(TranslateZ, bool);
75 
76 protected:
78  ~vtkProjectSphereFilter() override;
79 
81 
83 
84  void TransformPointInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
85  void TransformCellInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
86  void TransformTensors(vtkIdType id, double* coord, vtkDataSetAttributes* arrays);
87 
93  virtual void ComputePointsClosestToCenterLine(double, vtkIdList*) {}
94 
99  virtual double GetZTranslation(vtkPointSet* input);
100 
105  void SplitCell(vtkPointSet* input, vtkPointSet* output, vtkIdType inputCellId,
106  vtkIncrementalPointLocator* locator, vtkCellArray* connectivity, int splitSide);
107 
108  void SetCellInformation(vtkUnstructuredGrid* output, vtkCell* cell, vtkIdType numberOfNewCells);
109 
110 private:
112  void operator=(const vtkProjectSphereFilter&) = delete;
113 
114  double Center[3];
115  const double SplitLongitude;
116  bool KeepPolePoints;
117  bool TranslateZ;
118 };
119 
120 #endif // vtkProjectSphereFilter_h
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Store vtkAlgorithm input/output information.
Abstract class in support of both point location and point insertion.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
concrete class for storing a set of points
Definition: vtkPointSet.h:69
int vtkIdType
Definition: vtkType.h:332
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
abstract class to specify cell behavior
Definition: vtkCell.h:60
virtual void ComputePointsClosestToCenterLine(double, vtkIdList *)
Parallel part of the algorithm to figure out the closest point to the centerline (i.e.
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:33
dataset represents arbitrary combinations of all possible cell types
Superclass for algorithms that produce output of the same type as input.
represent and manipulate attribute data in a dataset
object to represent cell connectivity
Definition: vtkCellArray.h:186
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
A filter to 'unroll' a sphere.