1 #ifndef SOWIN_RENDERAREA_H 2 #define SOWIN_RENDERAREA_H 38 #include <Inventor/SbColor.h> 39 #include <Inventor/SbViewportRegion.h> 43 #include <Inventor/Win/SoWinGLWidget.h> 53 class SoWinRenderAreaP;
55 typedef SbBool SoWinRenderAreaEventCB(
void * closure, MSG* 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(SoWinRenderAreaEventCB * 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 SoWinRenderAreaP * pimpl;
152 friend class SoWinRenderAreaP;
157 #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 scenegraph handling and event management.
Definition: SoWinRenderArea.h:59
The SoWinDevice class is the base class for the translation devices.
Definition: SoWinDevice.h:73
virtual const char * getDefaultIconTitle(void) const
Definition: SoWinComponentCommon.cpp:324