Creates a QWidget that encapsulates an Open Inventor viewer. More...
#include <Inventor/Qt/SoQtWrapper.h>
Public Types | |
enum | ViewerType { RENDER_AREA, EXAMINER, WALK, FLY, PLANE } |
Public Slots | |
void | setDecoration (bool on) |
Public Member Functions | |
SoQtWrapper (QWidget *parent=0, const char *name=0, ViewerType type=SoQtWrapper::EXAMINER) | |
ViewerType | getViewerType () const |
SoQtRenderArea * | getViewer () const |
bool | isDecoration () const |
This class creates a QWidget that encapsulates an Open Inventor viewer. This viewer can either be an SoQtRenderArea or one of the following viewers: SoQtExaminerViewer, SoQtWalkViewer, SoQtFlyViewer, or SoQtPlaneViewer. The primary purpose of this class is to be used in the Qt Designer program as a plugin.
It also includes a small scene graph that will be unref'd automatically at first setSceneGraph(). This scene graph is only used in the Qt Designer plugin.
SoQtRenderArea, SoQtExaminerViewer, SoQtWalkViewer, SoQtFlyViewer, SoQtPlaneViewer
SoQtWrapper::SoQtWrapper | ( | QWidget * | parent = 0 , |
|
const char * | name = 0 , |
|||
ViewerType | type = SoQtWrapper::EXAMINER | |||
) |
Constructor which specifies the viewer type.
If nothing is specified, it creates an examiner viewer.
SoQtRenderArea* SoQtWrapper::getViewer | ( | void | ) | const [inline] |
Gets a pointer to the created viewer.
Depending on the view type, this pointer can either be an SoQtRenderArea, an SoQtExaminerViewer, an SoQtWalkViewer, an SoQtFlyViewer, or an SoQtPlaneViewer.
ViewerType SoQtWrapper::getViewerType | ( | ) | const [inline] |
Gets the type of viewer that will be created in the widget.
bool SoQtWrapper::isDecoration | ( | ) | const |
Returns whether the viewer decoration is on or off.
void SoQtWrapper::setDecoration | ( | bool | on | ) | [slot] |
Shows/hides the viewer decoration (default on).