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

A base view containing a renderer. More...

#include <vtkRenderViewBase.h>

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

List of all members.

Public Types

typedef vtkView Superclass

Public Member Functions

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

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkRenderViewBase ()
 ~vtkRenderViewBase ()
virtual void PrepareForRendering ()

Protected Attributes

vtkSmartPointer< vtkRendererRenderer
vtkSmartPointer< vtkRenderWindowRenderWindow

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 48 of file vtkRenderViewBase.h.


Member Typedef Documentation


Constructor & Destructor Documentation


Member Function Documentation

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

Reimplemented from vtkView.

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

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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.

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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.

virtual vtkObjectBase* vtkRenderViewBase::NewInstanceInternal ( ) const [protected, virtual]
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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkParallelCoordinatesView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkIcicleView, and vtkContextView.

Gets the renderer for this view.

virtual void vtkRenderViewBase::SetRenderer ( vtkRenderer ren) [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.

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

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 vtkRenderView, vtkGeoView, and vtkGeoView2D.

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 vtkRenderView, vtkParallelCoordinatesView, vtkGeoView2D, and vtkGeoView.


Member Data Documentation

Definition at line 96 of file vtkRenderViewBase.h.

Definition at line 97 of file vtkRenderViewBase.h.


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