VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkGeoView Class Reference

A 3D geospatial view. More...

#include <vtkGeoView.h>

Inheritance diagram for vtkGeoView:
[legend]
Collaboration diagram for vtkGeoView:
[legend]

Public Types

typedef vtkRenderView Superclass
- Public Types inherited from vtkRenderView
enum  { INTERACTION_MODE_2D, INTERACTION_MODE_3D, INTERACTION_MODE_UNKNOWN }
enum  { SURFACE = 0, FRUSTUM = 1 }
enum  { NO_OVERLAP, ALL }
enum  { FREETYPE, QT }
typedef vtkRenderViewBase Superclass
- Public Types inherited from vtkRenderViewBase
typedef vtkView Superclass
- Public Types inherited from vtkView
typedef vtkObject Superclass
- Public Types inherited from vtkObject
typedef vtkObjectBase Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
vtkGeoAlignedImageRepresentationAddDefaultImageRepresentation (vtkImageData *image)
virtual void PrepareForRendering ()
void BuildLowResEarth (double origin[3])
vtkGeoInteractorStyleGetGeoInteractorStyle ()
virtual void SetGeoInteractorStyle (vtkGeoInteractorStyle *style)
virtual void Render ()
virtual void SetLockHeading (bool lock)
virtual bool GetLockHeading ()
virtual void LockHeadingOn ()
virtual void LockHeadingOff ()
virtual void SetTerrain (vtkGeoTerrain *terrain)
virtual vtkGeoTerrainGetTerrain ()
- Public Member Functions inherited from vtkRenderView
virtual void SetInteractor (vtkRenderWindowInteractor *interactor)
virtual void SetInteractorStyle (vtkInteractorObserver *style)
virtual vtkInteractorObserverGetInteractorStyle ()
virtual void SetRenderWindow (vtkRenderWindow *win)
void SetInteractionMode (int mode)
virtual int GetInteractionMode ()
virtual void ApplyViewTheme (vtkViewTheme *theme)
virtual void AddLabels (vtkAlgorithmOutput *conn)
virtual void RemoveLabels (vtkAlgorithmOutput *conn)
virtual void SetInteractionModeTo2D ()
virtual void SetInteractionModeTo3D ()
virtual void SetTransform (vtkAbstractTransform *transform)
virtual vtkAbstractTransformGetTransform ()
virtual void SetDisplayHoverText (bool b)
virtual bool GetDisplayHoverText ()
virtual void DisplayHoverTextOn ()
virtual void DisplayHoverTextOff ()
virtual void SetSelectionMode (int)
virtual int GetSelectionMode ()
void SetSelectionModeToSurface ()
void SetSelectionModeToFrustum ()
virtual void SetIconTexture (vtkTexture *texture)
virtual vtkTextureGetIconTexture ()
virtual void SetIconSize (int, int)
void SetIconSize (int[2])
virtual int * GetIconSize ()
virtual void GetIconSize (int &, int &)
virtual void GetIconSize (int[2])
virtual void SetDisplaySize (int, int)
void SetDisplaySize (int[2])
int * GetDisplaySize ()
void GetDisplaySize (int &dsx, int &dsy)
virtual void SetLabelPlacementMode (int mode)
virtual int GetLabelPlacementMode ()
virtual void SetLabelPlacementModeToNoOverlap ()
virtual void SetLabelPlacementModeToAll ()
virtual void SetLabelRenderMode (int mode)
virtual int GetLabelRenderMode ()
virtual void SetLabelRenderModeToFreetype ()
virtual void SetLabelRenderModeToQt ()
void SetRenderOnMouseMove (bool b)
virtual bool GetRenderOnMouseMove ()
virtual void RenderOnMouseMoveOn ()
virtual void RenderOnMouseMoveOff ()
- Public Member Functions inherited from vtkRenderViewBase
virtual vtkRendererGetRenderer ()
virtual void SetRenderer (vtkRenderer *ren)
virtual vtkRenderWindowGetRenderWindow ()
virtual void ResetCamera ()
virtual void ResetCameraClippingRange ()
virtual vtkRenderWindowInteractorGetInteractor ()
- Public Member Functions inherited from vtkView
void AddRepresentation (vtkDataRepresentation *rep)
void SetRepresentation (vtkDataRepresentation *rep)
vtkDataRepresentationAddRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationSetRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
vtkDataRepresentationAddRepresentationFromInput (vtkDataObject *input)
vtkDataRepresentationSetRepresentationFromInput (vtkDataObject *input)
void RemoveRepresentation (vtkDataRepresentation *rep)
void RemoveRepresentation (vtkAlgorithmOutput *rep)
void RemoveAllRepresentations ()
int GetNumberOfRepresentations ()
vtkDataRepresentationGetRepresentation (int index=0)
bool IsRepresentationPresent (vtkDataRepresentation *rep)
virtual void Update ()
virtual void ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme))
vtkCommandGetObserver ()
void RegisterProgress (vtkObject *algorithm, const char *message=NULL)
void UnRegisterProgress (vtkObject *algorithm)
- Public Member Functions inherited from vtkObject
virtual void DebugOn ()
virtual void DebugOff ()
unsigned char GetDebug ()
void SetDebug (unsigned char debugFlag)
virtual void Modified ()
virtual unsigned long GetMTime ()
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
vtkCommandGetCommand (unsigned long tag)
void RemoveObserver (vtkCommand *)
void RemoveObservers (unsigned long event, vtkCommand *)
void RemoveObservers (const char *event, vtkCommand *)
int HasObserver (unsigned long event, vtkCommand *)
int HasObserver (const char *event, vtkCommand *)
void RemoveObserver (unsigned long tag)
void RemoveObservers (unsigned long event)
void RemoveObservers (const char *event)
void RemoveAllObservers ()
int HasObserver (unsigned long event)
int HasObserver (const char *event)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
int InvokeEvent (unsigned long event, void *callData)
int InvokeEvent (const char *event, void *callData)
int InvokeEvent (unsigned long event)
int InvokeEvent (const char *event)
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
virtual void Delete ()
virtual void FastDelete ()
void Print (ostream &os)
virtual void Register (vtkObjectBase *o)
virtual void UnRegister (vtkObjectBase *o)
void SetReferenceCount (int)
void PrintRevisions (ostream &os)
virtual void PrintHeader (ostream &os, vtkIndent indent)
virtual void PrintTrailer (ostream &os, vtkIndent indent)
int GetReferenceCount ()

