AttributeCheckableFloat Class Reference


Detailed Description

Definition at line 1611 of file math.h.

#include <math.h>

Inheritance diagram for AttributeCheckableFloat:
Inheritance graph
[legend]

List of all members.

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

Constructor & Destructor Documentation

AttributeCheckableFloat ( Node pOwner = 0,
const QString &  sID = "",
const QString &  sValueName = "" 
) [inline]

Definition at line 1614 of file math.h.

{

Member Function Documentation

void SetValueName ( const QString &  sValueName ) [inline]

Definition at line 1616 of file math.h.

{
QString ValueName ( void  ) const [inline]

Definition at line 1617 of file math.h.

{
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;

Member Data Documentation

QString m_sValueName [protected]

Definition at line 1626 of file math.h.


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

AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat
AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat AttributeCheckableFloat