1 #ifndef SOXT_RENDERAREA_H 2 #define SOXT_RENDERAREA_H 38 #include <Inventor/SbColor.h> 39 #include <Inventor/SbViewportRegion.h> 40 #include <Inventor/actions/SoGLRenderAction.h> 41 #include <Inventor/SoSceneManager.h> 43 #include <Inventor/Xt/SoXtGLWidget.h> 53 class SoXtRenderAreaP;
55 typedef SbBool SoXtRenderAreaEventCB(
void * closure, XAnyEvent* 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);
83 void setViewportRegion(
const SbViewportRegion & newRegion);
84 const SbViewportRegion & getViewportRegion(
void)
const;
85 void setTransparencyType(SoGLRenderAction::TransparencyType type);
86 SoGLRenderAction::TransparencyType getTransparencyType(
void)
const;
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(SoXtRenderAreaEventCB * func,
void * user = NULL);
106 void setSceneManager(SoSceneManager * manager);
107 SoSceneManager * getSceneManager(
void)
const;
108 void setOverlaySceneManager(SoSceneManager * manager);
109 SoSceneManager * getOverlaySceneManager(
void)
const;
110 void setGLRenderAction(SoGLRenderAction * action);
111 SoGLRenderAction * getGLRenderAction(
void)
const;
112 void setOverlayGLRenderAction(SoGLRenderAction * action);
113 SoGLRenderAction * getOverlayGLRenderAction(
void)
const;
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 SoXtRenderAreaP * pimpl;
152 friend class SoXtRenderAreaP;
157 #endif // ! SOXT_RENDERAREA_H
virtual void afterRealizeHook(void)
Definition: SoXtComponent.cpp:667
The SoXtRenderArea class adds scenegraph handling and event management.
Definition: SoXtRenderArea.h:59
virtual const char * getDefaultWidgetName(void) const
Definition: SoXtComponentCommon.cpp:299
virtual const char * getDefaultIconTitle(void) const
Definition: SoXtComponentCommon.cpp:324
The SoXtDevice class is the base class for the translation devices.
Definition: SoXtDevice.h:73
virtual const char * getDefaultTitle(void) const
Definition: SoXtComponentCommon.cpp:312