Similar to AttributeInstance<String> but it provides a button on the interface where the user can browse for a filename.
#include <node.h>

Public Member Functions |
|
| AttributeFilename (Node *pOwner, const QString &sID, bool bMustExists=true) | |
| OPERATORS_NOEXCMARK (QString) | |
| AttributeWidget * | CreateEditorWidget (QWidget *pParent, int iWidth) |
| This function creates and returns the
address of a QWidget object. |
|
| unsigned int | ParameterCount (void) const |
| QString | ParameterName (unsigned int iIndex) const |
| Returns the name of a parameter with a given
index. |
|
| QString | ParameterValue (unsigned int iIndex) const |
| Returns the value of parameter with a given
index. |
|
| void | SetParameterValue (const QString &sName, const QString &sValue) |
| Set the value of a parameter. |
|
Public Attributes |
|
| bool | m_bMustExists |
| QString | m_sFilter |
| QString | m_sPath |
| AttributeFilename | ( | Node * | pOwner, |
| const QString & | sID, | ||
| bool | bMustExists =
true |
||
| ) |
| OPERATORS_NOEXCMARK | ( | QString | ) |
Reimplemented in AttributeTextureFilename.
| AttributeWidget* CreateEditorWidget | ( | QWidget * | pParent, |
| int | iWidth | ||
| ) | [virtual] |
This function creates and returns the address of a QWidget object.
The object then can be used in the interface to give the user control over the attribute value. Mudbox calls this function for every attribute in a node when it displays a properties dialog box for it. You must override it if you implement a new kind of attribute and want a special interface.
Reimplemented from AttributeInstance< QString >.
Reimplemented in AttributeTextureFilename.
| unsigned int ParameterCount | ( | void | ) | const [virtual] |
Reimplemented from Attribute.
| QString ParameterName | ( | unsigned int | iIndex | ) | const [virtual] |
Returns the name of a parameter with a given index.
Reimplemented from Attribute.
| QString ParameterValue | ( | unsigned int | iIndex | ) | const [virtual] |
Returns the value of parameter with a given index.
Reimplemented from Attribute.
| void SetParameterValue | ( | const QString & | sName, |
| const QString & | sValue | ||
| ) | [virtual] |
| bool m_bMustExists |
| QString m_sFilter |
| QString m_sPath |