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 } |
Viewer Types enumeration. More... | |
Public Slots | |
void | setDecoration (bool on) |
Shows/hides the viewer decoration (default on). | |
Public Member Functions | |
SoQtWrapper (QWidget *parent=0, const char *name=0, ViewerType type=SoQtWrapper::EXAMINER) | |
Constructor which specifies the viewer type. | |
ViewerType | getViewerType () const |
Gets the type of viewer that will be created in the widget. | |
SoQtRenderArea * | getViewer () const |
Gets a pointer to the created viewer. | |
bool | isDecoration () const |
Returns whether the viewer decoration is on or off. | |
Creates a QWidget that encapsulates an Open Inventor viewer.
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
Definition at line 68 of file SoQtWrapper.h.
Viewer Types enumeration.
Definition at line 74 of file SoQtWrapper.h.
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.
|
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.
Definition at line 113 of file SoQtWrapper.h.
|
inline |
Gets the type of viewer that will be created in the widget.
Definition at line 106 of file SoQtWrapper.h.
bool SoQtWrapper::isDecoration | ( | ) | const |
Returns whether the viewer decoration is on or off.
|
slot |
Shows/hides the viewer decoration (default on).