| 6 | BLUE_DEFINE( Tr2CurveVector2 ); |
| 7 | |
| 8 | const Be::ClassInfo* Tr2CurveVector2::ExposeToBlue() |
| 9 | { |
| 10 | EXPOSURE_BEGIN( Tr2CurveVector2, ":jessica-deprecated: True\n:jessica-icon: tree/trivectorcurve.png" ) |
| 11 | MAP_INTERFACE( Tr2CurveVector2 ) |
| 12 | MAP_INTERFACE( ITriFunction ) |
| 13 | MAP_INTERFACE( ITriCurveLength ) |
| 14 | |
| 15 | MAP_ATTRIBUTE( |
| 16 | "name", |
| 17 | m_name, |
| 18 | "", |
| 19 | Be::READWRITE | Be::PERSIST ) |
| 20 | MAP_ATTRIBUTE( |
| 21 | "x", |
| 22 | m_x, |
| 23 | "X component curve", |
| 24 | Be::READ | Be::PERSIST ) |
| 25 | MAP_ATTRIBUTE( |
| 26 | "y", |
| 27 | m_y, |
| 28 | "Y component curve", |
| 29 | Be::READ | Be::PERSIST ) |
| 30 | MAP_ATTRIBUTE( |
| 31 | "currentValue", |
| 32 | m_currentValue, |
| 33 | "Curve value after the last update", |
| 34 | Be::READ ) |
| 35 | |
| 36 | MAP_METHOD_AND_WRAP( |
| 37 | "GetValueAt", |
| 38 | GetValue, |
| 39 | "Returns curve value at specified time\n" |
| 40 | ":param time: input time" ) |
| 41 | |
| 42 | MAP_METHOD_AND_WRAP_OPTIONAL_ARGS( |
| 43 | "AddKey", |
| 44 | AddKey, |
| 45 | 4, |
| 46 | "Adds a new key to the curve\n" |
| 47 | ":param time: key time\n" |
| 48 | ":param value: key value\n" |
| 49 | ":param interpolation: optional interpolation type for the segment following this key, defaults to trinity.Tr2CurveInterpolation.HERMITE\n" |
| 50 | ":param leftTangent: optional key left (incoming) tangent, defaults to (0, 0)\n" |
| 51 | ":param rightTangent: optional key right (outgoing) tangent, defaults to (0, 0)\n" |
| 52 | ":param tangentType: optional key tangent type, defaults to trinity.Tr2CurveTangentType.AUTO_CLAMP" ) |
| 53 | |
| 54 | MAP_METHOD_AND_WRAP( |
| 55 | "SetExtrapolation", |
| 56 | SetExtrapolation, |
| 57 | "Assigns both extrapolationBefore and extrapolationAfter\n" |
| 58 | ":param extrapolation: new extrapolation (trinity.Tr2CurveExtrapolation enum)" ) |
| 59 | |
| 60 | EXPOSURE_END() |
| 61 | } |
nothing calls this directly
no test coverage detected