SoQtWrapper Class Reference

VSG extension Creates a QWidget that encapsulates an Open Inventor viewer. More...

#include <Inventor/Qt/SoQtWrapper.h>

List of all members.

Public Types

enum  ViewerType {

Public Slots

void setDecoration (bool on)

Public Member Functions

 SoQtWrapper (QWidget *parent=0, const char *name=0, ViewerType type=SoQtWrapper::EXAMINER)
ViewerType getViewerType () const
SoQtRenderAreagetViewer () const
bool isDecoration () const

Detailed Description

VSG extension 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

Member Enumeration Documentation

Viewer Types enumeration.


Creates a render area in the widget.


Creates an Examiner Viewer in the widget.


Creates a Walk Viewer in the widget.


Creates a Fly Viewer in the widget.


Creates a Plane Viewer in the widget.

Constructor & Destructor Documentation

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.

Member Function Documentation

SoQtRenderArea* SoQtWrapper::getViewer (  )  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).

The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Sep 2022
Copyright © Thermo Fisher Scientific All rights reserved.