VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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>

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

Public Types

typedef vtkRenderViewBase Superclass
 
- Public Types inherited from vtkRenderViewBase
typedef vtkView Superclass
 
- Public Types inherited from vtkView
typedef vtkObject Superclass
 

Public Member Functions

void PrintSelf (ostream &os, vtkIndent indent)
 
virtual int IsA (const char *type)
 
vtkContextViewNewInstance () const
 
virtual void SetContext (vtkContext2D *context)
 
virtual vtkContext2D * GetContext ()
 
virtual void SetScene (vtkContextScene *scene)
 
virtual vtkContextScene * GetScene ()
 
- Public Member Functions inherited from vtkRenderViewBase
vtkRenderViewBaseNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual vtkRenderer * GetRenderer ()
 
virtual void SetRenderer (vtkRenderer *ren)
 
virtual vtkRenderWindow * GetRenderWindow ()
 
virtual void SetRenderWindow (vtkRenderWindow *win)
 
virtual void Render ()
 
virtual void ResetCamera ()
 
virtual void ResetCameraClippingRange ()
 
virtual vtkRenderWindowInteractor * GetInteractor ()
 
virtual void SetInteractor (vtkRenderWindowInteractor *)
 
- Public Member Functions inherited from vtkView
vtkViewNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
void AddRepresentation (vtkDataRepresentation *rep)
 
void SetRepresentation (vtkDataRepresentation *rep)
 
vtkDataRepresentationAddRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
 
vtkDataRepresentationSetRepresentationFromInputConnection (vtkAlgorithmOutput *conn)
 
vtkDataRepresentationAddRepresentationFromInput (vtkDataObject *input)
 
vtkDataRepresentationSetRepresentationFromInput (vtkDataObject *input)
 
void RemoveRepresentation (vtkDataRepresentation *rep)
 
void RemoveRepresentation (vtkAlgorithmOutput *rep)
 
void RemoveAllRepresentations ()
 
int GetNumberOfRepresentations ()
 
vtkDataRepresentationGetRepresentation (int index=0)
 
bool IsRepresentationPresent (vtkDataRepresentation *rep)
 
virtual void Update ()
 
virtual void ApplyViewTheme (vtkViewTheme *vtkNotUsed(theme))
 
vtkCommand * GetObserver ()
 
void RegisterProgress (vtkObject *algorithm, const char *message=NULL)
 
void UnRegisterProgress (vtkObject *algorithm)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkContextViewSafeDownCast (vtkObjectBase *o)
 
static vtkContextViewNew ()
 
- Static Public Member Functions inherited from vtkRenderViewBase
static vtkRenderViewBaseNew ()
 
static int IsTypeOf (const char *type)
 
static vtkRenderViewBaseSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkView
static vtkViewNew ()
 
static int IsTypeOf (const char *type)
 
static vtkViewSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkContextView ()
 
 ~vtkContextView ()
 
- Protected Member Functions inherited from vtkRenderViewBase
 vtkRenderViewBase ()
 
 ~vtkRenderViewBase ()
 
virtual void PrepareForRendering ()
 
- Protected Member Functions inherited from vtkView
 vtkView ()
 
 ~vtkView ()
 
virtual vtkDataRepresentationCreateDefaultRepresentation (vtkAlgorithmOutput *conn)
 
virtual void ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData)
 
virtual void AddRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
 
virtual void RemoveRepresentationInternal (vtkDataRepresentation *vtkNotUsed(rep))
 
virtual void SetReuseSingleRepresentation (bool)
 
virtual bool GetReuseSingleRepresentation ()
 
virtual void ReuseSingleRepresentationOn ()
 
virtual void ReuseSingleRepresentationOff ()
 

Protected Attributes

vtkSmartPointer< vtkContextScene > Scene
 
vtkSmartPointer< vtkContext2D > Context
 
- Protected Attributes inherited from vtkRenderViewBase
vtkSmartPointer< vtkRenderer > Renderer
 
vtkSmartPointer< vtkRenderWindow > RenderWindow
 
- Protected Attributes inherited from vtkView
bool ReuseSingleRepresentation
 

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

Definition at line 47 of file vtkContextView.h.

Constructor & Destructor Documentation

vtkContextView::vtkContextView ( )
protected
vtkContextView::~vtkContextView ( )
protected

Member Function Documentation

void vtkContextView::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
static int vtkContextView::IsTypeOf ( const char *  type)
static
virtual int vtkContextView::IsA ( const char *  type)
virtual

Reimplemented from vtkRenderViewBase.

static vtkContextView* vtkContextView::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkContextView::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkRenderViewBase.

vtkContextView* vtkContextView::NewInstance ( ) const
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 67 of file vtkContextView.h.

vtkSmartPointer<vtkContext2D> vtkContextView::Context
protected

Definition at line 68 of file vtkContextView.h.


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