39 #ifndef __vtkRenderView_h
40 #define __vtkRenderView_h
42 #include "vtkViewsInfovisModule.h"
44 #include "vtkSmartPointer.h"
46 class vtkAbstractTransform;
48 class vtkAlgorithmOutput;
50 class vtkBalloonRepresentation;
51 class vtkDynamic2DLabelMapper;
52 class vtkHardwareSelector;
54 class vtkInteractorObserver;
55 class vtkLabelPlacementMapper;
56 class vtkPolyDataMapper2D;
58 class vtkTextProperty;
60 class vtkTexturedActor2D;
61 class vtkTransformCoordinateSystems;
68 void PrintSelf(ostream& os, vtkIndent indent);
73 virtual void SetInteractor(vtkRenderWindowInteractor *interactor);
76 virtual void SetInteractorStyle(vtkInteractorObserver* style);
79 virtual vtkInteractorObserver* GetInteractorStyle();
91 INTERACTION_MODE_UNKNOWN
94 void SetInteractionMode(
int mode);
95 vtkGetMacro(InteractionMode,
int);
102 { this->SetInteractionMode(INTERACTION_MODE_2D); }
104 { this->SetInteractionMode(INTERACTION_MODE_3D); }
117 virtual void SetTransform(vtkAbstractTransform* transform);
118 vtkGetObjectMacro(Transform, vtkAbstractTransform);
123 virtual void SetDisplayHoverText(
bool b);
124 vtkGetMacro(DisplayHoverText,
bool);
125 vtkBooleanMacro(DisplayHoverText,
bool);
140 vtkSetClampMacro(SelectionMode,
int, 0, 1);
141 vtkGetMacro(SelectionMode,
int);
149 virtual void AddLabels(vtkAlgorithmOutput* conn);
152 virtual void RemoveLabels(vtkAlgorithmOutput* conn);
156 virtual void SetIconTexture(vtkTexture* texture);
157 vtkGetObjectMacro(IconTexture, vtkTexture);
162 vtkSetVector2Macro(IconSize,
int);
163 vtkGetVector2Macro(IconSize,
int);
170 vtkSetVector2Macro(DisplaySize,
int);
171 int* GetDisplaySize();
172 void GetDisplaySize(
int &dsx,
int &dsy);
188 virtual void SetLabelPlacementMode(
int mode);
189 virtual int GetLabelPlacementMode();
191 { this->SetLabelPlacementMode(NO_OVERLAP); }
193 { this->SetLabelPlacementMode(ALL); }
207 virtual void SetLabelRenderMode(
int mode);
208 virtual int GetLabelRenderMode();
210 { this->SetLabelRenderMode(FREETYPE); }
212 { this->SetLabelRenderMode(QT); }
217 void SetRenderOnMouseMove(
bool b);
218 vtkGetMacro(RenderOnMouseMove,
bool);
219 vtkBooleanMacro(RenderOnMouseMove,
bool);
229 virtual void ProcessEvents(vtkObject* caller,
unsigned long eventId,
236 virtual void GenerateSelection(
237 void* callData, vtkSelection* selection);
244 virtual void UpdateHoverText();
248 virtual void UpdateHoverWidgetState();
252 void UpdatePickRender();
272 vtkSmartPointer<vtkBalloonRepresentation>
Balloon;
virtual void ApplyViewTheme(vtkViewTheme *vtkNotUsed(theme))
void SetSelectionModeToFrustum()
perform mathematical operations on data in field data arrays
virtual void SetRenderWindow(vtkRenderWindow *win)
vtkSmartPointer< vtkBalloonRepresentation > Balloon
virtual void SetLabelPlacementModeToAll()
virtual void SetInteractionModeTo2D()
A base view containing a renderer.
virtual void SetInteractor(vtkRenderWindowInteractor *)
void SetSelectionModeToSurface()
Sets theme colors for a graphical view.
virtual void ProcessEvents(vtkObject *caller, unsigned long eventId, void *callData)
vtkAbstractTransform * Transform
vtkSmartPointer< vtkLabelPlacementMapper > LabelPlacementMapper
virtual void SetLabelPlacementModeToNoOverlap()
vtkSmartPointer< vtkHoverWidget > HoverWidget
virtual void SetLabelRenderModeToFreetype()
virtual void SetLabelRenderModeToQt()
void PrintSelf(ostream &os, vtkIndent indent)
bool PickRenderNeedsUpdate
virtual void PrepareForRendering()
vtkSmartPointer< vtkHardwareSelector > Selector
vtkSmartPointer< vtkRenderer > LabelRenderer
A view containing a renderer.
vtkSmartPointer< vtkTexturedActor2D > LabelActor
virtual void SetInteractionModeTo3D()
static vtkRenderViewBase * New()