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

provides a view of the vtkContextScene. More...

#include <vtkContextView.h>

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

List of all members.

Public Types

typedef vtkRenderViewBase Superclass

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
virtual int IsA (const char *type)
vtkContextViewNewInstance () const
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 (vtkObjectBase *o)
static vtkContextViewNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 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 43 of file vtkContextView.h.


Member Typedef Documentation

Reimplemented from vtkRenderViewBase.

Definition at line 47 of file vtkContextView.h.


Constructor & Destructor Documentation


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.

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.

Reimplemented from vtkRenderViewBase.

virtual vtkObjectBase* vtkContextView::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkRenderViewBase.

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 67 of file vtkContextView.h.

Definition at line 68 of file vtkContextView.h.


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