#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 (unsigned int) const |
Returns the value of the attribute as a
string. See also SetFromString. |
|
void | SetFromString (const QString &s, unsigned int=asStringInternal) |
Sets the value of the attribute as a string.
See also AsString. |
|
Protected Attributes |
|
QString | m_sValueName |
AttributeCheckableFloat | ( | Node * | pOwner = 0 , |
const QString & | sID = "" , |
||
const QString & | sValueName =
"" |
||
) | [inline] |
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 1619 of file math.h.
{
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 1620 of file math.h.
{
QString AsString | ( | unsigned | options | ) | const [inline, virtual] |
Returns the value of the attribute as a string. See also SetFromString.
Reimplemented from AttributeInstance< CheckableFloat >.
Definition at line 1621 of file math.h.
{
void SetFromString | ( | const QString & | sValue, |
unsigned | options =
asStringInternal |
||
) | [inline, virtual] |
Sets the value of the attribute as a string. See also AsString.
Reimplemented from AttributeInstance< CheckableFloat >.
Definition at line 1622 of file math.h.
{ m_iSize = 2; m_aValue[0] = 0; m_aValue[1] = 1; m_bComplementary = false;
QString
m_sValueName [protected] |