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>
List of all
members.
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
| 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 >.
| 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: