#include <vtkRenderViewBase.h>
vtkRenderViewBase is a view which contains a vtkRenderer. You may add vtkActors directly to the renderer.
This class is also the parent class for any more specialized view which uses a renderer.
In order to use the view with a QVTKWidget the following code is required to ensure the interactor and render window are initialized properly.
QVTKWidget *widget = new QVTKWidget; vtkContextView *view = vtkContextView::New(); view->SetInteractor(widget->GetInteractor()); widget->SetRenderWindow(view->GetRenderWindow());
Definition at line 47 of file vtkRenderViewBase.h.
Public Types | |
typedef vtkView | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
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 *) |
Static Public Member Functions | |
static vtkRenderViewBase * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderViewBase * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkRenderViewBase () | |
~vtkRenderViewBase () | |
virtual void | PrepareForRendering () |
Protected Attributes | |
vtkSmartPointer< vtkRenderer > | Renderer |
vtkSmartPointer< vtkRenderWindow > | RenderWindow |
typedef vtkView vtkRenderViewBase::Superclass |
Reimplemented from vtkView.
Reimplemented in vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
Definition at line 51 of file vtkRenderViewBase.h.
vtkRenderViewBase::vtkRenderViewBase | ( | ) | [protected] |
vtkRenderViewBase::~vtkRenderViewBase | ( | ) | [protected] |
static vtkRenderViewBase* vtkRenderViewBase::New | ( | ) | [static] |
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
Reimplemented from vtkView.
Reimplemented in vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
virtual const char* vtkRenderViewBase::GetClassName | ( | ) | [virtual] |
Reimplemented from vtkView.
Reimplemented in vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
static int vtkRenderViewBase::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 vtkView.
Reimplemented in vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
virtual int vtkRenderViewBase::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 vtkView.
Reimplemented in vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
static vtkRenderViewBase* vtkRenderViewBase::SafeDownCast | ( | vtkObject * | o | ) | [static] |
Reimplemented from vtkView.
Reimplemented in vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
void vtkRenderViewBase::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 vtkContextView, vtkGeoView, vtkGeoView2D, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkIcicleView, vtkParallelCoordinatesView, vtkRenderView, vtkTreeAreaView, vtkTreeMapView, and vtkTreeRingView.
virtual vtkRenderer* vtkRenderViewBase::GetRenderer | ( | ) | [virtual] |
Gets the renderer for this view.
virtual void vtkRenderViewBase::SetRenderer | ( | vtkRenderer * | ren | ) | [virtual] |
virtual vtkRenderWindow* vtkRenderViewBase::GetRenderWindow | ( | ) | [virtual] |
Get a handle to the render window.
virtual void vtkRenderViewBase::SetRenderWindow | ( | vtkRenderWindow * | win | ) | [virtual] |
Set the render window for this view. Note that this requires special handling in order to do correctly - see the notes in the detailed description of vtkRenderViewBase.
Reimplemented in vtkRenderView.
virtual vtkRenderWindowInteractor* vtkRenderViewBase::GetInteractor | ( | ) | [virtual] |
The render window interactor. Note that this requires special handling in order to do correctly - see the notes in the detailed description of vtkRenderViewBase.
virtual void vtkRenderViewBase::SetInteractor | ( | vtkRenderWindowInteractor * | ) | [virtual] |
The render window interactor. Note that this requires special handling in order to do correctly - see the notes in the detailed description of vtkRenderViewBase.
Reimplemented in vtkRenderView.
virtual void vtkRenderViewBase::Render | ( | ) | [virtual] |
Updates the representations, then calls Render() on the render window associated with this view.
Reimplemented in vtkGeoView, vtkGeoView2D, and vtkRenderView.
virtual void vtkRenderViewBase::ResetCamera | ( | ) | [virtual] |
Updates the representations, then calls ResetCamera() on the renderer associated with this view.
virtual void vtkRenderViewBase::ResetCameraClippingRange | ( | ) | [virtual] |
Updates the representations, then calls ResetCameraClippingRange() on the renderer associated with this view.
virtual void vtkRenderViewBase::PrepareForRendering | ( | ) | [protected, virtual] |
Called by the view when the renderer is about to render.
Reimplemented in vtkGeoView, vtkGeoView2D, vtkParallelCoordinatesView, and vtkRenderView.
vtkSmartPointer<vtkRenderer> vtkRenderViewBase::Renderer [protected] |
Definition at line 95 of file vtkRenderViewBase.h.
Definition at line 96 of file vtkRenderViewBase.h.