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(String name,
Class<?> type,
Object value)
Adds the specified channel property.
|
boolean |
addChannel(String name,
Object value)
Adds the specified channel property.
|
void |
bindCurve(String channelName,
Curve curve)
Bind the curve to specified channel
|
Curve |
createCurve(String curveName)
Creates a new curve and connects it to the first channel of the curve mapping
|
AnimationChannel |
get(String channelName)
Gets channel by given name
|
AnimationChannel |
getChannel(String channelName)
Gets channel by given name
|
int |
getChannelsCount()
Gets the total number of property channels defined in this animation curve mapping.
|
Curve |
getCurve(String channelName)
Gets the first curve in specified channel
|
List<Curve> |
getCurves(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
|
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(String channelName)
channelName
- The channel name to findpublic List<Curve> getCurves(String channelName)
channelName
- The channel name to findpublic Curve createCurve(String curveName)
curveName
- The new curve's name.public void bindCurve(String channelName, Curve curve)
channelName
- Which channel the curve will be bound tocurve
- The curve datapublic AnimationChannel getChannel(String channelName)
channelName
- The channel name to findpublic AnimationChannel get(String channelName)
channelName
- Channel namepublic boolean addChannel(String name, Object value)
name
- Name.value
- Value.public boolean addChannel(String name, Class<?> type, Object value)
name
- Name.type
- Type.value
- Value.public void resetChannels()
public int getChannelsCount()
Copyright © 2018. All rights reserved.