vtkContextView Class Reference

#include <vtkContextView.h>

Inheritance diagram for vtkContextView:

Inheritance graph
[legend]
Collaboration diagram for vtkContextView:

Collaboration graph
[legend]

List of all members.


Detailed Description

provides a view of the vtkContextScene.

This class is derived from vtkRenderViewBase and provides a view of a vtkContextScene, with a default interactor style, renderer etc. It is the simplest way to create a vtkRenderWindow and display a 2D scene inside of it.

By default the scene has a white background.

Examples:
vtkContextView (Examples)
Tests:
vtkContextView (Tests)

Definition at line 42 of file vtkContextView.h.


Public Types

typedef vtkRenderViewBase Superclass

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
virtual const char * GetClassName ()
virtual int IsA (const char *type)
virtual void SetContext (vtkContext2D *context)
virtual vtkContext2DGetContext ()
virtual void SetScene (vtkContextScene *scene)
virtual vtkContextSceneGetScene ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkContextViewSafeDownCast (vtkObject *o)
static vtkContextViewNew ()

Protected Member Functions

 vtkContextView ()
 ~vtkContextView ()

Protected Attributes

vtkSmartPointer< vtkContextSceneScene
vtkSmartPointer< vtkContext2DContext

Member Typedef Documentation

Reimplemented from vtkRenderViewBase.

Definition at line 46 of file vtkContextView.h.


Constructor & Destructor Documentation

vtkContextView::vtkContextView (  )  [protected]

vtkContextView::~vtkContextView (  )  [protected]


Member Function Documentation

void vtkContextView::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.

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

Reimplemented from vtkRenderViewBase.

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

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

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

Reimplemented from vtkRenderViewBase.

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

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

Reimplemented from vtkRenderViewBase.

virtual void vtkContextView::SetContext ( vtkContext2D context  )  [virtual]

Set the vtkContext2D for the view.

virtual vtkContext2D* vtkContextView::GetContext (  )  [virtual]

Get the vtkContext2D for the view.

virtual void vtkContextView::SetScene ( vtkContextScene scene  )  [virtual]

Set the scene object for the view.

virtual vtkContextScene* vtkContextView::GetScene (  )  [virtual]

Get the scene of the view.


Member Data Documentation

Definition at line 66 of file vtkContextView.h.

Definition at line 67 of file vtkContextView.h.


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

Generated on Wed Aug 24 11:32:15 2011 for VTK by  doxygen 1.5.6