Numeric (float) property that has an associated node pointer.
Inherits :
DAZ Script |
---|
DzNumericNodeProperty () |
DzNumericNodeProperty ( String name, Boolean canAnimate, Boolean isUserProperty, Number initVal=0.0 ) |
DAZ Script | |
---|---|
DzNode | getNode () |
Boolean | isInvalidWithoutNode () |
void | setMustHaveNode ( Boolean onOff ) |
void | setNode ( DzNode node ) |
void | invalidWithoutNodeChanged ( Boolean onOff ) |
void | nodeChanged ( DzNode node ) |
This property tracks both a numeric value and a node value - it is essentially a combination of a DzFloatProperty and a DzNodeProperty in a single property. The main benefit of this is to display the settings to the user as a single parameter, it also provides several conveniences for the programmer in linking the two values together. Currently, this property is used by DzNode to implement the 'Point At' parameter.
Default Constructor. Creates a non-animatable, non-user property.
DzNumericNodeProperty( String name, Boolean canAnimate, Boolean isUserProperty, Number initVal=0.0 )
Parameter(s):
true
, creates an animatable property.true
, creates a user property; user properties are properties that can be added/deleted by users.Return Value:
Boolean : isInvalidWithoutNode()
Return Value:
true
if the value of this property is invalid unless a node is assigned, otherwise false
.void : setMustHaveNode( Boolean onOff )
Sets whether or not this property value is valid when no node is assigned.
Parameter(s):
true
, this property must have a node associated with it.Set the node for this property.
Parameter(s):
void : invalidWithoutNodeChanged( Boolean onOff )
Signature:“invalidWithoutNodeChanged(bool)”
Emitted when this property's invalid without node state has changed.
Parameter(s):
true
, then this property is invalid without a node.void : nodeChanged( DzNode node )
Signature:“nodeChanged(DzNode*)”
Emitted when the node associated with this property has changed.
Parameter(s):