vtkRenderViewBase Class Reference

#include <vtkRenderViewBase.h>

Inheritance diagram for vtkRenderViewBase:

Inheritance graph
[legend]
Collaboration diagram for vtkRenderViewBase:

Collaboration graph
[legend]

List of all members.


Detailed Description

A base view containing a renderer.

vtkRenderViewBase is a view which contains a vtkRenderer. You may add vtkActors directly to the renderer.

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

In order to use the view with a QVTKWidget the following code is required to ensure the interactor and render window are initialized properly.

 QVTKWidget *widget = new QVTKWidget;
 vtkContextView *view = vtkContextView::New();
 view->SetInteractor(widget->GetInteractor());
 widget->SetRenderWindow(view->GetRenderWindow());

Definition at line 47 of file vtkRenderViewBase.h.


Public Types

typedef vtkView Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
virtual vtkRendererGetRenderer ()
virtual void SetRenderer (vtkRenderer *ren)
virtual vtkRenderWindowGetRenderWindow ()
virtual void SetRenderWindow (vtkRenderWindow *win)
virtual void Render ()
virtual void ResetCamera ()
virtual void ResetCameraClippingRange ()
virtual vtkRenderWindowInteractorGetInteractor ()
virtual void SetInteractor (vtkRenderWindowInteractor *)

Static Public Member Functions

static vtkRenderViewBaseNew ()
static int IsTypeOf (const char *type)
static vtkRenderViewBaseSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkRenderViewBase ()
 ~vtkRenderViewBase ()
virtual void PrepareForRendering ()

Protected Attributes

vtkSmartPointer< vtkRendererRenderer
vtkSmartPointer< vtkRenderWindowRenderWindow

Member Typedef Documentation


Constructor & Destructor Documentation

vtkRenderViewBase::vtkRenderViewBase (  )  [protected]

vtkRenderViewBase::~vtkRenderViewBase (  )  [protected]


Member Function Documentation

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

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

Reimplemented from vtkView.

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

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

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

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

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

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

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

void vtkRenderViewBase::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 vtkView.

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

virtual vtkRenderer* vtkRenderViewBase::GetRenderer (  )  [virtual]

Gets the renderer for this view.

virtual void vtkRenderViewBase::SetRenderer ( vtkRenderer ren  )  [virtual]

virtual vtkRenderWindow* vtkRenderViewBase::GetRenderWindow (  )  [virtual]

Get a handle to the render window.

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

virtual vtkRenderWindowInteractor* vtkRenderViewBase::GetInteractor (  )  [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.

virtual void vtkRenderViewBase::SetInteractor ( vtkRenderWindowInteractor  )  [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 in vtkRenderView.

virtual void vtkRenderViewBase::Render (  )  [virtual]

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

Reimplemented in vtkGeoView, vtkGeoView2D, and vtkRenderView.

virtual void vtkRenderViewBase::ResetCamera (  )  [virtual]

Updates the representations, then calls ResetCamera() on the renderer associated with this view.

virtual void vtkRenderViewBase::ResetCameraClippingRange (  )  [virtual]

Updates the representations, then calls ResetCameraClippingRange() on the renderer associated with this view.

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

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

Reimplemented in vtkGeoView, vtkGeoView2D, vtkParallelCoordinatesView, and vtkRenderView.


Member Data Documentation

Definition at line 95 of file vtkRenderViewBase.h.

Definition at line 96 of file vtkRenderViewBase.h.


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

Generated on Wed Aug 24 12:03:43 2011 for VTK by  doxygen 1.5.6