1 #ifndef SOQT_RENDERAREA_H 2 #define SOQT_RENDERAREA_H 29 #include <Inventor/SbColor.h> 30 #include <Inventor/SbViewportRegion.h> 31 #include <Inventor/actions/SoGLRenderAction.h> 32 #include <Inventor/SoSceneManager.h> 34 #include <Inventor/Qt/SoQtGLWidget.h> 44 class SoQtRenderAreaP;
46 typedef SbBool SoQtRenderAreaEventCB(
void * closure, QEvent * event);
55 const char * name = NULL,
57 SbBool mouseInput = TRUE,
58 SbBool keyboardInput = TRUE);
61 virtual void setSceneGraph(SoNode * scene);
62 virtual SoNode * getSceneGraph(
void);
63 void setOverlaySceneGraph(SoNode * scene);
64 SoNode * getOverlaySceneGraph(
void);
66 void setBackgroundColor(
const SbColor & color);
67 const SbColor & getBackgroundColor(
void)
const;
68 void setBackgroundIndex(
int idx);
69 int getBackgroundIndex(
void)
const;
70 void setOverlayBackgroundIndex(
int idx);
71 int getOverlayBackgroundIndex(
void)
const;
72 void setColorMap(
int start,
int num,
const SbColor * colors);
73 void setOverlayColorMap(
int start,
int num,
const SbColor * colors);
74 void setViewportRegion(
const SbViewportRegion & newRegion);
75 const SbViewportRegion & getViewportRegion(
void)
const;
76 void setTransparencyType(SoGLRenderAction::TransparencyType type);
77 SoGLRenderAction::TransparencyType getTransparencyType(
void)
const;
78 void setAntialiasing(SbBool smoothing,
int numPasses);
79 void getAntialiasing(SbBool & smoothing,
int & numPasses)
const;
80 void setClearBeforeRender(SbBool enable, SbBool zbEnable = TRUE);
81 SbBool isClearBeforeRender(
void)
const;
82 SbBool isClearZBufferBeforeRender(
void)
const;
83 void setClearBeforeOverlayRender(SbBool enable);
84 SbBool isClearBeforeOverlayRender(
void)
const;
85 void setAutoRedraw(SbBool enable);
86 SbBool isAutoRedraw(
void)
const;
87 void setRedrawPriority(uint32_t priority);
88 uint32_t getRedrawPriority(
void)
const;
89 static uint32_t getDefaultRedrawPriority(
void);
91 void renderOverlay(
void);
92 void scheduleRedraw(
void);
93 void scheduleOverlayRedraw(
void);
94 void redrawOnSelectionChange(SoSelection * selection);
95 void redrawOverlayOnSelectionChange(SoSelection * selection);
96 void setEventCallback(SoQtRenderAreaEventCB * func,
void * user = NULL);
97 void setSceneManager(SoSceneManager * manager);
98 SoSceneManager * getSceneManager(
void)
const;
99 void setOverlaySceneManager(SoSceneManager * manager);
100 SoSceneManager * getOverlaySceneManager(
void)
const;
101 void setGLRenderAction(SoGLRenderAction * action);
102 SoGLRenderAction * getGLRenderAction(
void)
const;
103 void setOverlayGLRenderAction(SoGLRenderAction * action);
104 SoGLRenderAction * getOverlayGLRenderAction(
void)
const;
106 SbBool sendSoEvent(
const SoEvent * event);
117 SbBool keyboardInput,
120 virtual void redraw(
void);
121 virtual void actualRedraw(
void);
123 virtual void actualOverlayRedraw(
void);
125 virtual SbBool processSoEvent(
const SoEvent *
const event);
142 class SoQtRenderAreaP * pimpl;
143 friend class SoQtRenderAreaP;
148 #endif // ! SOQT_RENDERAREA_H
virtual const char * getDefaultIconTitle(void) const
Definition: SoQtComponentCommon.cpp:315
The SoQtDevice class is the base class for the translation devices.The SoQt device classes provide gl...
Definition: SoQtDevice.h:64
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtComponentCommon.cpp:290
The SoQtRenderArea class adds scenegraph handling and event management.The SoQtRenderArea class is a ...
Definition: SoQtRenderArea.h:50
virtual const char * getDefaultTitle(void) const
Definition: SoQtComponentCommon.cpp:303
virtual void afterRealizeHook(void)
Definition: SoQtComponent.cpp:888