User Tools

Site Tools


DzSimpleElementData

A DzElementData implementation that allows arbitrary data to be associated with an element of the scene.

More...

Inherits :

Inherited By : DzSimpleElementScriptData

Constructors

DAZ Script
DzSimpleElementData ( String name, Boolean persistent=false )

Methods

DAZ Script
DzSettingsgetSettings ()

Detailed Description

Implements a custom data item that allows arbitrary data to be associated with an element of the scene.

See Also:

Constructors


DzSimpleElementData( String name, Boolean persistent=false )

Default constructor.

Parameter(s):

  • name - The name for this data item. This must be unique for all data items on a given element - an element cannot have two data items with the same name.
  • persistent - If true, this data item will be saved with the owning element. If false (default), this data item will not be saved.

Attention:

  • It is the developer's responsibility to manage the lifetime of this object. This can be accomplished most easily by adding it to the list of data items owned by an element.

See Also:

Methods


DzSettings : getSettings()

Return Value:

  • The settings owned by this element data item.