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 =========================================================================*/
25 #ifndef vtkProjectSphereFilter_h
26 #define vtkProjectSphereFilter_h
27 
28 #include "vtkFiltersGeometryModule.h" // For export macro
29 #include "vtkPointSetAlgorithm.h"
30 
31 class vtkCell;
32 class vtkCellArray;
34 class vtkIdList;
37 
40 {
41 public:
43  virtual void PrintSelf(ostream &os, vtkIndent indent);
44 
45  static vtkProjectSphereFilter *New();
46 
48 
49  vtkSetVector3Macro(Center,double);
50  vtkGetVectorMacro(Center,double,3);
52 
54 
56  vtkGetMacro(KeepPolePoints, bool);
57  vtkSetMacro(KeepPolePoints, bool);
58  vtkBooleanMacro(KeepPolePoints, bool);
60 
62 
65  vtkGetMacro(TranslateZ, bool);
66  vtkSetMacro(TranslateZ, bool);
67  vtkBooleanMacro(TranslateZ, bool);
69 
70 protected:
73 
75 
78 
79  void TransformPointInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
80  void TransformCellInformation(vtkPointSet* input, vtkPointSet* output, vtkIdList*);
81  void TransformTensors(vtkIdType id, double* coord, vtkDataSetAttributes* arrays);
82 
84 
88  {}
90 
93  virtual double GetZTranslation(vtkPointSet* input);
94 
96 
98  void SplitCell( vtkPointSet* input, vtkPointSet* output, vtkIdType inputCellId,
99  vtkIncrementalPointLocator* locator, vtkCellArray* connectivity,
100  int splitSide);
102 
103  void SetCellInformation(
104  vtkUnstructuredGrid* output, vtkCell* cell, vtkIdType numberOfNewCells);
105 
106 private:
107  vtkProjectSphereFilter(const vtkProjectSphereFilter &); // Not implemented
108  void operator=(const vtkProjectSphereFilter &); // Not implemented
109 
110  double Center[3];
111  const double SplitLongitude;
112  bool KeepPolePoints;
113  bool TranslateZ;
114 };
115 
116 #endif // vtkProjectSphereFilter_h
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Store vtkAlgorithm input/output information.
Abstract class in support of both point location and point insertion.
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:44
int vtkIdType
Definition: vtkType.h:275
abstract class to specify cell behavior
Definition: vtkCell.h:61
virtual void ComputePointsClosestToCenterLine(double, vtkIdList *)
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
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:49
static vtkPointSetAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Store zero or more vtkInformation instances.
virtual int FillInputPortInformation(int port, vtkInformation *info)
#define VTKFILTERSGEOMETRY_EXPORT
A filter to 'unroll' a sphere. The unroll longitude is -180.