VTK
|
A view containing a renderer. More...
#include <vtkRenderView.h>
Public Types | |
enum | { INTERACTION_MODE_2D, INTERACTION_MODE_3D, INTERACTION_MODE_UNKNOWN } |
enum | { SURFACE = 0, FRUSTUM = 1 } |
enum | { NO_OVERLAP, ALL } |
enum | { FREETYPE, QT } |
typedef vtkRenderViewBase | Superclass |
Public Types inherited from vtkRenderViewBase | |
typedef vtkView | Superclass |
Public Types inherited from vtkView | |
typedef vtkObject | Superclass |
Public Types inherited from vtkObject | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkRenderView * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetInteractor (vtkRenderWindowInteractor *interactor) |
virtual void | SetInteractorStyle (vtkInteractorObserver *style) |
virtual vtkInteractorObserver * | GetInteractorStyle () |
virtual void | SetRenderWindow (vtkRenderWindow *win) |
void | SetInteractionMode (int mode) |
virtual int | GetInteractionMode () |
virtual void | Render () |
virtual void | ApplyViewTheme (vtkViewTheme *theme) |
virtual void | AddLabels (vtkAlgorithmOutput *conn) |
virtual void | RemoveLabels (vtkAlgorithmOutput *conn) |
virtual void | SetInteractionModeTo2D () |
virtual void | SetInteractionModeTo3D () |
virtual void | SetTransform (vtkAbstractTransform *transform) |
virtual vtkAbstractTransform * | GetTransform () |
virtual void | SetDisplayHoverText (bool b) |
virtual bool | GetDisplayHoverText () |
virtual void | DisplayHoverTextOn () |
virtual void | DisplayHoverTextOff () |
virtual void | SetSelectionMode (int) |
virtual int | GetSelectionMode () |
void | SetSelectionModeToSurface () |
void | SetSelectionModeToFrustum () |
virtual void | SetIconTexture (vtkTexture *texture) |
virtual vtkTexture * | GetIconTexture () |
virtual void | SetIconSize (int, int) |
void | SetIconSize (int[2]) |
virtual int * | GetIconSize () |
virtual void | GetIconSize (int &, int &) |
virtual void | GetIconSize (int[2]) |
virtual void | SetDisplaySize (int, int) |
void | SetDisplaySize (int[2]) |
int * | GetDisplaySize () |
void | GetDisplaySize (int &dsx, int &dsy) |
virtual void | SetLabelPlacementMode (int mode) |
virtual int | GetLabelPlacementMode () |
virtual void | SetLabelPlacementModeToNoOverlap () |
virtual void | SetLabelPlacementModeToAll () |
virtual void | SetLabelRenderMode (int mode) |
virtual int | GetLabelRenderMode () |
virtual void | SetLabelRenderModeToFreetype () |
virtual void | SetLabelRenderModeToQt () |
Public Member Functions inherited from vtkRenderViewBase | |
vtkRenderViewBase * | NewInstance () const |
virtual vtkRenderer * | GetRenderer () |
virtual void | SetRenderer (vtkRenderer *ren) |
virtual vtkRenderWindow * | GetRenderWindow () |
virtual void | ResetCamera () |
virtual void | ResetCameraClippingRange () |
virtual vtkRenderWindowInteractor * | GetInteractor () |
Public Member Functions inherited from vtkView | |
vtkView * | NewInstance () const |
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) |
Public Member Functions inherited from vtkObject | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
vtkCommand * | GetCommand (unsigned long tag) |
void | RemoveObserver (vtkCommand *) |
void | RemoveObservers (unsigned long event, vtkCommand *) |
void | RemoveObservers (const char *event, vtkCommand *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
Public Member Functions inherited from vtkObjectBase | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static vtkRenderView * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderView * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkRenderViewBase | |
static vtkRenderViewBase * | New () |
static int | IsTypeOf (const char *type) |
static vtkRenderViewBase * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkView | |
static vtkView * | New () |
static int | IsTypeOf (const char *type) |
static vtkView * | SafeDownCast (vtkObjectBase *o) |
Static Public Member Functions inherited from vtkObject | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
Static Public Member Functions inherited from vtkObjectBase | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
A view containing a renderer.
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 63 of file vtkRenderView.h.
Definition at line 67 of file vtkRenderView.h.
anonymous enum |
Enumerator | |
---|---|
INTERACTION_MODE_2D | |
INTERACTION_MODE_3D | |
INTERACTION_MODE_UNKNOWN |
Definition at line 87 of file vtkRenderView.h.
anonymous enum |
Enumerator | |
---|---|
SURFACE | |
FRUSTUM |
Definition at line 129 of file vtkRenderView.h.
anonymous enum |
Enumerator | |
---|---|
NO_OVERLAP | |
ALL |
Definition at line 176 of file vtkRenderView.h.
anonymous enum |
Enumerator | |
---|---|
FREETYPE | |
QT |
Definition at line 197 of file vtkRenderView.h.
|
protected |
Whether to render on every mouse move.
|
protected |
Whether to render on every mouse move.
|
static |
|
static |
|
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.
Reimplemented in vtkGeoView, vtkGraphLayoutView, vtkGeoView2D, vtkParallelCoordinatesView, vtkHierarchicalGraphView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, and vtkIcicleView.
|
static |
|
protectedvirtual |
Reimplemented from vtkRenderViewBase.
Reimplemented in vtkGeoView, vtkGraphLayoutView, vtkGeoView2D, vtkParallelCoordinatesView, vtkHierarchicalGraphView, vtkTreeAreaView, vtkTreeRingView, vtkTreeMapView, and vtkIcicleView.
vtkRenderView* vtkRenderView::NewInstance | ( | ) | const |
|
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.
Reimplemented in vtkTreeAreaView, vtkTreeRingView, and vtkTreeMapView.
|
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 from vtkRenderViewBase.
|
virtual |
The interactor style associated with the render view.
|
virtual |
Get the interactor style associated with the render view.
|
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 from vtkRenderViewBase.
void vtkRenderView::SetInteractionMode | ( | int | mode | ) |
|
virtual |
|
inlinevirtual |
Set the interaction mode for the view. Choices are: vtkRenderView::INTERACTION_MODE_2D - 2D interactor vtkRenderView::INTERACTION_MODE_3D - 3D interactor
Definition at line 101 of file vtkRenderView.h.
|
inlinevirtual |
Set the interaction mode for the view. Choices are: vtkRenderView::INTERACTION_MODE_2D - 2D interactor vtkRenderView::INTERACTION_MODE_3D - 3D interactor
Definition at line 103 of file vtkRenderView.h.
|
virtual |
Updates the representations, then calls Render() on the render window associated with this view.
Reimplemented from vtkRenderViewBase.
Reimplemented in vtkGeoView, and vtkGeoView2D.
|
virtual |
Applies a view theme to this view.
Reimplemented in vtkParallelCoordinatesView, and vtkGeoView2D.
|
virtual |
Set the view's transform. All vtkRenderedRepresentations added to this view should use this transform.
|
virtual |
Set the view's transform. All vtkRenderedRepresentations added to this view should use this transform.
Reimplemented in vtkGeoView2D.
|
virtual |
Whether the view should display hover text.
|
virtual |
Whether the view should display hover text.
|
virtual |
Whether the view should display hover text.
|
virtual |
Whether the view should display hover text.
|
virtual |
Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.
|
virtual |
Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.
|
inline |
Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.
Definition at line 142 of file vtkRenderView.h.
|
inline |
Sets the selection mode for the render view. SURFACE selection uses vtkHardwareSelector to perform a selection of visible cells. FRUSTUM selection just creates a view frustum selection, which will select everything in the frustum.
Definition at line 143 of file vtkRenderView.h.
|
virtual |
Add labels from an input connection with an associated text property. The output must be a vtkLabelHierarchy (normally the output of vtkPointSetToLabelHierarchy).
|
virtual |
Remove labels from an input connection.
|
virtual |
Set the icon sheet to use for rendering icons.
|
virtual |
Set the icon sheet to use for rendering icons.
Set the size of each icon in the icon texture.
void vtkRenderView::SetIconSize | ( | int | [2] | ) |
Set the size of each icon in the icon texture.
|
virtual |
Set the size of each icon in the icon texture.
Set the size of each icon in the icon texture.
|
virtual |
Set the size of each icon in the icon texture.
Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.
void vtkRenderView::SetDisplaySize | ( | int | [2] | ) |
Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.
int* vtkRenderView::GetDisplaySize | ( | ) |
Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.
Set the display size of the icon (which may be different from the icon size). By default, if this value is not set, the the IconSize is used.
|
virtual |
Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).
|
virtual |
Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).
|
inlinevirtual |
Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).
Definition at line 190 of file vtkRenderView.h.
|
inlinevirtual |
Label placement mode. NO_OVERLAP uses vtkLabelPlacementMapper, which has a faster startup time and works with 2D or 3D labels. ALL displays all labels (Warning: This may cause incredibly slow render times on datasets with more than a few hundred labels).
Definition at line 192 of file vtkRenderView.h.
|
virtual |
Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.
|
virtual |
Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.
|
inlinevirtual |
Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.
Definition at line 209 of file vtkRenderView.h.
|
inlinevirtual |
Label render mode. FREETYPE uses the freetype label rendering. QT uses more advanced Qt-based label rendering.
Definition at line 211 of file vtkRenderView.h.
void vtkRenderView::SetRenderOnMouseMove | ( | bool | b | ) |
Whether to render on every mouse move.
|
virtual |
Whether to render on every mouse move.
|
virtual |
Whether to render on every mouse move.
|
virtual |
Whether to render on every mouse move.
|
protectedvirtual |
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, and vtkParallelCoordinatesView.
|
protectedvirtual |
Generates the selection based on the view event and the selection mode.
|
protectedvirtual |
Called by the view when the renderer is about to render.
Reimplemented from vtkRenderViewBase.
Reimplemented in vtkParallelCoordinatesView, vtkGeoView2D, and vtkGeoView.
|
protectedvirtual |
Called in PrepareForRendering to update the hover text.
|
protectedvirtual |
Enable or disable hovering based on DisplayHoverText ivar and interaction state.
|
protected |
Update the pick render for queries for drag selections or hover ballooons.
|
protected |
Definition at line 254 of file vtkRenderView.h.
|
protected |
Definition at line 255 of file vtkRenderView.h.
|
protected |
Definition at line 256 of file vtkRenderView.h.
|
protected |
Definition at line 257 of file vtkRenderView.h.
|
protected |
Definition at line 258 of file vtkRenderView.h.
|
protected |
Definition at line 259 of file vtkRenderView.h.
|
protected |
Definition at line 260 of file vtkRenderView.h.
|
protected |
Definition at line 262 of file vtkRenderView.h.
|
protected |
Definition at line 263 of file vtkRenderView.h.
|
protected |
Definition at line 264 of file vtkRenderView.h.
|
protected |
Definition at line 265 of file vtkRenderView.h.
|
protected |
Definition at line 267 of file vtkRenderView.h.
|
protected |
Definition at line 268 of file vtkRenderView.h.
|
protected |
Definition at line 271 of file vtkRenderView.h.
|
protected |
Definition at line 272 of file vtkRenderView.h.
|
protected |
Definition at line 273 of file vtkRenderView.h.
|
protected |
Definition at line 274 of file vtkRenderView.h.
|
protected |
Definition at line 275 of file vtkRenderView.h.
|
protected |
Definition at line 276 of file vtkRenderView.h.