Qt3D Reference Documentation

QGLSceneFormatPlugin Class Reference

The QGLSceneFormatPlugin class defines an interface for loading 3D object and scene formats. More...

 #include <QGLSceneFormatPlugin>

Public Functions

QGLSceneFormatPlugin ( QObject * parent = 0 )
virtual ~QGLSceneFormatPlugin ()
virtual QStringList keys () const = 0

Reimplemented Public Functions

virtual QGLSceneFormatHandler * create ( QIODevice * device, const QUrl & url, const QString & format = QString() ) const = 0

Detailed Description

The QGLSceneFormatPlugin class defines an interface for loading 3D object and scene formats.

See also QGLSceneFormatHandler.

Member Function Documentation

QGLSceneFormatPlugin::QGLSceneFormatPlugin ( QObject * parent = 0 )

Constructs a 3D scene format plugin with the given parent. This is invoked automatically by the Q_EXPORT_PLUGIN2() macro.

QGLSceneFormatPlugin::~QGLSceneFormatPlugin () [virtual]

Destroys this 3D scene format plugin. This is invoked automatically when the plugin is unloaded.

QGLSceneFormatHandler * QGLSceneFormatPlugin::create ( QIODevice * device, const QUrl & url, const QString & format = QString() ) const [pure virtual]

Creates and returns a QGLSceneFormatHandler for handling the data in device according to format. The url specifies the original location of the data for resolving relative resource references.

See also keys().

QStringList QGLSceneFormatPlugin::keys () const [pure virtual]

Returns the list of format keys this plugin supports. These keys are usually the names of the 3D scene formats that are implemented in the plugin (e.g., "3ds", "obj", etc). The returned elements must be in lower case.

See also create().