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 
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 
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 
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
vtkProjectSphereFilter::GetZTranslation
virtual double GetZTranslation(vtkPointSet *input)
vtkProjectSphereFilter::SplitCell
void SplitCell(vtkPointSet *input, vtkPointSet *output, vtkIdType inputCellId, vtkIncrementalPointLocator *locator, vtkCellArray *connectivity, int splitSide)
vtkProjectSphereFilter::TransformCellInformation
void TransformCellInformation(vtkPointSet *input, vtkPointSet *output, vtkIdList *)
vtkPointSetAlgorithm
Superclass for algorithms that produce output of the same type as input.
Definition: vtkPointSetAlgorithm.h:43
vtkFiltersGeometryModule.h
vtkSetVector3Macro
#define vtkSetVector3Macro(name, type)
Definition: vtkSetGet.h:287
VTKFILTERSGEOMETRY_EXPORT
#define VTKFILTERSGEOMETRY_EXPORT
Definition: vtkFiltersGeometryModule.h:15
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkDataSetAttributes
represent and manipulate attribute data in a dataset
Definition: vtkDataSetAttributes.h:58
vtkProjectSphereFilter::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPointSetAlgorithm.h
vtkgl::coord
GLuint coord
Definition: vtkgl.h:16713
vtkProjectSphereFilter::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkgl::input
GLenum GLenum GLenum input
Definition: vtkgl.h:15941
vtkGetVectorMacro
#define vtkGetVectorMacro(name, type, count)
Definition: vtkSetGet.h:424
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkProjectSphereFilter::vtkProjectSphereFilter
vtkProjectSphereFilter()
vtkCell
abstract class to specify cell behavior
Definition: vtkCell.h:62
vtkProjectSphereFilter
A filter to 'unroll' a sphere. The unroll longitude is -180.
Definition: vtkProjectSphereFilter.h:40
vtkgl::arrays
const GLuint * arrays
Definition: vtkgl.h:13636
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkIncrementalPointLocator
Abstract class in support of both point location and point insertion.
Definition: vtkIncrementalPointLocator.h:54
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkPointSet
abstract class for specifying dataset behavior
Definition: vtkPointSet.h:45
vtkProjectSphereFilter::New
static vtkProjectSphereFilter * New()
vtkProjectSphereFilter::~vtkProjectSphereFilter
~vtkProjectSphereFilter()
vtkProjectSphereFilter::TransformPointInformation
void TransformPointInformation(vtkPointSet *input, vtkPointSet *output, vtkIdList *)
vtkUnstructuredGrid
dataset represents arbitrary combinations of all possible cell types
Definition: vtkUnstructuredGrid.h:82
vtkProjectSphereFilter::SetCellInformation
void SetCellInformation(vtkUnstructuredGrid *output, vtkCell *cell, vtkIdType numberOfNewCells)
vtkProjectSphereFilter::RequestData
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkProjectSphereFilter::TransformTensors
void TransformTensors(vtkIdType id, double *coord, vtkDataSetAttributes *arrays)
vtkProjectSphereFilter::ComputePointsClosestToCenterLine
virtual void ComputePointsClosestToCenterLine(double, vtkIdList *)
Definition: vtkProjectSphereFilter.h:87