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