MCPcopy Create free account
hub / github.com/carbonengine/trinity / ExposeToBlue

Method ExposeToBlue

trinity/Curves/Tr2RotationAdapter_Blue.cpp:9–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7BLUE_DEFINE( Tr2RotationAdapter );
8
9const Be::ClassInfo* Tr2RotationAdapter::ExposeToBlue()
10{
11 EXPOSURE_BEGIN( Tr2RotationAdapter, ":jessica-icon: tree/trivectorcurve.png" )
12 MAP_INTERFACE( Tr2RotationAdapter )
13 MAP_INTERFACE( ITriQuaternionFunction )
14
15 MAP_ATTRIBUTE(
16 "value",
17 m_value,
18 "",
19 Be::READWRITE | Be::PERSIST )
20 MAP_ATTRIBUTE(
21 "curve",
22 m_curve,
23 "Attached curve",
24 Be::READWRITE | Be::PERSIST )
25
26 MAP_ATTRIBUTE(
27 "currentValue",
28 m_currentValue,
29 "Curve value after the last update",
30 Be::READ )
31
32 MAP_METHOD_AND_WRAP_OPTIONAL_ARGS(
33 "RandomizeStart",
34 RandomizeStart,
35 1,
36 "Shifts curve starting time by a random number in a specified range (-rng, +rng)\n"
37 ":param rng: radius of the random range in seconds (default is 60 sec)" )
38
39 MAP_METHOD_AND_WRAP(
40 "ScaleTime",
41 ScaleTime,
42 "Scales curve time\n"
43 ":param scale: new time scaling factor" )
44
45 MAP_METHOD_AND_WRAP(
46 "ResetStart",
47 ResetStart,
48 "Reset start time" )
49
50 EXPOSURE_END()
51}

Callers

nothing calls this directly

Calls 1

MAP_INTERFACEFunction · 0.70

Tested by

no test coverage detected