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

provides a view of the vtkContextScene. More...

#include <vtkContextView.h>

Inherits vtkRenderViewBase.

Collaboration diagram for vtkContextView:
[legend]

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
 

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.

Member Typedef Documentation

typedef vtkRenderViewBase vtkContextView::Superclass

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 const char* vtkContextView::GetClassName ( )
virtual
static int vtkContextView::IsTypeOf ( const char *  type)
static
virtual int vtkContextView::IsA ( const char *  type)
virtual
static vtkContextView* vtkContextView::SafeDownCast ( vtkObject o)
static
static vtkContextView* vtkContextView::New ( )
static
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

vtkSmartPointer<vtkContextScene> vtkContextView::Scene
protected

Definition at line 66 of file vtkContextView.h.

vtkSmartPointer<vtkContext2D> vtkContextView::Context
protected

Definition at line 67 of file vtkContextView.h.


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