Go to the documentation of this file.
37 #ifndef vtkRenderView_h
38 #define vtkRenderView_h
40 #include "vtkViewsInfovisModule.h"
96 INTERACTION_MODE_UNKNOWN
100 vtkGetMacro(InteractionMode,
int);
108 { this->SetInteractionMode(INTERACTION_MODE_2D); }
110 { this->SetInteractionMode(INTERACTION_MODE_3D); }
137 vtkGetMacro(DisplayHoverText,
bool);
138 vtkBooleanMacro(DisplayHoverText,
bool);
154 vtkSetClampMacro(SelectionMode,
int, 0, 1);
155 vtkGetMacro(SelectionMode,
int);
184 vtkSetVector2Macro(IconSize,
int);
185 vtkGetVector2Macro(IconSize,
int);
193 vtkSetVector2Macro(DisplaySize,
int);
215 { this->SetLabelPlacementMode(NO_OVERLAP); }
217 { this->SetLabelPlacementMode(ALL); }
235 { this->SetLabelRenderMode(FREETYPE); }
237 { this->SetLabelRenderMode(QT); }
245 vtkGetMacro(RenderOnMouseMove,
bool);
246 vtkBooleanMacro(RenderOnMouseMove,
bool);
259 void* callData)
override;
virtual void SetInteractionModeTo2D()
Set the interaction mode for the view.
draw vtkPolyData onto the image plane
A view containing a renderer.
virtual void SetLabelPlacementModeToNoOverlap()
perform mathematical operations on data in field data arrays
virtual void SetIconTexture(vtkTexture *texture)
Set the icon sheet to use for rendering icons.
void SetRenderOnMouseMove(bool b)
Whether to render on every mouse move.
actor that draws 2D data with texture support
void Render() override
Updates the representations, then calls Render() on the render window associated with this view.
abstract base class for most VTK objects
Places and renders non-overlapping labels.
void UpdatePickRender()
Update the pick render for queries for drag selections or hover ballooons.
virtual void SetInteractionModeTo3D()
data object that represents a "selection" in VTK.
an abstract superclass for classes observing events invoked by vtkRenderWindowInteractor
void ProcessEvents(vtkObject *caller, unsigned long eventId, void *callData) override
Called to process events.
virtual int GetLabelPlacementMode()
void SetInteractor(vtkRenderWindowInteractor *interactor) override
The render window interactor.
vtkSmartPointer< vtkHardwareSelector > Selector
Sets theme colors for a graphical view.
virtual vtkInteractorObserver * GetInteractorStyle()
Get the interactor style associated with the render view.
vtkSmartPointer< vtkRenderer > LabelRenderer
virtual void SetLabelPlacementModeToAll()
handles properties associated with a texture map
vtkSmartPointer< vtkTexturedActor2D > LabelActor
virtual void UpdateHoverText()
Called in PrepareForRendering to update the hover text.
bool PickRenderNeedsUpdate
virtual void UpdateHoverWidgetState()
Enable or disable hovering based on DisplayHoverText ivar and interaction state.
virtual void SetDisplayHoverText(bool b)
Whether the view should display hover text.
a simple class to control print indentation
static vtkRenderView * New()
void SetInteractionMode(int mode)
void SetSelectionModeToFrustum()
A base view containing a renderer.
void PrepareForRendering() override
Called by the view when the renderer is about to render.
platform-independent render window interaction including picking and frame rate control.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void SetLabelPlacementMode(int mode)
Label placement mode.
void GetDisplaySize(int &dsx, int &dsy)
represent the vtkBalloonWidget
represent text properties.
virtual void SetInteractorStyle(vtkInteractorObserver *style)
The interactor style associated with the render view.
a actor that draws 2D data
virtual void SetLabelRenderModeToQt()
vtkSmartPointer< vtkBalloonRepresentation > Balloon
virtual void SetLabelRenderMode(int mode)
Label render mode.
draw text labels at 2D dataset points
Proxy object to connect input/output ports.
~vtkRenderView() override
virtual void RemoveLabels(vtkAlgorithmOutput *conn)
Remove labels from an input connection.
virtual void SetTransform(vtkAbstractTransform *transform)
Set the view's transform.
virtual int GetLabelRenderMode()
create a window for renderers to draw into
virtual void GenerateSelection(void *callData, vtkSelection *selection)
Generates the selection based on the view event and the selection mode.
void SetSelectionModeToSurface()
virtual void AddLabels(vtkAlgorithmOutput *conn)
Add labels from an input connection with an associated text property.
void SetRenderWindow(vtkRenderWindow *win) override
Set the render window for this view.
vtkSmartPointer< vtkHoverWidget > HoverWidget
virtual void SetLabelRenderModeToFreetype()
vtkAbstractTransform * Transform
vtkSmartPointer< vtkLabelPlacementMapper > LabelPlacementMapper
void ApplyViewTheme(vtkViewTheme *theme) override
Applies a view theme to this view.