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

A 2D terrain model for the globe. More...

#include <vtkGeoTerrain2D.h>

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

List of all members.

Public Types

typedef vtkGeoTerrain Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkGeoTerrain2DNewInstance () const
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 (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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

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 49 of file vtkGeoTerrain2D.h.


Member Typedef Documentation

Reimplemented from vtkGeoTerrain.

Definition at line 53 of file vtkGeoTerrain2D.h.


Constructor & Destructor Documentation


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.

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 vtkTypeMacro 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 vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkGeoTerrain.

Reimplemented from vtkGeoTerrain.

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

Reimplemented from vtkGeoTerrain.

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.

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.

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

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 77 of file vtkGeoTerrain2D.h.

Definition at line 78 of file vtkGeoTerrain2D.h.

Definition at line 91 of file vtkGeoTerrain2D.h.

Definition at line 92 of file vtkGeoTerrain2D.h.


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