VTK  9.0.1
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 =========================================================================*/
23 #ifndef vtkProjectSphereFilter_h
24 #define vtkProjectSphereFilter_h
25 
26 #include "vtkFiltersGeometryModule.h" // For export macro
27 #include "vtkPointSetAlgorithm.h"
28 
29 class vtkCell;
30 class vtkCellArray;
32 class vtkIdList;
35 
36 class VTKFILTERSGEOMETRY_EXPORT vtkProjectSphereFilter : public vtkPointSetAlgorithm
37 {
38 public:
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
42  static vtkProjectSphereFilter* New();
43 
45 
48  vtkSetVector3Macro(Center, double);
49  vtkGetVectorMacro(Center, double, 3);
51 
53 
57  vtkGetMacro(KeepPolePoints, bool);
58  vtkSetMacro(KeepPolePoints, bool);
59  vtkBooleanMacro(KeepPolePoints, bool);
61 
63 
68  vtkGetMacro(TranslateZ, bool);
69  vtkSetMacro(TranslateZ, bool);
70  vtkBooleanMacro(TranslateZ, bool);
72 
73 protected:
75  ~vtkProjectSphereFilter() override;
76 
78 
80 
81  void TransformPointInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
82  void TransformCellInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
83  void TransformTensors(vtkIdType id, double* coord, vtkDataSetAttributes* arrays);
84 
90  virtual void ComputePointsClosestToCenterLine(double, vtkIdList*) {}
91 
96  virtual double GetZTranslation(vtkPointSet* input);
97 
102  void SplitCell(vtkPointSet* input, vtkPointSet* output, vtkIdType inputCellId,
103  vtkIncrementalPointLocator* locator, vtkCellArray* connectivity, int splitSide);
104 
105  void SetCellInformation(vtkUnstructuredGrid* output, vtkCell* cell, vtkIdType numberOfNewCells);
106 
107 private:
109  void operator=(const vtkProjectSphereFilter&) = delete;
110 
111  double Center[3];
112  const double SplitLongitude;
113  bool KeepPolePoints;
114  bool TranslateZ;
115 };
116 
117 #endif // vtkProjectSphereFilter_h
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:53
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkPointSetAlgorithm.h
vtkX3D::port
@ port
Definition: vtkX3D.h:453
vtkPointSetAlgorithm::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
This is called by the superclass.
Definition: vtkPointSetAlgorithm.h:131
vtkPointSetAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:56
vtkProjectSphereFilter
A filter to 'unroll' a sphere. The unroll longitude is -180.
Definition: vtkProjectSphereFilter.h:36
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:179
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:51
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPointSetAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkX3D::info
@ info
Definition: vtkX3D.h:382
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:62
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:92
vtkPointSetAlgorithm::New
static vtkPointSetAlgorithm * New()
vtkProjectSphereFilter::ComputePointsClosestToCenterLine
virtual void ComputePointsClosestToCenterLine(double, vtkIdList *)
Parallel part of the algorithm to figure out the closest point to the centerline (i....
Definition: vtkProjectSphereFilter.h:90