C

Q3DSViewerSettings Class

Qt 3D Studio presentation viewer settings. More...

Header: #include <q3dsviewersettings.h>
Inherits: QObject

Public Types

enum ScaleMode { ScaleModeFit, ScaleModeFill, ScaleModeCenter }
enum ShadeMode { ShadeModeShaded, ShadeModeShadedWireframe }

Properties

  • 1 property inherited from QObject

Public Functions

bool isShowRenderStats() const
void load(const QString &group, const QString &organization = QString(), const QString &application = QString())
QColor matteColor() const
void save(const QString &group, const QString &organization = QString(), const QString &application = QString())
ScaleMode scaleMode() const
ShadeMode shadeMode() const
  • 32 public functions inherited from QObject

Public Slots

void setMatteColor(const QColor &color)
void setScaleMode(ScaleMode mode)
void setShadeMode(ShadeMode mode)
void setShowRenderStats(bool show)
  • 1 public slot inherited from QObject

Signals

void matteColorChanged(const QColor &color)
void scaleModeChanged(ScaleMode mode)
void shadeModeChanged(ShadeMode mode)
void showRenderStatsChanged(bool show)

Additional Inherited Members

  • 1 public variable inherited from QObject
  • 10 static public members inherited from QObject
  • 9 protected functions inherited from QObject
  • 2 protected variables inherited from QObject

Detailed Description

Qt 3D Studio presentation viewer settings.

Q3DSViewerSettings provides properties to define presentation independent viewer settings.

You should never construct this class yourself. You can ask for an instance from Q3DSSurfaceViewer or Q3DSWidget.

Member Type Documentation

enum Q3DSViewerSettings::ScaleMode

This enumeration specifies the possible scaling modes.

ConstantValueDescription
Q3DSViewerSettings::ScaleModeFit0Scales the presentation to fit the viewer.
Q3DSViewerSettings::ScaleModeFill1Scales the presentation to fill the viewer.
Q3DSViewerSettings::ScaleModeCenter2Centers the presentation into the viewer without scaling it.

enum Q3DSViewerSettings::ShadeMode

This enumeration specifies the possible shading modes.

ConstantValueDescription
Q3DSViewerSettings::ShadeModeShaded0The objects in the presentation are shaded normally.
Q3DSViewerSettings::ShadeModeShadedWireframe1The objects in the presentation are shaded with a super-imposed wireframe on top of the normal shading. Only objects that specify a tesselation mode will display this wireframe.

Property Documentation

matteColor : QColor

Specifies the color of the viewer area not occupied by the presentation. Default value is black.

Access functions:

QColor matteColor() const
void setMatteColor(const QColor &color)

Notifier signal:

void matteColorChanged(const QColor &color)

scaleMode : ScaleMode

The scaling mode used for the viewer presentation. The default value is ScaleModeCenter.

Access functions:

ScaleMode scaleMode() const
void setScaleMode(ScaleMode mode)

Notifier signal:

void scaleModeChanged(ScaleMode mode)

shadeMode : ShadeMode

The shading mode used for the viewed presentation. The default value is ShadeModeShaded.

Access functions:

ShadeMode shadeMode() const
void setShadeMode(ShadeMode mode)

Notifier signal:

void shadeModeChanged(ShadeMode mode)

showRenderStats : bool

If this property is set to true, render statistics are displayed on the upper part of the viewer. Default value is false.

Access functions:

bool isShowRenderStats() const
void setShowRenderStats(bool show)

Notifier signal:

void showRenderStatsChanged(bool show)

Member Function Documentation

void Q3DSViewerSettings::load(const QString &group, const QString &organization = QString(), const QString &application = QString())

Loads previously saved viewer settings using group, organization and application.

void Q3DSViewerSettings::save(const QString &group, const QString &organization = QString(), const QString &application = QString())

Persistently saves the viewer settings using group, organization and application.

Available under certain Qt licenses.
Find out more.