#include <math.h>

Public Member Functions |
|
| AttributeCheckableFloat (Node *pOwner=0, const QString &sID="", const QString &sValueName="") | |
| void | SetValueName (const QString &sValueName) |
| QString | ValueName (void) const |
| Attribute::AttributeType | Type (void) const |
| Returns the type of the attribute. |
|
| AttributeWidget * | CreateEditorWidget (QWidget *pParent, int iWidth) |
| This function creates and returns the
address of a QWidget
object. |
|
| QString | AsString (bool) const |
| Returns the value of the attribute as a
string. |
|
| void | SetFromString (const QString &s, bool=true, bool=false) |
| Sets the value of the attribute as a string.
|
|
Protected Attributes |
|
| QString | m_sValueName |
| AttributeCheckableFloat | ( | Node * | pOwner = 0, |
| const QString & | sID = "", |
||
| const QString & | sValueName =
"" |
||
| ) | [inline] |
Definition at line 1605 of file math.h.
: AttributeInstance<CheckableFloat>( pOwner, sID )
{ m_iSize = sizeof(CheckableFloat); m_sValueName = sValueName; };
| void SetValueName | ( | const QString & | sValueName | ) | [inline] |
| QString ValueName | ( | void | ) | const [inline] |
| Attribute::AttributeType Type | ( | void | ) | const [inline, virtual] |
Returns the type of the attribute.
Reimplemented from AttributeInstance< CheckableFloat >.
Definition at line 1610 of file math.h.
{ return typeUnknown; };
| AttributeWidget* CreateEditorWidget | ( | QWidget * | pParent, |
| int | iWidth | ||
| ) | [inline, 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< CheckableFloat >.
Definition at line 1611 of file math.h.
{ return CreateNewCheckableFloatWidget( pParent, iWidth, (AttributeCheckableFloat *)this ); };
| QString AsString | ( | bool | bLocalized | ) | const [inline, virtual] |
Returns the value of the attribute as a string.
See also SetFromString.
| bLocalized | if this is true the string representation of the value is assumed to be localized (translated) |
Reimplemented from AttributeInstance< CheckableFloat >.
| void SetFromString | ( | const QString & | sValue, |
| bool | bInternal = true, |
||
| bool | bLocalized =
false |
||
| ) | [inline, virtual] |
Sets the value of the attribute as a string.
See also AsString.
| bInternal | if this is false the owner node will receive an event about the value change (See NodeEventType::etValueChanged). |
| bLocalized | if this is true the string representation of the value is assumed to be localized (translated) |
Reimplemented from AttributeInstance< CheckableFloat >.
QString
m_sValueName [protected] |