PDA

View Full Version : QGLGraphicsViewportItem and 3D scene map editor



auric
20th September 2010, 03:52
I’m developing a robot steer simulator. There must be a simple 3D scene map editor. It must have an availability to add simple figures such as cube, pyramid cone etc. Map should be viewed in 2 different positions of camera in same time (not necessary but desirable). What should I chose for it? QGLGraphicsViewportItem or QGLView and QSceneNode? What are the benefits of QGLGraphicsViewportItem?

tbscope
20th September 2010, 06:52
Please define:
QGLGraphicsViewportItem
QGLView
QSceneNode

auric
20th September 2010, 11:37
Please define:
QGLGraphicsViewportItem
QGLView
QSceneNode

There are classes of developing Qt/3D project.

tbscope
20th September 2010, 17:44
Definition: failed!

Please, pretty please, explain everything. Do not expect people to know those classes. These are not mainstream Qt classes.
So, please, provide at least a link to the documentation of these classes.

auric
20th September 2010, 22:53
Definition: failed!

Please, pretty please, explain everything. Do not expect people to know those classes. These are not mainstream Qt classes.
So, please, provide at least a link to the documentation of these classes.

If you don't know any about this classes, so how you can help?
There are docs:
QGLGraphicsViewportItem (http://doc.qt.nokia.com/qt3d-snapshot/qglgraphicsviewportitem.html)
QGLView (http://doc.qt.nokia.com/qt3d-snapshot/qglview.html)
QGLSceneNode (http://doc.qt.nokia.com/qt3d-snapshot/qglscenenode.html)
Qt/3D Reference Documentation (http://doc.qt.nokia.com/qt3d-snapshot/index.html)

tbscope
21st September 2010, 05:40
If you don't know any about this classes, so how you can help?
Thank you for noticing.

Now your question, and this answer is my personal opinion.
Use a graphics view when you also want to include widgets or other items in your gl scene. The graphics view contains several convenience classes to do this easiliy.
If you don't need that, use a QGLView.