#include <vtkRenderView.h>
vtkRenderView is a view which contains a vtkRenderer. You may add vtkActors directly to the renderer, or add certain vtkDataRepresentation subclasses to the renderer. The render view supports drag selection with the mouse to select cells.
This class is also the parent class for any more specialized view which uses a renderer.
Definition at line 46 of file vtkRenderView.h.
Public Types | |
enum | { SURFACE = 0, FRUSTUM = 1 } |
typedef vtkView | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetupRenderWindow (vtkRenderWindow *win) |
vtkRenderWindow * | GetRenderWindow () |
virtual void | ApplyViewTheme (vtkViewTheme *theme) |
virtual void | Update () |
virtual void | SetSelectionMode (int) |
virtual int | GetSelectionMode () |
void | SetSelectionModeToSurface () |
void | SetSelectionModeToFrustum () |
virtual vtkRenderer * | GetRenderer () |
Static Public Member Functions | |
static vtkRenderView * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderView * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkRenderView () | |
~vtkRenderView () | |
virtual void | PrepareForRendering () |
virtual void | ProcessEvents (vtkObject *caller, unsigned long eventId, void *callData) |
virtual void | RepresentationSelectionChanged (vtkDataRepresentation *rep, vtkSelection *selection) |
virtual vtkInteractorStyle * | GetInteractorStyle () |
void | SetInteractorStyle (vtkInteractorStyle *style) |
Protected Attributes | |
vtkRenderer * | Renderer |
vtkInteractorStyle * | InteractorStyle |
int | SelectionMode |
typedef vtkView vtkRenderView::Superclass |
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
Definition at line 50 of file vtkRenderView.h.
anonymous enum |
vtkRenderView::vtkRenderView | ( | ) | [protected] |
vtkRenderView::~vtkRenderView | ( | ) | [protected] |
static vtkRenderView* vtkRenderView::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
virtual const char* vtkRenderView::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
static int vtkRenderView::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
virtual int vtkRenderView::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 vtkTypeRevisionMacro found in vtkSetGet.h.
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
static vtkRenderView* vtkRenderView::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
void vtkRenderView::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 vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
virtual vtkRenderer* vtkRenderView::GetRenderer | ( | ) | [virtual] |
Gets the renderer for this view.
virtual void vtkRenderView::SetupRenderWindow | ( | vtkRenderWindow * | win | ) | [virtual] |
Set up a render window to use this view. The superclass adds the renderer to the render window. Subclasses should override this to set interactor, etc.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
vtkRenderWindow* vtkRenderView::GetRenderWindow | ( | ) |
Get a handle to the render window.
virtual void vtkRenderView::ApplyViewTheme | ( | vtkViewTheme * | theme | ) | [virtual] |
Apply a theme to the view.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
virtual void vtkRenderView::Update | ( | ) | [virtual] |
Update the view.
Reimplemented from vtkView.
virtual void vtkRenderView::SetSelectionMode | ( | int | ) | [virtual] |
virtual int vtkRenderView::GetSelectionMode | ( | ) | [virtual] |
void vtkRenderView::SetSelectionModeToSurface | ( | ) | [inline] |
Definition at line 80 of file vtkRenderView.h.
void vtkRenderView::SetSelectionModeToFrustum | ( | ) | [inline] |
Definition at line 81 of file vtkRenderView.h.
virtual void vtkRenderView::ProcessEvents | ( | vtkObject * | caller, | |
unsigned long | eventId, | |||
void * | callData | |||
) | [protected, virtual] |
Called to process events. Captures StartEvent events from the renderer and calls Update(). This may be overridden by subclasses to process additional events.
Reimplemented from vtkView.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
virtual void vtkRenderView::PrepareForRendering | ( | ) | [inline, protected, virtual] |
Called by the view when the renderer is about to render.
Reimplemented in vtkGraphLayoutView, vtkTreeLayoutView, and vtkTreeMapView.
Definition at line 96 of file vtkRenderView.h.
virtual void vtkRenderView::RepresentationSelectionChanged | ( | vtkDataRepresentation * | rep, | |
vtkSelection * | selection | |||
) | [protected, virtual] |
Called when a representation's selection changed.
virtual vtkInteractorStyle* vtkRenderView::GetInteractorStyle | ( | ) | [protected, virtual] |
Allow subclasses to change the interactor style.
void vtkRenderView::SetInteractorStyle | ( | vtkInteractorStyle * | style | ) | [protected] |
Allow subclasses to change the interactor style.
vtkRenderer* vtkRenderView::Renderer [protected] |
Definition at line 111 of file vtkRenderView.h.
vtkInteractorStyle* vtkRenderView::InteractorStyle [protected] |
Definition at line 112 of file vtkRenderView.h.
int vtkRenderView::SelectionMode [protected] |
Definition at line 113 of file vtkRenderView.h.