AttributeFilename Class Reference


Detailed Description

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

Examples:

MeshDisplace/displacer.h.

Definition at line 1017 of file node.h.

#include <node.h>

Inheritance diagram for AttributeFilename:
Inheritance graph
[legend]

List of all members.

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

Constructor & Destructor Documentation

AttributeFilename ( Node pOwner,
const QString &  sID,
bool  bMustExists = true 
)

Member Function Documentation

OPERATORS_NOEXCMARK ( QString  )
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]
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]

Set the value of a parameter.

Reimplemented from Attribute.


Member Data Documentation

Definition at line 1029 of file node.h.

QString m_sFilter

Definition at line 1030 of file node.h.

QString m_sPath

Definition at line 1031 of file node.h.


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

AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename
AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename AttributeFilename