1 #ifndef COIN_SOSCENEMANAGER_H
2 #define COIN_SOSCENEMANAGER_H
27 #include <Inventor/SbVec2s.h>
39 class Superimposition;
42 typedef void SoSceneManagerRenderCB(
void * userdata,
class SoSceneManager * mgr);
49 virtual void render(
const SbBool clearwindow = TRUE,
50 const SbBool clearzbuffer = TRUE);
52 const SbBool initmatrices = TRUE,
53 const SbBool clearwindow = TRUE,
54 const SbBool clearzbuffer = TRUE);
58 virtual SbBool processEvent(
const SoEvent *
const event);
59 void reinitialize(
void);
60 void scheduleRedraw(
void);
61 virtual void setSceneGraph(
SoNode *
const sceneroot);
62 virtual SoNode * getSceneGraph(
void)
const;
63 void setWindowSize(
const SbVec2s & newsize);
64 const SbVec2s & getWindowSize(
void)
const;
65 void setSize(
const SbVec2s & newsize);
66 const SbVec2s & getSize(
void)
const;
67 void setOrigin(
const SbVec2s & newOrigin);
68 const SbVec2s & getOrigin(
void)
const;
71 void setBackgroundColor(
const SbColor & color);
72 const SbColor & getBackgroundColor(
void)
const;
73 void setBackgroundIndex(
const int index);
74 int getBackgroundIndex(
void)
const;
75 void setRGBMode(
const SbBool onOrOff);
76 SbBool isRGBMode(
void)
const;
77 virtual void activate(
void);
78 virtual void deactivate(
void);
79 void setRenderCallback(SoSceneManagerRenderCB * f,
80 void *
const userData = NULL);
81 SbBool isAutoRedraw(
void)
const;
82 void setRedrawPriority(
const uint32_t priority);
83 uint32_t getRedrawPriority(
void)
const;
84 void setAntialiasing(
const SbBool smoothing,
const int numPasses);
85 void getAntialiasing(SbBool & smoothing,
int & numPasses)
const;
93 static uint32_t getDefaultRedrawPriority(
void);
94 static void enableRealTimeUpdate(
const SbBool flag);
95 static SbBool isRealTimeUpdateEnabled(
void);
98 int isActive(
void)
const;
102 friend class SoSceneManagerP;
103 class SoSceneManagerP * pimpl;
107 #endif // !COIN_SOSCENEMANAGER_H