vtkGeoTerrain2D Class Reference

#include <vtkGeoTerrain2D.h>

Inheritance diagram for vtkGeoTerrain2D:

Inheritance graph
[legend]
Collaboration diagram for vtkGeoTerrain2D:

Collaboration graph
[legend]

List of all members.


Detailed Description

A 2D terrain model for the globe.

vtkGeoTerrain2D contains a multi-resolution tree of geometry representing the globe. It uses a vtkGeoSource subclass to generate the terrain, such as vtkGeoProjectionSource. This source must be set before using the terrain in a vtkGeoView2D. The terrain also contains an AddActors() method which updates the set of actors representing the globe given the current camera position.

Tests:
vtkGeoTerrain2D (Tests)

Definition at line 48 of file vtkGeoTerrain2D.h.


Public Types

typedef vtkGeoTerrain Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkAbstractTransformGetTransform ()
virtual void SetTextureTolerance (double)
virtual double GetTextureTolerance ()
virtual void SetLocationTolerance (double)
virtual double GetLocationTolerance ()

Static Public Member Functions

static vtkGeoTerrain2DNew ()
static int IsTypeOf (const char *type)
static vtkGeoTerrain2DSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkGeoTerrain2D ()
 ~vtkGeoTerrain2D ()
virtual void InitializeNodeAnalysis (vtkRenderer *ren)
virtual bool NodeInViewport (vtkGeoTerrainNode *node)
virtual int EvaluateNode (vtkGeoTerrainNode *node)

Protected Attributes

double LocationTolerance
double TextureTolerance
double CameraBounds [4]
double PixelSize

Member Typedef Documentation

Reimplemented from vtkGeoTerrain.

Definition at line 52 of file vtkGeoTerrain2D.h.


Constructor & Destructor Documentation

vtkGeoTerrain2D::vtkGeoTerrain2D (  )  [protected]

vtkGeoTerrain2D::~vtkGeoTerrain2D (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkGeoTerrain.

virtual const char* vtkGeoTerrain2D::GetClassName (  )  [virtual]

Reimplemented from vtkGeoTerrain.

static int vtkGeoTerrain2D::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkGeoTerrain.

virtual int vtkGeoTerrain2D::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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkGeoTerrain.

static vtkGeoTerrain2D* vtkGeoTerrain2D::SafeDownCast ( vtkObject o  )  [static]

Reimplemented from vtkGeoTerrain.

virtual void vtkGeoTerrain2D::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 vtkGeoTerrain.

virtual void vtkGeoTerrain2D::SetTextureTolerance ( double   )  [virtual]

The maximum size of a single texel in pixels. Images will be refined if a texel becomes larger than the tolerance.

virtual double vtkGeoTerrain2D::GetTextureTolerance (  )  [virtual]

The maximum size of a single texel in pixels. Images will be refined if a texel becomes larger than the tolerance.

virtual void vtkGeoTerrain2D::SetLocationTolerance ( double   )  [virtual]

The maximum allowed deviation of geometry in pixels. Geometry will be refined if the deviation is larger than the tolerance.

virtual double vtkGeoTerrain2D::GetLocationTolerance (  )  [virtual]

The maximum allowed deviation of geometry in pixels. Geometry will be refined if the deviation is larger than the tolerance.

virtual vtkAbstractTransform* vtkGeoTerrain2D::GetTransform (  )  [virtual]

Return the projection transformation used by this 2D terrain.

virtual void vtkGeoTerrain2D::InitializeNodeAnalysis ( vtkRenderer ren  )  [protected, virtual]

AddActors() calls this to setup parameters for evaluating nodes.

Reimplemented from vtkGeoTerrain.

virtual bool vtkGeoTerrain2D::NodeInViewport ( vtkGeoTerrainNode node  )  [protected, virtual]

AddActors() calls this to determine if a node is in the current viewport.

Reimplemented from vtkGeoTerrain.

virtual int vtkGeoTerrain2D::EvaluateNode ( vtkGeoTerrainNode node  )  [protected, virtual]

AddActors() calls to to evaluate whether a node should be refined (1), coarsened (-1), or remain at the same level (0).

Reimplemented from vtkGeoTerrain.


Member Data Documentation

Definition at line 76 of file vtkGeoTerrain2D.h.

Definition at line 77 of file vtkGeoTerrain2D.h.

double vtkGeoTerrain2D::CameraBounds[4] [protected]

Definition at line 90 of file vtkGeoTerrain2D.h.

double vtkGeoTerrain2D::PixelSize [protected]

Definition at line 91 of file vtkGeoTerrain2D.h.


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

Generated on Wed Jun 3 19:05:34 2009 for VTK by  doxygen 1.5.6