Manages C3D.models.SequenceSets in the canvas.
Access properties with .name
and .name = value
.
C3D.Canvas3D
Reference to the canvas to which this controller belongs
C3D.models.SequenceSet[]
List of active sequence sets in the canvas
Call methods with.name()
,.name(arguments)
or just .name arguments
.
[options]
)
-> undefined
# Backbone.Model Removes all attributes from the model, including the id attribute. Fires a
"change" event unless silent
is passed as an option.
Object
(Optional)Backbone.Model
# Backbone.Model Returns a copy of the model.
Backbone.Model
copy of the model
cid
)
-> C3D.models.SequenceSet
#Finds a sequence set by cid
String
C3D.models.SequenceSet
undefined
#Generates sequences using the active sequence set, and @link C3D.models.SequenceSet.thread threads} them onto the strands in the canvas.
attribute
)
-> Mixed
# Backbone.Model Get the current value of an attribute from the model. For example: note.get("title")
String
Attribute to get
Mixed
value of the attribute
C3D.models.SequenceSet
#Gets the active sequence set
C3D.models.SequenceSet
C3D.models.SequenceSet[]
#Gets a list of sequence sets defined on this canvas, adding some if they don't exist
C3D.models.SequenceSet[]
attribute
)
-> Boolean
# Backbone.Model Returns true if the attribute is set to a non-null or non-undefined value.
if (note.has("title")) {
...
}
String
Boolean
true
if the attribute is non-null or non-undefined, else false
attribute
, [options]
)
-> undefined
# Backbone.Model Set a hash of attributes (one or many) on the model. If any of the attributes
change the model's state, a change
event will be triggered on the model.
Change events for specific attributes are also triggered, and you can bind to
those as well, for example: change:title
, and change:content
. You may also
pass individual keys and values.
note.set({title: "March 20", content: "In his eyes she eclipses..."});
book.set("title", "A Scandal in Bohemia");
String/Object
(s)
Object
(Optional)sset
)
-> undefined
#Sets the active sequence set
attribute
, [options]
)
-> undefined
# Backbone.Model Remove an attribute by deleting it from the internal attributes hash. Fires a
"change" event unless silent
is passed as an option.
String
Object
(Optional)