AttributeFloatRange Class Reference


Detailed Description

This attribute represents a float value which has a minimum and a maximum value. These values will be used in the user interface only, but the user will be able to assign values out of the range to the attribute.

Examples:

FixedFunctionMaterial/FixedFunctionMaterial.h, SampleViewportFilter/SampleViewportFilter.h, and ToonMaterial/ToonMaterial.h.

Definition at line 915 of file node.h.

#include <node.h>

Inheritance diagram for AttributeFloatRange:
Inheritance graph
[legend]

List of all members.

Public Member Functions

  AttributeFloatRange (Node *pOwner, const QString &sID, float fMinimum=0, float fMaximum=1, float fFactor=1, int iPrecision=2)
  Creates the attribute with the given name and limits.
  OPERATORS (float)
void  StartEvent (NodeEventType cType) const
AttributeWidget CreateEditorWidget (QWidget *pParent, int iWidth)
  This function creates and returns the address of a QWidget object.
float  Min (void) const
float  Max (void) const
void  SetMin (float fValue)
void  SetMax (float fValue)
void  SetEditMin (float fEditMin)
void  SetEditMax (float fEditMax)
float  EditMin (void) const
float  EditMax (void) const

Constructor & Destructor Documentation

AttributeFloatRange ( Node pOwner,
const QString &  sID,
float  fMinimum = 0,
float  fMaximum = 1,
float  fFactor = 1,
int  iPrecision = 2 
)

Creates the attribute with the given name and limits.


Member Function Documentation

OPERATORS ( float  )
void StartEvent ( NodeEventType  cType ) const [virtual]
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< float >.

float Min ( void  ) const
float Max ( void  ) const
void SetMin ( float  fValue )
void SetMax ( float  fValue )
void SetEditMin ( float  fEditMin )
void SetEditMax ( float  fEditMax )
float EditMin ( void  ) const
float EditMax ( void  ) const

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

AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange
AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange AttributeFloatRange