Static Public Member Functions

static vtkGeoViewNew ()
static int IsTypeOf (const char *type)
static vtkGeoViewSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkGeoView ()
 ~vtkGeoView ()
- Protected Member Functions inherited from vtkRenderView
virtual void UpdateHoverText ()
virtual void UpdateHoverWidgetState ()
void UpdatePickRender ()
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)
virtual void GenerateSelection (void *callData, vtkSelection *selection)
 vtkRenderView ()
 ~vtkRenderView ()
- Protected Member Functions inherited from vtkRenderViewBase
 vtkRenderViewBase ()
 ~vtkRenderViewBase ()
- Protected Member Functions inherited from vtkView
 vtkView ()
 ~vtkView ()
virtual vtkDataRepresentationCreateDefaultRepresentation (vtkAlgorithmOutput *conn)
virtual void AddRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
virtual void RemoveRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
virtual void SetReuseSingleRepresentation (bool)
virtual bool GetReuseSingleRepresentation ()
virtual void ReuseSingleRepresentationOn ()
virtual void ReuseSingleRepresentationOff ()
- Protected Member Functions inherited from vtkObject
 vtkObject ()
virtual ~vtkObject ()
virtual void RegisterInternal (vtkObjectBase *, int check)
virtual void UnRegisterInternal (vtkObjectBase *, int check)
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL)
void InternalReleaseFocus ()
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
virtual ~vtkObjectBase ()
virtual void CollectRevisions (ostream &os)
virtual void ReportReferences (vtkGarbageCollector *)
 vtkObjectBase (const vtkObjectBase &)
void operator= (const vtkObjectBase &)

Protected Attributes

vtkGlobeSourceLowResEarthSource
vtkPolyDataMapperLowResEarthMapper
vtkActorLowResEarthActor
vtkAssemblyAssembly
vtkGeoTerrainTerrain
int UsingMesaDrivers
- Protected Attributes inherited from vtkRenderView
int SelectionMode
int LabelRenderMode
bool DisplayHoverText
bool Interacting
bool InHoverTextRender
bool InPickRender
bool PickRenderNeedsUpdate
vtkAbstractTransformTransform
vtkTextureIconTexture
int IconSize [2]
int DisplaySize [2]
int InteractionMode
bool RenderOnMouseMove
vtkSmartPointer< vtkRendererLabelRenderer
vtkSmartPointer
< vtkBalloonRepresentation
Balloon
vtkSmartPointer
< vtkLabelPlacementMapper
LabelPlacementMapper
vtkSmartPointer
< vtkTexturedActor2D
LabelActor
vtkSmartPointer< vtkHoverWidgetHoverWidget
vtkSmartPointer
< vtkHardwareSelector
Selector
- Protected Attributes inherited from vtkRenderViewBase
vtkSmartPointer< vtkRendererRenderer
vtkSmartPointer< vtkRenderWindowRenderWindow
- Protected Attributes inherited from vtkView
bool ReuseSingleRepresentation

