1 #ifndef QUARTER_QUARTERWIDGET_H 2 #define QUARTER_QUARTERWIDGET_H 36 #include <Inventor/SbBasic.h> 43 #include <Quarter/Basic.h> 54 namespace SIM {
namespace Coin3D {
namespace Quarter {
57 const char DEFAULT_NAVIGATIONFILE [] =
"coin:///scxml/navigation/examiner.xml";
63 Q_PROPERTY(QUrl navigationModeFile READ navigationModeFile WRITE setNavigationModeFile RESET resetNavigationModeFile)
64 Q_PROPERTY(QColor backgroundColor READ backgroundColor WRITE setBackgroundColor)
65 Q_PROPERTY(
bool contextMenuEnabled READ contextMenuEnabled WRITE setContextMenuEnabled)
66 Q_PROPERTY(
bool headlightEnabled READ headlightEnabled WRITE setHeadlightEnabled)
67 Q_PROPERTY(
bool clearZBuffer READ clearZBuffer WRITE setClearZBuffer)
68 Q_PROPERTY(
bool clearWindow READ clearWindow WRITE setClearWindow)
69 Q_PROPERTY(
bool interactionModeEnabled READ interactionModeEnabled WRITE setInteractionModeEnabled)
70 Q_PROPERTY(
bool interactionModeOn READ interactionModeOn WRITE setInteractionModeOn)
72 Q_PROPERTY(
TransparencyType transparencyType READ transparencyType WRITE setTransparencyType)
73 Q_PROPERTY(
RenderMode renderMode READ renderMode WRITE setRenderMode)
74 Q_PROPERTY(
StereoMode stereoMode READ stereoMode WRITE setStereoMode)
75 Q_PROPERTY(qreal devicePixelRatio READ devicePixelRatio NOTIFY devicePixelRatioChanged)
84 explicit
QuarterWidget(QGLContext * context, QWidget * parent = 0, const
QGLWidget * sharewidget = 0, Qt::WindowFlags f = 0);
85 explicit
QuarterWidget(const QGLFormat & format, QWidget * parent = 0, const
QGLWidget * shareWidget = 0, Qt::WindowFlags f = 0);
119 TransparencyType transparencyType(
void)
const;
120 RenderMode renderMode(
void)
const;
121 StereoMode stereoMode(
void)
const;
123 void setBackgroundColor(
const QColor & color);
124 QColor backgroundColor(
void)
const;
126 qreal devicePixelRatio(
void)
const;
128 void resetNavigationModeFile(
void);
129 void setNavigationModeFile(
const QUrl & url = QUrl(DEFAULT_NAVIGATIONFILE));
130 const QUrl & navigationModeFile(
void)
const;
132 void setContextMenuEnabled(
bool yes);
133 bool contextMenuEnabled(
void)
const;
134 QMenu * getContextMenu(
void)
const;
136 bool headlightEnabled(
void)
const;
137 void setHeadlightEnabled(
bool onoff);
140 bool clearZBuffer(
void)
const;
141 void setClearZBuffer(
bool onoff);
143 bool clearWindow(
void)
const;
144 void setClearWindow(
bool onoff);
146 bool interactionModeEnabled(
void)
const;
147 void setInteractionModeEnabled(
bool onoff);
149 bool interactionModeOn(
void)
const;
150 void setInteractionModeOn(
bool onoff);
152 void setStateCursor(
const SbName & state,
const QCursor & cursor);
153 QCursor stateCursor(
const SbName & state);
155 uint32_t getCacheContextId(
void)
const;
157 virtual void setSceneGraph(
SoNode * root);
158 virtual SoNode * getSceneGraph(
void)
const;
171 virtual bool processSoEvent(
const SoEvent * event);
172 virtual QSize minimumSizeHint(
void)
const;
174 QList<QAction *> transparencyTypeActions(
void)
const;
175 QList<QAction *> stereoModeActions(
void)
const;
176 QList<QAction *> renderModeActions(
void)
const;
179 virtual void viewAll(
void);
180 virtual void seek(
void);
184 void setRenderMode(RenderMode mode);
185 void setStereoMode(StereoMode mode);
186 void setTransparencyType(TransparencyType type);
189 void devicePixelRatioChanged(qreal dev_pixel_ratio);
192 virtual void resizeGL(
int width,
int height);
193 virtual void initializeGL(
void);
194 virtual void paintGL(
void);
195 virtual void actualRedraw(
void);
196 virtual bool updateDevicePixelRatio(
void);
199 void constructor(
const QGLWidget * sharewidget);
200 friend class QuarterWidgetP;
201 class QuarterWidgetP * pimpl;
206 #endif // QUARTER_QUARTERWIDGET_H
Definition: EventFilter.h:46
SORTED_OBJECT_SORTED_TRIANGLE_BLEND
Definition: QuarterWidget.h:54
SORTED_OBJECT_SORTED_TRIANGLE_ADD