VTK  9.2.6
vtkQWidgetRepresentation.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkQWidgetRepresentation.h
5
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13
14=========================================================================*/
24
25#ifndef vtkQWidgetRepresentation_h
26#define vtkQWidgetRepresentation_h
27
28#include "vtkDeprecation.h" // For VTK_DEPRECATED_IN_9_2_0
29#include "vtkGUISupportQtModule.h" // For export macro
31
32class QWidget;
33class vtkActor;
34class vtkCellPicker;
36class vtkPlaneSource;
40
41class VTKGUISUPPORTQT_EXPORT vtkQWidgetRepresentation : public vtkWidgetRepresentation
42{
43public:
48
50
54 void PrintSelf(ostream& os, vtkIndent indent) override;
56
62
67 void UpdatePlacement(void);
68
70
73 void PlaceWidget(double bounds[6]) override;
74 void BuildRepresentation() override;
76 unsigned long event, void* calldata, int modify = 0) override;
78
80
83 double* GetBounds() VTK_SIZEHINT(6) override;
84 void GetActors(vtkPropCollection* pc) override;
90
91 // Manage the state of the widget
97#if !defined(VTK_LEGACY_REMOVE)
98 VTK_DEPRECATED_IN_9_2_0("because leading underscore is reserved")
100#endif
101
103
112 vtkSetClampMacro(InteractionState, int, Outside, Inside);
114
118 void SetWidget(QWidget* w);
119
124
129 vtkGetObjectMacro(PlaneSource, vtkPlaneSource);
130
135 vtkGetVector2Macro(WidgetCoordinates, float);
136
137protected:
140
142
148
150
151 // Register internal Pickers within PickingManager
152 void RegisterPickers() override;
153
154private:
156 void operator=(const vtkQWidgetRepresentation&) = delete;
157};
158
159#endif
define the API for widget / widget representation
represents an object (geometry & properties) in a rendered scene
Definition vtkActor.h:46
ray-cast cell picker for all kinds of Prop3Ds
a simple class to control print indentation
Definition vtkIndent.h:34
OpenGL texture map.
create an array of quadrilaterals located in a plane
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
an ordered list of Props
vtkPolyDataAlgorithm * GetPolyDataAlgorithm()
Satisfies superclass API.
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Methods supporting the rendering process.
static vtkQWidgetRepresentation * New()
Instantiate the class.
void GetActors(vtkPropCollection *pc) override
Methods supporting the rendering process.
void ReleaseGraphicsResources(vtkWindow *) override
Methods supporting the rendering process.
void PlaceWidget(double bounds[6]) override
Methods to interface with the vtkImplicitPlaneWidget2.
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
InteractionStateType _InteractionState
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods supporting the rendering process.
void BuildRepresentation() override
Methods to interface with the vtkImplicitPlaneWidget2.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
void SetWidget(QWidget *w)
Set the QWidget this representation will render.
void UpdatePlacement(void)
Satisfies the superclass API.
int RenderOpaqueGeometry(vtkViewport *) override
Methods supporting the rendering process.
double * GetBounds() override
Methods supporting the rendering process.
int ComputeComplexInteractionState(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata, int modify=0) override
Methods to interface with the vtkImplicitPlaneWidget2.
~vtkQWidgetRepresentation() override
Allows a QWidget to be used as a texture in VTK with OpenGL.
platform-independent render window interaction including picking and frame rate control.
abstract specification for Viewports
Definition vtkViewport.h:50
window superclass for vtkRenderWindow
Definition vtkWindow.h:39
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_DEPRECATED_IN_9_2_0(reason)
#define VTK_SIZEHINT(...)