Detailed Description

A 3D geospatial view.

vtkGeoView is a 3D globe view. The globe may contain a multi-resolution geometry source (vtkGeoTerrain), multiple multi-resolution image sources (vtkGeoAlignedImageRepresentation), as well as other representations such as vtkRenderedGraphRepresentation. At a minimum, the view must have a terrain and one image representation. The view uses vtkGeoInteractorStyle to orbit, zoom, and tilt the view, and contains a vtkCompassWidget for manipulating the camera.

Each terrain or image representation contains a vtkGeoSource subclass which generates geometry or imagery at multiple resolutions. As the camera position changes, the terrain and/or image representations may ask its vtkGeoSource to refine the geometry. This refinement is performed on a separate thread, and the data is added to the view when it becomes available.

See Also
vtkGeoTerrain vtkGeoAlignedImageRepresentation vtkGeoSource
Examples:
vtkGeoView (Examples)
Tests:
vtkGeoView (Tests)

Definition at line 63 of file vtkGeoView.h.

Member Typedef Documentation

Definition at line 67 of file vtkGeoView.h.

Constructor & Destructor Documentation

vtkGeoView::vtkGeoView ( )
protected
vtkGeoView::~vtkGeoView ( )
protected

Member Function Documentation

static vtkGeoView* vtkGeoView::New ( )
static

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

Reimplemented from vtkRenderView.

virtual const char* vtkGeoView::GetClassName ( )
virtual

Reimplemented from vtkRenderView.

static int vtkGeoView::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 vtkRenderView.

virtual int vtkGeoView::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 vtkRenderView.

static vtkGeoView* vtkGeoView::SafeDownCast ( vtkObject o)
static

Reimplemented from vtkRenderView.

void vtkGeoView::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 vtkRenderView.

vtkGeoAlignedImageRepresentation* vtkGeoView::AddDefaultImageRepresentation ( vtkImageData image)

Adds an image representation with a simple terrain model using the image in the specified file as the globe terrain.

virtual void vtkGeoView::PrepareForRendering ( )
virtual

Prepares the view for rendering.

Reimplemented from vtkRenderView.

void vtkGeoView::BuildLowResEarth ( double  origin[3])

Rebuild low-res earth source; call after (re)setting origin.

virtual void vtkGeoView::SetLockHeading ( bool  lock)
virtual

Whether the view locks the heading when panning. Default is off.

virtual bool vtkGeoView::GetLockHeading ( )
virtual

Whether the view locks the heading when panning. Default is off.

virtual void vtkGeoView::LockHeadingOn ( )
virtual

Whether the view locks the heading when panning. Default is off.

virtual void vtkGeoView::LockHeadingOff ( )
virtual

Whether the view locks the heading when panning. Default is off.

vtkGeoInteractorStyle* vtkGeoView::GetGeoInteractorStyle ( )

Convenience method for obtaining the internal interactor style.

virtual void vtkGeoView::SetGeoInteractorStyle ( vtkGeoInteractorStyle style)
virtual

Method to change the interactor style.

virtual void vtkGeoView::SetTerrain ( vtkGeoTerrain terrain)
virtual

The terrain (geometry) model for this earth view.

virtual vtkGeoTerrain* vtkGeoView::GetTerrain ( )
virtual

The terrain (geometry) model for this earth view.

virtual void vtkGeoView::Render ( )
virtual

Update and render the view.

Reimplemented from vtkRenderView.

Member Data Documentation

vtkGlobeSource* vtkGeoView::LowResEarthSource
protected

Definition at line 106 of file vtkGeoView.h.

vtkPolyDataMapper* vtkGeoView::LowResEarthMapper
protected

Definition at line 107 of file vtkGeoView.h.

vtkActor* vtkGeoView::LowResEarthActor
protected

Definition at line 108 of file vtkGeoView.h.

vtkAssembly* vtkGeoView::Assembly
protected

Definition at line 109 of file vtkGeoView.h.

vtkGeoTerrain* vtkGeoView::Terrain
protected

Definition at line 110 of file vtkGeoView.h.

int vtkGeoView::UsingMesaDrivers
protected

Definition at line 112 of file vtkGeoView.h.


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