VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkGeoGraticule Class Reference

Create a polygonal lat-long grid. More...

#include <vtkGeoGraticule.h>

Inheritance diagram for vtkGeoGraticule:
Inheritance graph
[legend]
Collaboration diagram for vtkGeoGraticule:
Collaboration graph
[legend]

List of all members.

Public Types

enum  LevelLimits { LEVEL_MIN = 0, LEVEL_MAX = 11, NUMBER_OF_LEVELS = ( LEVEL_MAX - LEVEL_MIN + 1 ) }
enum  GeometryType { POLYLINES = 0x1, QUADRILATERALS = 0x2 }
typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual int IsA (const char *type)
vtkGeoGraticuleNewInstance () const
virtual void SetLatitudeBounds (double, double)
void SetLatitudeBounds (double[2])
virtual doubleGetLatitudeBounds ()
virtual void GetLatitudeBounds (double &, double &)
virtual void GetLatitudeBounds (double[2])
virtual void SetLongitudeBounds (double, double)
void SetLongitudeBounds (double[2])
virtual doubleGetLongitudeBounds ()
virtual void GetLongitudeBounds (double &, double &)
virtual void GetLongitudeBounds (double[2])
virtual void SetLatitudeLevel (int)
virtual int GetLatitudeLevel ()
virtual void SetLongitudeLevel (int)
virtual int GetLongitudeLevel ()
virtual void SetGeometryType (int)
virtual int GetGeometryType ()

Static Public Member Functions

static vtkGeoGraticuleNew ()
static int IsTypeOf (const char *type)
static vtkGeoGraticuleSafeDownCast (vtkObjectBase *o)
static double GetLatitudeDelta (int level)
static double GetLongitudeDelta (int level)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkGeoGraticule ()
virtual ~vtkGeoGraticule ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
void GenerateGraticule (vtkPolyData *output, double latbds[2], double lngbds[2])
int ComputeLineLevel (int ticId, int baseLevel, const double *levelIncrements)

Protected Attributes

int GeometryType
double LatitudeBounds [2]
double LongitudeBounds [2]
int LatitudeLevel
int LongitudeLevel

Static Protected Attributes

static double LatitudeLevelTics [NUMBER_OF_LEVELS]
static double LongitudeLevelTics [NUMBER_OF_LEVELS]

Detailed Description

Create a polygonal lat-long grid.

This filter generates polydata to illustrate the distortions introduced by a map projection. The level parameter specifies the number of lines to be drawn. Poles are treated differently than other regions; hence the use of a Level parameter instead of a NumberOfLines parameter. The latitude and longitude are specified as half-open intervals with units of degrees. By default the latitude bounds are [-90,90[ and the longitude bounds are [0,180[.

Tests:
vtkGeoGraticule (Tests)

Definition at line 44 of file vtkGeoGraticule.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 49 of file vtkGeoGraticule.h.


Member Enumeration Documentation

Enumerator:
LEVEL_MIN 
LEVEL_MAX 
NUMBER_OF_LEVELS 

Definition at line 64 of file vtkGeoGraticule.h.

Enumerator:
POLYLINES 
QUADRILATERALS 

Definition at line 104 of file vtkGeoGraticule.h.


Constructor & Destructor Documentation

virtual vtkGeoGraticule::~vtkGeoGraticule ( ) [protected, virtual]

Member Function Documentation

static vtkGeoGraticule* vtkGeoGraticule::New ( ) [static]

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkGeoGraticule::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPolyDataAlgorithm.

static int vtkGeoGraticule::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkGeoGraticule::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual vtkObjectBase* vtkGeoGraticule::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkGeoGraticule::SetLatitudeBounds ( double  ,
double   
) [virtual]

The latitude bounds of the graticule.

The latitude bounds of the graticule.

The latitude bounds of the graticule.

virtual void vtkGeoGraticule::GetLatitudeBounds ( double ,
double  
) [virtual]

The latitude bounds of the graticule.

virtual void vtkGeoGraticule::GetLatitudeBounds ( double  [2]) [virtual]

The latitude bounds of the graticule.

virtual void vtkGeoGraticule::SetLongitudeBounds ( double  ,
double   
) [virtual]

The longitude bounds of the graticule.

The longitude bounds of the graticule.

The longitude bounds of the graticule.

virtual void vtkGeoGraticule::GetLongitudeBounds ( double ,
double  
) [virtual]

The longitude bounds of the graticule.

virtual void vtkGeoGraticule::GetLongitudeBounds ( double  [2]) [virtual]

The longitude bounds of the graticule.

virtual void vtkGeoGraticule::SetLatitudeLevel ( int  ) [virtual]

The frequency level of latitude lines.

virtual int vtkGeoGraticule::GetLatitudeLevel ( ) [virtual]

The frequency level of latitude lines.

virtual void vtkGeoGraticule::SetLongitudeLevel ( int  ) [virtual]

The frequency level of longitude lines.

virtual int vtkGeoGraticule::GetLongitudeLevel ( ) [virtual]

The frequency level of longitude lines.

static double vtkGeoGraticule::GetLatitudeDelta ( int  level) [inline, static]

The latitude delta at a certain frequency level.

Definition at line 85 of file vtkGeoGraticule.h.

static double vtkGeoGraticule::GetLongitudeDelta ( int  level) [inline, static]

The longitude delta at a certain frequency level.

Definition at line 91 of file vtkGeoGraticule.h.

virtual void vtkGeoGraticule::SetGeometryType ( int  ) [virtual]

Set//get the type(s) of cells that will be output by the filter. By default, polylines are output. You may also request quadrilaterals. This is a bit vector of GeometryType enums.

virtual int vtkGeoGraticule::GetGeometryType ( ) [virtual]

Set//get the type(s) of cells that will be output by the filter. By default, polylines are output. You may also request quadrilaterals. This is a bit vector of GeometryType enums.

virtual int vtkGeoGraticule::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

void vtkGeoGraticule::GenerateGraticule ( vtkPolyData output,
double  latbds[2],
double  lngbds[2] 
) [protected]
int vtkGeoGraticule::ComputeLineLevel ( int  ticId,
int  baseLevel,
const double levelIncrements 
) [protected]

Member Data Documentation

Definition at line 114 of file vtkGeoGraticule.h.

Definition at line 115 of file vtkGeoGraticule.h.

Definition at line 116 of file vtkGeoGraticule.h.

Definition at line 117 of file vtkGeoGraticule.h.

Definition at line 118 of file vtkGeoGraticule.h.

The distance between tic marks at each level, in degrees.

Definition at line 122 of file vtkGeoGraticule.h.

The distance between tic marks at each level, in degrees.

Definition at line 123 of file vtkGeoGraticule.h.


The documentation for this class was generated from the following file: