VTK
|
provides a view of the vtkContextScene. More...
#include <vtkContextView.h>
Public Types | |
typedef vtkRenderViewBase | Superclass |
Public Member Functions | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | IsA (const char *type) |
vtkContextView * | NewInstance () const |
virtual void | SetContext (vtkContext2D *context) |
virtual vtkContext2D * | GetContext () |
virtual void | SetScene (vtkContextScene *scene) |
virtual vtkContextScene * | GetScene () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkContextView * | SafeDownCast (vtkObjectBase *o) |
static vtkContextView * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkContextView () | |
~vtkContextView () | |
Protected Attributes | |
vtkSmartPointer< vtkContextScene > | Scene |
vtkSmartPointer< vtkContext2D > | Context |
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.
Definition at line 43 of file vtkContextView.h.
Reimplemented from vtkRenderViewBase.
Definition at line 47 of file vtkContextView.h.
vtkContextView::vtkContextView | ( | ) | [protected] |
vtkContextView::~vtkContextView | ( | ) | [protected] |
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.
static vtkContextView* vtkContextView::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkRenderViewBase.
virtual vtkObjectBase* vtkContextView::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkRenderViewBase.
vtkContextView* vtkContextView::NewInstance | ( | ) | const |
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.
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.