User Tools

Site Tools


DzNumericNodeProperty

Numeric (float) property that has an associated node pointer.

More...

Inherits :

Constructors

DAZ Script
DzNumericNodeProperty ()
DzNumericNodeProperty ( String name, Boolean canAnimate, Boolean isUserProperty, Number initVal=0.0 )

Methods

DAZ Script
DzNodegetNode ()
BooleanisInvalidWithoutNode ()
voidsetMustHaveNode ( Boolean onOff )
voidsetNode ( DzNode node )

Signals

Detailed Description

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.

Constructors


DzNumericNodeProperty()

Default Constructor. Creates a non-animatable, non-user property.


DzNumericNodeProperty( String name, Boolean canAnimate, Boolean isUserProperty, Number initVal=0.0 )

Parameter(s):

  • name - The name of this property.
  • canAnimate - If true, creates an animatable property.
  • isUserProperty - If true, creates a user property; user properties are properties that can be added/deleted by users.
  • initVal - The initial value of the property.

Methods


DzNode : getNode()

Return Value:

  • The node that is assigned to this property.

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):

  • onOff - If true, this property must have a node associated with it.

void : setNode( DzNode node )

Set the node for this property.

Parameter(s):

  • node - The node to associate with this property.

Signals


void : invalidWithoutNodeChanged( Boolean onOff )

Signature:“invalidWithoutNodeChanged(bool)”

Emitted when this property's invalid without node state has changed.

Parameter(s):

  • onOff - If 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):

  • node - The node that was changed.