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

A view containing a renderer. More...

#include <vtkRenderView.h>

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

List of all members.

Public Types

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 Member Functions

virtual int IsA (const char *type)
vtkRenderViewNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
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 Render ()
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 intGetIconSize ()
virtual void GetIconSize (int &, int &)
virtual void GetIconSize (int[2])
virtual void SetDisplaySize (int, int)
void SetDisplaySize (int[2])
intGetDisplaySize ()
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 ()

Static Public Member Functions

static vtkRenderViewNew ()
static int IsTypeOf (const char *type)
static vtkRenderViewSafeDownCast (vtkObjectBase *o)

Protected Member Functions

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

Protected Attributes

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
void SetRenderOnMouseMove (bool b)
virtual bool GetRenderOnMouseMove ()
virtual void RenderOnMouseMoveOn ()
virtual void RenderOnMouseMoveOff ()
 vtkRenderView ()
 ~vtkRenderView ()

Detailed Description

A view containing a renderer.

vtkRenderView is a view which contains a vtkRenderer. You may add vtkActors directly to the renderer, or add certain vtkDataRepresentation subclasses to the renderer. The render view supports drag selection with the mouse to select cells.

This class is also the parent class for any more specialized view which uses a renderer.

Events:
vtkCommand::HoverEvent
Tests:
vtkRenderView (Tests)

Definition at line 63 of file vtkRenderView.h.


Member Typedef Documentation


Member Enumeration Documentation

anonymous enum
Enumerator:
INTERACTION_MODE_2D 
INTERACTION_MODE_3D 
INTERACTION_MODE_UNKNOWN 

Definition at line 87 of file vtkRenderView.h.

anonymous enum
Enumerator:
SURFACE 
FRUSTUM 

Definition at line 129 of file vtkRenderView.h.

anonymous enum
Enumerator:
NO_OVERLAP 
ALL 

Definition at line 176 of file vtkRenderView.h.

anonymous enum
Enumerator:
FREETYPE 
QT 

Definition at line 197 of file vtkRenderView.h.


Constructor & Destructor Documentation

Whether to render on every mouse move.

Whether to render on every mouse move.


Member Function Documentation

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

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

Reimplemented from vtkRenderViewBase.

Reimplemented in vtkGeoView, vtkGraphLayoutView, vtkParallelCoordinatesView, vtkHierarchicalGraphView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, and vtkIcicleView.

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

Reimplemented in vtkGeoView, vtkGraphLayoutView, vtkParallelCoordinatesView, vtkHierarchicalGraphView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, and vtkIcicleView.

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

Reimplemented in vtkGeoView, vtkGraphLayoutView, vtkParallelCoordinatesView, vtkHierarchicalGraphView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, and vtkIcicleView.

virtual vtkObjectBase* vtkRenderView::NewInstanceInternal ( ) const [protected, virtual]
void vtkRenderView::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 vtkRenderViewBase.

Reimplemented in vtkGeoView, vtkGraphLayoutView, vtkParallelCoordinatesView, vtkHierarchicalGraphView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, and vtkIcicleView.

virtual void vtkRenderView::SetInteractor ( vtkRenderWindowInteractor interactor) [virtual]

The render window interactor. Note that this requires special handling in order to do correctly - see the notes in the detailed description of vtkRenderViewBase.

Reimplemented from vtkRenderViewBase.

virtual void vtkRenderView::SetInteractorStyle ( vtkInteractorObserver style) [virtual]

The interactor style associated with the render view.

Get the interactor style associated with the render view.

virtual void vtkRenderView::SetRenderWindow ( vtkRenderWindow win) [virtual]

Set the render window for this view. Note that this requires special handling in order to do correctly - see the notes in the detailed description of vtkRenderViewBase.

Reimplemented from vtkRenderViewBase.

virtual int vtkRenderView::GetInteractionMode ( ) [virtual]
virtual void vtkRenderView::SetInteractionModeTo2D ( ) [inline, virtual]

Set the interaction mode for the view. Choices are: vtkRenderView::INTERACTION_MODE_2D - 2D interactor vtkRenderView::INTERACTION_MODE_3D - 3D interactor

Definition at line 101 of file vtkRenderView.h.

virtual void vtkRenderView::SetInteractionModeTo3D ( ) [inline, virtual]

Set the interaction mode for the view. Choices are: vtkRenderView::INTERACTION_MODE_2D - 2D interactor vtkRenderView::INTERACTION_MODE_3D - 3D interactor

Definition at line 103 of file vtkRenderView.h.

virtual void vtkRenderView::Render ( ) [virtual]

Updates the representations, then calls Render() on the render window associated with this view.

Reimplemented from vtkRenderViewBase.

Reimplemented in vtkGeoView, and vtkGeoView2D.

virtual void vtkRenderView::ApplyViewTheme ( vtkViewTheme theme) [virtual]

Applies a view theme to this view.

Reimplemented in vtkParallelCoordinatesView, and vtkGeoView2D.

virtual void vtkRenderView::SetTransform ( vtkAbstractTransform transform) [virtual]

Set the view's transform. All vtkRenderedRepresentations added to this view should use this transform.

Set the view's transform. All vtkRenderedRepresentations added to this view should use this transform.

Reimplemented in vtkGeoView2D.

virtual void vtkRenderView::SetDisplayHoverText ( bool  b) [virtual]

Whether the view should display hover text.

virtual bool vtkRenderView::GetDisplayHoverText ( ) [virtual]

Whether the view should display hover text.

virtual void vtkRenderView::DisplayHoverTextOn ( ) [virtual]

