1 #ifndef SOWIN_RENDERAREA_H 2 #define SOWIN_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/Win/SoWinGLWidget.h> 56 class SoWinRenderAreaP;
58 typedef SbBool SoWinRenderAreaEventCB(
void * closure, MSG* 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(SoWinRenderAreaEventCB * 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 SoWinRenderAreaP * pimpl;
159 friend class SoWinRenderAreaP;
164 #endif // ! SOWIN_RENDERAREA_H virtual void afterRealizeHook(void)
Definition: SoWinComponent.cpp:604
virtual const char * getDefaultTitle(void) const
Definition: SoWinComponentCommon.cpp:312
virtual const char * getDefaultWidgetName(void) const
Definition: SoWinComponentCommon.cpp:299
The SoWinRenderArea class adds scene graph handling and event management.
Definition: SoWinRenderArea.h:62
The SoWinDevice class is the base class for the translation devices.
Definition: SoWinDevice.h:77
virtual const char * getDefaultIconTitle(void) const
Definition: SoWinComponentCommon.cpp:324