VTK
|
A base view containing a renderer. More...
#include <vtkRenderViewBase.h>
Public Types | |
typedef vtkView | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
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 *) |
Static Public Member Functions | |
static vtkRenderViewBase * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderViewBase * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkRenderViewBase () | |
~vtkRenderViewBase () | |
virtual void | PrepareForRendering () |
Protected Attributes | |
vtkSmartPointer< vtkRenderer > | Renderer |
vtkSmartPointer< vtkRenderWindow > | RenderWindow |
A base view containing a renderer.
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 48 of file vtkRenderViewBase.h.
typedef vtkView vtkRenderViewBase::Superclass |
Reimplemented from vtkView.
Reimplemented in vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.
Definition at line 52 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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkParallelCoordinatesView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkContextView, vtkTreeMapView, and vtkIcicleView.
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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.
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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.
static vtkRenderViewBase* vtkRenderViewBase::SafeDownCast | ( | vtkObjectBase * | o | ) | [static] |
Reimplemented from vtkView.
Reimplemented in vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.
virtual vtkObjectBase* vtkRenderViewBase::NewInstanceInternal | ( | ) | const [protected, virtual] |
Reimplemented from vtkView.
Reimplemented in vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.
vtkRenderViewBase* vtkRenderViewBase::NewInstance | ( | ) | const |
Reimplemented from vtkView.
Reimplemented in vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkGeoView2D, vtkParallelCoordinatesView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkContextView, and vtkIcicleView.
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 vtkGeoView, vtkRenderView, vtkGraphLayoutView, vtkHierarchicalGraphView, vtkParallelCoordinatesView, vtkGeoView2D, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, vtkIcicleView, and vtkContextView.
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 vtkRenderView, vtkGeoView, and vtkGeoView2D.
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 vtkRenderView, vtkParallelCoordinatesView, vtkGeoView2D, and vtkGeoView.
vtkSmartPointer<vtkRenderer> vtkRenderViewBase::Renderer [protected] |
Definition at line 96 of file vtkRenderViewBase.h.
Definition at line 97 of file vtkRenderViewBase.h.