Whether the view should display hover text.

virtual void vtkRenderView::DisplayHoverTextOff ( ) [virtual]

Whether the view should display hover text.

virtual void vtkRenderView::SetSelectionMode ( int  ) [virtual]

Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.

virtual int vtkRenderView::GetSelectionMode ( ) [virtual]

Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.

Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.

Definition at line 142 of file vtkRenderView.h.

Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.

Definition at line 143 of file vtkRenderView.h.

virtual void vtkRenderView::AddLabels ( vtkAlgorithmOutput conn) [virtual]

Add labels from an input connection with an associated text property. The output must be a vtkLabelHierarchy (normally the output of vtkPointSetToLabelHierarchy).

virtual void vtkRenderView::RemoveLabels ( vtkAlgorithmOutput conn) [virtual]

Remove labels from an input connection.

virtual void vtkRenderView::SetIconTexture ( vtkTexture texture) [virtual]

Set the icon sheet to use for rendering icons.

virtual vtkTexture* vtkRenderView::GetIconTexture ( ) [virtual]

Set the icon sheet to use for rendering icons.

virtual void vtkRenderView::SetIconSize ( int  ,
int   
) [virtual]

Set the size of each icon in the icon texture.

Set the size of each icon in the icon texture.

virtual int* vtkRenderView::GetIconSize ( ) [virtual]

Set the size of each icon in the icon texture.

virtual void vtkRenderView::GetIconSize ( int ,
int  
) [virtual]

Set the size of each icon in the icon texture.

virtual void vtkRenderView::GetIconSize ( int  [2]) [virtual]

Set the size of each icon in the icon texture.

virtual void vtkRenderView::SetDisplaySize ( int  ,
int   
) [virtual]

Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.

Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.

Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.

void vtkRenderView::GetDisplaySize ( int dsx,
int dsy 
)

Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.

virtual void vtkRenderView::SetLabelPlacementMode ( int  mode) [virtual]

Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).

Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).

virtual void vtkRenderView::SetLabelPlacementModeToNoOverlap ( ) [inline, virtual]

Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).

Definition at line 190 of file vtkRenderView.h.

virtual void vtkRenderView::SetLabelPlacementModeToAll ( ) [inline, virtual]

Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).

Definition at line 192 of file vtkRenderView.h.

virtual void vtkRenderView::SetLabelRenderMode ( int  mode) [virtual]

Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.

virtual int vtkRenderView::GetLabelRenderMode ( ) [virtual]

Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.

virtual void vtkRenderView::SetLabelRenderModeToFreetype ( ) [inline, virtual]

Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.

Definition at line 209 of file vtkRenderView.h.

virtual void vtkRenderView::SetLabelRenderModeToQt ( ) [inline, virtual]

Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.

Definition at line 211 of file vtkRenderView.h.

Whether to render on every mouse move.

virtual bool vtkRenderView::GetRenderOnMouseMove ( ) [virtual]

Whether to render on every mouse move.

virtual void vtkRenderView::RenderOnMouseMoveOn ( ) [virtual]

Whether to render on every mouse move.

virtual void vtkRenderView::RenderOnMouseMoveOff ( ) [virtual]

Whether to render on every mouse move.

virtual void vtkRenderView::ProcessEvents ( vtkObject caller,
unsigned long  eventId,
void *  callData 
) [protected, virtual]

Called to process events. Captures StartEvent events from the renderer and calls Update(). This may be overridden by subclasses to process additional events.

Reimplemented from vtkView.

Reimplemented in vtkGraphLayoutView, and vtkParallelCoordinatesView.

virtual void vtkRenderView::GenerateSelection ( void *  callData,
vtkSelection selection 
) [protected, virtual]

Generates the selection based on the view event and the selection mode.

virtual void vtkRenderView::PrepareForRendering ( ) [protected, virtual]

Called by the view when the renderer is about to render.

Reimplemented from vtkRenderViewBase.

Reimplemented in vtkParallelCoordinatesView, vtkGeoView2D, and vtkGeoView.

virtual void vtkRenderView::UpdateHoverText ( ) [protected, virtual]

Called in PrepareForRendering to update the hover text.

virtual void vtkRenderView::UpdateHoverWidgetState ( ) [protected, virtual]

Enable or disable hovering based on DisplayHoverText ivar and interaction state.

void vtkRenderView::UpdatePickRender ( ) [protected]

Update the pick render for queries for drag selections or hover ballooons.


Member Data Documentation

Definition at line 254 of file vtkRenderView.h.

Definition at line 255 of file vtkRenderView.h.

Definition at line 256 of file vtkRenderView.h.

bool vtkRenderView::Interacting [protected]

Definition at line 257 of file vtkRenderView.h.

Definition at line 258 of file vtkRenderView.h.

bool vtkRenderView::InPickRender [protected]

Definition at line 259 of file vtkRenderView.h.

Definition at line 260 of file vtkRenderView.h.

Definition at line 262 of file vtkRenderView.h.

Definition at line 263 of file vtkRenderView.h.

int vtkRenderView::IconSize[2] [protected]

Definition at line 264 of file vtkRenderView.h.

Definition at line 265 of file vtkRenderView.h.

Definition at line 267 of file vtkRenderView.h.

Definition at line 268 of file vtkRenderView.h.

Definition at line 271 of file vtkRenderView.h.

Definition at line 272 of file vtkRenderView.h.

Definition at line 273 of file vtkRenderView.h.

Definition at line 274 of file vtkRenderView.h.

Definition at line 275 of file vtkRenderView.h.

Definition at line 276 of file vtkRenderView.h.


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