GluonEngine::MaterialAsset Class Reference

#include <materialasset.h>

Inheritance diagram for GluonEngine::MaterialAsset:
GluonEngine::Asset GluonCore::GluonObject QObject

List of all members.

Classes

class  MaterialAssetPrivate

Public Slots

void createInstance ()

Public Member Functions

Q_INVOKABLE MaterialAsset (QObject *parent=0)
 ~MaterialAsset ()
virtual QIcon icon () const
void load ()
virtual const QStringList supportedMimeTypes () const
virtual const QList
< AssetTemplate * > 
templates ()
virtual QList< QAction * > actions ()
virtual void setName (const QString &newName)
virtual QString childrenToGDL (int indentLevel=0) const
virtual void sanitize ()

Detailed Description

Definition at line 28 of file materialasset.h.


Constructor & Destructor Documentation

MaterialAsset::MaterialAsset ( QObject parent = 0  ) 

Definition at line 49 of file materialasset.cpp.

MaterialAsset::~MaterialAsset (  ) 

Definition at line 60 of file materialasset.cpp.


Member Function Documentation

QList< QAction * > MaterialAsset::actions (  )  [virtual]

Retrieve a list of actions relating to the current asset.

Returns:
A QList of QActions that can be shown in pop-up menus and other places.

Reimplemented from GluonEngine::Asset.

Definition at line 104 of file materialasset.cpp.

QString MaterialAsset::childrenToGDL ( int  indentLevel = 0  )  const [virtual]

The specialization of toGDL on the Asset class does not recurse. This allows Assets to handle their own children in a flexible manner, without polluting the GDL with that information.

Reimplemented from GluonEngine::Asset.

Definition at line 116 of file materialasset.cpp.

void MaterialAsset::createInstance (  )  [slot]

Definition at line 134 of file materialasset.cpp.

QIcon MaterialAsset::icon (  )  const [virtual]

An icon to represent the asset. Think of it as a thumbnail representation of the contents of the asset. The default implementation returns a null icon

Reimplemented from GluonEngine::Asset.

Definition at line 65 of file materialasset.cpp.

void MaterialAsset::load (  )  [virtual]

Reimplemented from GluonEngine::Asset.

Definition at line 82 of file materialasset.cpp.

void MaterialAsset::sanitize (  )  [virtual]

Reimplemented from GluonCore::GluonObject.

Definition at line 121 of file materialasset.cpp.

void MaterialAsset::setName ( const QString &  newName  )  [virtual]

An extension on the GluonCore::GluonObject::setName function which changes the file name of the Asset when setting a new name for the Asset.

Note:
As always, be aware that the requested name is not always the name which is set, as two objects with the same parent cannot have the same name.
Parameters:
newName The requested new name for the asset
See also:
file, GluonCore::GluonObject::name

Reimplemented from GluonEngine::Asset.

Definition at line 109 of file materialasset.cpp.

const QStringList MaterialAsset::supportedMimeTypes (  )  const [virtual]

Used by GluonObjectFactory when requesting an object which supports a specific mimetype. The default implementation returns an empty list.

This is primarily useful for GluonEngine::Asset but other classes can potentially use it as well.

Returns:
A list of strings each describing a mimetype the class supports

Reimplemented from GluonCore::GluonObject.

Definition at line 73 of file materialasset.cpp.

const QList< AssetTemplate * > MaterialAsset::templates (  )  [virtual]

The templates provided by the asset. The default implementation returns no templates, as many assets will not be able to provide templates.

Reimplemented from GluonEngine::Asset.

Definition at line 97 of file materialasset.cpp.


The documentation for this class was generated from the following files:
Generated on Mon Dec 27 13:13:43 2010 for Gluon by  doxygen 1.6.3