public class CurveMapping extends A3DObject
Constructor and Description |
---|
CurveMapping(Scene scene,
Property prop)
Initializes a new instance of the
CurveMapping class. |
Modifier and Type | Method and Description |
---|---|
boolean |
addChannel(java.lang.String name,
java.lang.Class<?> type,
java.lang.Object value)
Adds the specified channel property.
|
boolean |
addChannel(java.lang.String name,
java.lang.Object value)
Adds the specified channel property.
|
void |
bindCurve(java.lang.String channelName,
Curve curve)
Bind the curve to specified channel
|
Curve |
createCurve(java.lang.String curveName)
Creates a new curve and connects it to the first channel of the curve mapping
|
AnimationChannel |
get(java.lang.String channelName)
Gets channel by given name
|
AnimationChannel |
getChannel(java.lang.String channelName)
Gets channel by given name
|
int |
getChannelsCount()
Gets the total number of property channels defined in this animation curve mapping.
|
Curve |
getCurve(java.lang.String channelName)
Gets the first curve in specified channel
|
java.util.List<Curve> |
getCurves(java.lang.String channelName)
Gets all curves in specified channel
|
Property |
getProperty()
Gets the property associated with the CurveMapping
|
void |
resetChannels()
Empties the property channels of this animation curve mapping.
|
void |
setProperty(Property value)
Gets the property associated with the CurveMapping
|
java.lang.String |
toString()
Formats object to string
|
findProperty, getName, getProperty, removeProperty, removeProperty, setName, setProperty
public CurveMapping(Scene scene, Property prop)
CurveMapping
class.scene
- The scene that contains the animation.prop
- Property.public Property getProperty()
public void setProperty(Property value)
value
- New valuepublic Curve getCurve(java.lang.String channelName)
channelName
- The channel name to findpublic java.util.List<Curve> getCurves(java.lang.String channelName)
channelName
- The channel name to findpublic Curve createCurve(java.lang.String curveName)
curveName
- The new curve's name.public void bindCurve(java.lang.String channelName, Curve curve)
channelName
- Which channel the curve will be bound tocurve
- The curve datapublic AnimationChannel getChannel(java.lang.String channelName)
channelName
- The channel name to findpublic AnimationChannel get(java.lang.String channelName)
channelName
- Channel namepublic boolean addChannel(java.lang.String name, java.lang.Object value)
name
- Name.value
- Value.public boolean addChannel(java.lang.String name, java.lang.Class<?> type, java.lang.Object value)
name
- Name.type
- Type.value
- Value.public void resetChannels()
public int getChannelsCount()
public java.lang.String toString()
toString
in class java.lang.Object