VTK
|
provides a view of the vtkContextScene. More...
#include <vtkContextView.h>
Public Types | |
typedef vtkRenderViewBase | Superclass |
![]() | |
typedef vtkView | Superclass |
![]() | |
typedef vtkObject | 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 () |
![]() | |
vtkRenderViewBase * | NewInstance () 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 *) |
![]() | |
vtkView * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddRepresentation (vtkDataRepresentation *rep) |
void | SetRepresentation (vtkDataRepresentation *rep) |
vtkDataRepresentation * | AddRepresentationFromInputConnection (vtkAlgorithmOutput *conn) |
vtkDataRepresentation * | SetRepresentationFromInputConnection (vtkAlgorithmOutput *conn) |
vtkDataRepresentation * | AddRepresentationFromInput (vtkDataObject *input) |
vtkDataRepresentation * | SetRepresentationFromInput (vtkDataObject *input) |
void | RemoveRepresentation (vtkDataRepresentation *rep) |
void | RemoveRepresentation (vtkAlgorithmOutput *rep) |
void | RemoveAllRepresentations () |
int | GetNumberOfRepresentations () |
vtkDataRepresentation * | GetRepresentation (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 vtkContextView * | SafeDownCast (vtkObjectBase *o) |
static vtkContextView * | New () |
![]() | |
static vtkRenderViewBase * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderViewBase * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static vtkView * | New () |
static int | IsTypeOf (const char *type) |
static vtkView * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkContextView () | |
~vtkContextView () | |
![]() | |
vtkRenderViewBase () | |
~vtkRenderViewBase () | |
virtual void | PrepareForRendering () |
![]() | |
vtkView () | |
~vtkView () | |
virtual vtkDataRepresentation * | CreateDefaultRepresentation (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 |
![]() | |
vtkSmartPointer< vtkRenderer > | Renderer |
vtkSmartPointer< vtkRenderWindow > | RenderWindow |
![]() | |
bool | ReuseSingleRepresentation |
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.
Definition at line 47 of file vtkContextView.h.
|
protected |
|
protected |
void vtkContextView::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
|
static |
|
virtual |
Reimplemented from vtkRenderViewBase.
|
static |
|
protectedvirtual |
Reimplemented from vtkRenderViewBase.
vtkContextView* vtkContextView::NewInstance | ( | ) | const |
|
static |
|
virtual |
Set the vtkContext2D for the view.
|
virtual |
Get the vtkContext2D for the view.
|
virtual |
Set the scene object for the view.
|
virtual |
Get the scene of the view.
|
protected |
Definition at line 67 of file vtkContextView.h.
|
protected |
Definition at line 68 of file vtkContextView.h.