VTK
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 :
38 {
39 public:
41  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
42 
43  static vtkProjectSphereFilter *New();
44 
46 
49  vtkSetVector3Macro(Center,double);
50  vtkGetVectorMacro(Center,double,3);
52 
54 
58  vtkGetMacro(KeepPolePoints, bool);
59  vtkSetMacro(KeepPolePoints, bool);
60  vtkBooleanMacro(KeepPolePoints, bool);
62 
64 
69  vtkGetMacro(TranslateZ, bool);
70  vtkSetMacro(TranslateZ, bool);
71  vtkBooleanMacro(TranslateZ, bool);
73 
74 protected:
76  ~vtkProjectSphereFilter() VTK_OVERRIDE;
77 
78  int FillInputPortInformation(int port, vtkInformation *info) VTK_OVERRIDE;
79 
80  int RequestData(vtkInformation *, vtkInformationVector **,
81  vtkInformationVector *) VTK_OVERRIDE;
82 
83  void TransformPointInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
84  void TransformCellInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
85  void TransformTensors(vtkIdType id, double* coord, vtkDataSetAttributes* arrays);
86 
92  virtual void ComputePointsClosestToCenterLine(double, vtkIdList*)
93  {}
94 
99  virtual double GetZTranslation(vtkPointSet* input);
100 
105  void SplitCell( vtkPointSet* input, vtkPointSet* output, vtkIdType inputCellId,
106  vtkIncrementalPointLocator* locator, vtkCellArray* connectivity,
107  int splitSide);
108 
109  void SetCellInformation(
110  vtkUnstructuredGrid* output, vtkCell* cell, vtkIdType numberOfNewCells);
111 
112 private:
113  vtkProjectSphereFilter(const vtkProjectSphereFilter &) VTK_DELETE_FUNCTION;
114  void operator=(const vtkProjectSphereFilter &) VTK_DELETE_FUNCTION;
115 
116  double Center[3];
117  const double SplitLongitude;
118  bool KeepPolePoints;
119  bool TranslateZ;
120 };
121 
122 #endif // vtkProjectSphereFilter_h
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.
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:39
int vtkIdType
Definition: vtkType.h:345
abstract class to specify cell behavior
Definition: vtkCell.h:56
a simple class to control print indentation
Definition: vtkIndent.h:33
list of point or cell ids
Definition: vtkIdList.h:30
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
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:44
static vtkPointSetAlgorithm * New()
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
A filter to 'unroll' a sphere.