75 Q_PROPERTY(QUrl navigationModeFile READ navigationModeFile WRITE setNavigationModeFile RESET resetNavigationModeFile)
76 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
77 Q_PROPERTY(
bool contextMenuEnabled READ contextMenuEnabled WRITE setContextMenuEnabled)
78 Q_PROPERTY(
bool headlightEnabled READ headlightEnabled WRITE setHeadlightEnabled)
79 Q_PROPERTY(
bool clearZBuffer READ clearZBuffer WRITE setClearZBuffer)
80 Q_PROPERTY(
bool clearWindow READ clearWindow WRITE setClearWindow)
81 Q_PROPERTY(
bool interactionModeEnabled READ interactionModeEnabled WRITE setInteractionModeEnabled)
82 Q_PROPERTY(
bool interactionModeOn READ interactionModeOn WRITE setInteractionModeOn)
84 Q_PROPERTY(
TransparencyType transparencyType READ transparencyType WRITE setTransparencyType)
85 Q_PROPERTY(
RenderMode renderMode READ renderMode WRITE setRenderMode)
86 Q_PROPERTY(
StereoMode stereoMode READ stereoMode WRITE setStereoMode)
87 Q_PROPERTY(qreal devicePixelRatio READ devicePixelRatio NOTIFY devicePixelRatioChanged)
95#if QT_VERSION >= 0x050F00
96 explicit QuarterWidget(QWidget * parent = 0,
const QUARTER_GL_WIDGET * sharewidget = 0, Qt::WindowFlags f = Qt::WindowFlags());
97 explicit QuarterWidget(QUARTER_GL_CONTEXT * context, QWidget * parent = 0,
const QUARTER_GL_WIDGET * sharewidget = 0, Qt::WindowFlags f = Qt::WindowFlags());
98 explicit QuarterWidget(
const QUARTER_GL_FORMAT & format, QWidget * parent = 0,
const QUARTER_GL_WIDGET * shareWidget = 0, Qt::WindowFlags f = Qt::WindowFlags());
100 explicit QuarterWidget(QWidget * parent = 0,
const QUARTER_GL_WIDGET * sharewidget = 0, Qt::WindowFlags f = 0);
101 explicit QuarterWidget(QUARTER_GL_CONTEXT * context, QWidget* parent = 0,
const QUARTER_GL_WIDGET * sharewidget = 0, Qt::WindowFlags f = 0);
102 explicit QuarterWidget(
const QUARTER_GL_FORMAT & format, QWidget * parent = 0,
const QUARTER_GL_WIDGET * shareWidget = 0, Qt::WindowFlags f = 0);
107 SCREEN_DOOR = SoGLRenderAction::SCREEN_DOOR,
108 ADD = SoGLRenderAction::ADD,
109 DELAYED_ADD = SoGLRenderAction::DELAYED_ADD,
110 SORTED_OBJECT_ADD = SoGLRenderAction::SORTED_OBJECT_ADD,
111 BLEND = SoGLRenderAction::BLEND,
112 DELAYED_BLEND = SoGLRenderAction::DELAYED_BLEND,
113 SORTED_OBJECT_BLEND = SoGLRenderAction::SORTED_OBJECT_BLEND,
114 SORTED_OBJECT_SORTED_TRIANGLE_ADD = SoGLRenderAction::SORTED_OBJECT_SORTED_TRIANGLE_ADD,
115 SORTED_OBJECT_SORTED_TRIANGLE_BLEND = SoGLRenderAction::SORTED_OBJECT_SORTED_TRIANGLE_BLEND,
116 NONE = SoGLRenderAction::NONE,
117 SORTED_LAYERS_BLEND = SoGLRenderAction::SORTED_LAYERS_BLEND
121 AS_IS = SoRenderManager::AS_IS,
122 WIREFRAME = SoRenderManager::WIREFRAME,
123 WIREFRAME_OVERLAY = SoRenderManager::WIREFRAME_OVERLAY,
124 POINTS = SoRenderManager::POINTS,
125 HIDDEN_LINE = SoRenderManager::HIDDEN_LINE,
126 BOUNDING_BOX = SoRenderManager::BOUNDING_BOX
130 MONO = SoRenderManager::MONO,
131 ANAGLYPH = SoRenderManager::ANAGLYPH,
132 QUAD_BUFFER = SoRenderManager::QUAD_BUFFER,
133 INTERLEAVED_ROWS = SoRenderManager::INTERLEAVED_ROWS,
134 INTERLEAVED_COLUMNS = SoRenderManager::INTERLEAVED_COLUMNS
137 TransparencyType transparencyType(
void)
const;
138 RenderMode renderMode(
void)
const;
139 StereoMode stereoMode(
void)
const;
141 void setBackgroundColor(
const QColor & color);
142 QColor backgroundColor(
void)
const;
144 qreal devicePixelRatio(
void)
const;
146 void resetNavigationModeFile(
void);
147 void setNavigationModeFile(
const QUrl & url = QUrl(DEFAULT_NAVIGATIONFILE));
148 const QUrl & navigationModeFile(
void)
const;
149 void setupDefaultCursors();
151 void setContextMenuEnabled(
bool yes);
152 bool contextMenuEnabled(
void)
const;
153 QMenu * getContextMenu(
void)
const;
155 bool headlightEnabled(
void)
const;
156 void setHeadlightEnabled(
bool onoff);
157 SoDirectionalLight * getHeadlight(
void);
159 bool clearZBuffer(
void)
const;
160 void setClearZBuffer(
bool onoff);
162 bool clearWindow(
void)
const;
163 void setClearWindow(
bool onoff);
165 bool interactionModeEnabled(
void)
const;
166 void setInteractionModeEnabled(
bool onoff);
168 bool interactionModeOn(
void)
const;
169 void setInteractionModeOn(
bool onoff);
171 void setStateCursor(
const SbName & state,
const QCursor & cursor);
172 QCursor stateCursor(
const SbName & state);
174 uint32_t getCacheContextId(
void)
const;
176 virtual void setSceneGraph(SoNode * root);
177 virtual SoNode * getSceneGraph(
void)
const;
179 void setSoEventManager(SoEventManager * manager);
180 SoEventManager * getSoEventManager(
void)
const;
182 void setSoRenderManager(SoRenderManager * manager);
183 SoRenderManager * getSoRenderManager(
void)
const;
187 void addStateMachine(SoScXMLStateMachine * statemachine);
188 void removeStateMachine(SoScXMLStateMachine * statemachine);
190 virtual bool processSoEvent(
const SoEvent * event);
191 virtual QSize minimumSizeHint(
void)
const;
193 QList<QAction *> transparencyTypeActions(
void)
const;
194 QList<QAction *> stereoModeActions(
void)
const;
195 QList<QAction *> renderModeActions(
void)
const;
198 virtual void viewAll(
void);
199 virtual void seek(
void);
203 void setRenderMode(RenderMode mode);
204 void setStereoMode(StereoMode mode);
205 void setTransparencyType(TransparencyType type);
208 void devicePixelRatioChanged(qreal dev_pixel_ratio);
211 virtual void resizeGL(
int width,
int height);
212 virtual void initializeGL(
void);
213 virtual void paintGL(
void);
214 virtual void actualRedraw(
void);
215 virtual bool updateDevicePixelRatio(
void);
218 void constructor(
const QUARTER_GL_WIDGET * sharewidget);
219 friend class QuarterWidgetP;
220 class QuarterWidgetP * pimpl;