1#ifndef SOQT_RENDERAREA_H
2#define SOQT_RENDERAREA_H
38#include <Inventor/SbColor.h>
39#include <Inventor/SbViewportRegion.h>
40#include <Inventor/actions/SoGLRenderAction.h>
41#include <Inventor/SoSceneManager.h>
42#if HAVE_SOSCENEMANAGER_GETBACKGROUNDCOLORRGBA
43#include <Inventor/SbColorRGBA.h>
46#include <Inventor/Qt/SoQtGLWidget.h>
58typedef SbBool SoQtRenderAreaEventCB(
void * closure, QEvent * event);
67 const char * name = NULL,
69 SbBool mouseInput = TRUE,
70 SbBool keyboardInput = TRUE);
73 virtual void setSceneGraph(
SoNode * scene);
74 virtual SoNode * getSceneGraph(
void);
75 void setOverlaySceneGraph(
SoNode * scene);
76 SoNode * getOverlaySceneGraph(
void);
78 void setBackgroundColor(
const SbColor & color);
79 const SbColor & getBackgroundColor(
void)
const;
80#if HAVE_SOSCENEMANAGER_GETBACKGROUNDCOLORRGBA
81 void setBackgroundColorRGBA(
const SbColorRGBA & color);
82 const SbColorRGBA & getBackgroundColorRGBA(
void)
const;
84 void setBackgroundIndex(
int idx);
85 int getBackgroundIndex(
void)
const;
86 void setOverlayBackgroundIndex(
int idx);
87 int getOverlayBackgroundIndex(
void)
const;
88 void setColorMap(
int start,
int num,
const SbColor * colors);
89 void setOverlayColorMap(
int start,
int num,
const SbColor * colors);
94 void setAntialiasing(SbBool smoothing,
int numPasses);
95 void getAntialiasing(SbBool & smoothing,
int & numPasses)
const;
96 void setClearBeforeRender(SbBool enable, SbBool zbEnable = TRUE);
97 SbBool isClearBeforeRender(
void)
const;
98 SbBool isClearZBufferBeforeRender(
void)
const;
99 void setClearBeforeOverlayRender(SbBool enable);
100 SbBool isClearBeforeOverlayRender(
void)
const;
101 void setAutoRedraw(SbBool enable);
102 SbBool isAutoRedraw(
void)
const;
103 void setRedrawPriority(uint32_t priority);
104 uint32_t getRedrawPriority(
void)
const;
105 static uint32_t getDefaultRedrawPriority(
void);
107 void renderOverlay(
void);
108 void scheduleRedraw(
void);
109 void scheduleOverlayRedraw(
void);
110 void redrawOnSelectionChange(
SoSelection * selection);
111 void redrawOverlayOnSelectionChange(
SoSelection * selection);
112 void setEventCallback(SoQtRenderAreaEventCB * func,
void * user = NULL);
122 SbBool sendSoEvent(
const SoEvent * event);
133 SbBool keyboardInput,
136 virtual void redraw(
void);
137 virtual void actualRedraw(
void);
139 virtual void actualOverlayRedraw(
void);
141 virtual SbBool processSoEvent(
const SoEvent *
const event);
158 class SoQtRenderAreaP * pimpl;
159 friend class SoQtRenderAreaP;
virtual const char * getDefaultTitle(void) const
Definition SoQtComponentCommon.cpp:312
virtual const char * getDefaultWidgetName(void) const
Definition SoQtComponentCommon.cpp:299
virtual const char * getDefaultIconTitle(void) const
Definition SoQtComponentCommon.cpp:324
virtual void afterRealizeHook(void)
Definition SoQtComponent.cpp:913
The SoQtDevice class is the base class for the translation devices.
Definition SoQtDevice.h:77
The SoQtRenderArea class adds scene graph handling and event management.
Definition SoQtRenderArea.h:62