Open Inventor Release 2024.1.0
 
Loading...
Searching...
No Matches
SoQtWrapper Class Reference

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

#include <Inventor/Qt/SoQtWrapper.h>

+ Inheritance diagram for SoQtWrapper:

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.
 
SoQtRenderAreagetViewer () const
 Gets a pointer to the created viewer.
 
bool isDecoration () const
 Returns whether the viewer decoration is on or off.
 

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.

SEE ALSO

SoQtRenderArea, SoQtExaminerViewer, SoQtWalkViewer, SoQtFlyViewer, SoQtPlaneViewer

Definition at line 68 of file SoQtWrapper.h.

Member Enumeration Documentation

◆ ViewerType

Viewer Types enumeration.

Enumerator
RENDER_AREA 

Creates a render area in the widget.

EXAMINER 

Creates an Examiner Viewer in the widget.

WALK 

Creates a Walk Viewer in the widget.

FLY 

Creates a Fly Viewer in the widget.

PLANE 

Creates a Plane Viewer in the widget.

Definition at line 74 of file SoQtWrapper.h.

Constructor & Destructor Documentation

◆ SoQtWrapper()

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

◆ getViewer()

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.

Definition at line 113 of file SoQtWrapper.h.

◆ getViewerType()

ViewerType SoQtWrapper::getViewerType ( ) const
inline

Gets the type of viewer that will be created in the widget.

Definition at line 106 of file SoQtWrapper.h.

◆ isDecoration()

bool SoQtWrapper::isDecoration ( ) const

Returns whether the viewer decoration is on or off.

◆ setDecoration

void SoQtWrapper::setDecoration ( bool  on)
slot

Shows/hides the viewer decoration (default on).


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