1 #ifndef SOQT_RENDERAREA_H 2 #define SOQT_RENDERAREA_H 38 #include <Inventor/SbColor.h> 39 #include <Inventor/SbViewportRegion.h> 43 #include <Inventor/Qt/SoQtGLWidget.h> 53 class SoQtRenderAreaP;
55 typedef SbBool SoQtRenderAreaEventCB(
void * closure, QEvent* event);
64 const char * name = NULL,
66 SbBool mouseInput = TRUE,
67 SbBool keyboardInput = TRUE);
70 virtual void setSceneGraph(
SoNode * scene);
71 virtual SoNode * getSceneGraph(
void);
72 void setOverlaySceneGraph(
SoNode * scene);
73 SoNode * getOverlaySceneGraph(
void);
75 void setBackgroundColor(
const SbColor & color);
76 const SbColor & getBackgroundColor(
void)
const;
77 void setBackgroundIndex(
int idx);
78 int getBackgroundIndex(
void)
const;
79 void setOverlayBackgroundIndex(
int idx);
80 int getOverlayBackgroundIndex(
void)
const;
81 void setColorMap(
int start,
int num,
const SbColor * colors);
82 void setOverlayColorMap(
int start,
int num,
const SbColor * colors);
87 void setAntialiasing(SbBool smoothing,
int numPasses);
88 void getAntialiasing(SbBool & smoothing,
int & numPasses)
const;
89 void setClearBeforeRender(SbBool enable, SbBool zbEnable = TRUE);
90 SbBool isClearBeforeRender(
void)
const;
91 SbBool isClearZBufferBeforeRender(
void)
const;
92 void setClearBeforeOverlayRender(SbBool enable);
93 SbBool isClearBeforeOverlayRender(
void)
const;
94 void setAutoRedraw(SbBool enable);
95 SbBool isAutoRedraw(
void)
const;
96 void setRedrawPriority(uint32_t priority);
97 uint32_t getRedrawPriority(
void)
const;
98 static uint32_t getDefaultRedrawPriority(
void);
100 void renderOverlay(
void);
101 void scheduleRedraw(
void);
102 void scheduleOverlayRedraw(
void);
103 void redrawOnSelectionChange(
SoSelection * selection);
104 void redrawOverlayOnSelectionChange(
SoSelection * selection);
105 void setEventCallback(SoQtRenderAreaEventCB * func,
void * user = NULL);
115 SbBool sendSoEvent(
const SoEvent * event);
126 SbBool keyboardInput,
129 virtual void redraw(
void);
130 virtual void actualRedraw(
void);
132 virtual void actualOverlayRedraw(
void);
134 virtual SbBool processSoEvent(
const SoEvent *
const event);
151 class SoQtRenderAreaP * pimpl;
152 friend class SoQtRenderAreaP;
157 #endif // ! SOQT_RENDERAREA_H
virtual const char * getDefaultIconTitle(void) const
Definition: SoQtComponentCommon.cpp:324
The SoQtDevice class is the base class for the translation devices.
Definition: SoQtDevice.h:73
virtual const char * getDefaultWidgetName(void) const
Definition: SoQtComponentCommon.cpp:299
The SoQtRenderArea class adds scenegraph handling and event management.
Definition: SoQtRenderArea.h:59
virtual const char * getDefaultTitle(void) const
Definition: SoQtComponentCommon.cpp:312
virtual void afterRealizeHook(void)
Definition: SoQtComponent.cpp:897