MCPcopy Create free account
hub / github.com/PixarAnimationStudios/OpenUSD / wrapMapExpression

Function wrapMapExpression

pxr/usd/pcp/wrapMapExpression.cpp:30–65  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28} // anonymous namespace
29
30void
31wrapMapExpression()
32{
33 typedef PcpMapExpression This;
34
35 class_<This>("MapExpression")
36 .def("__str__", _Str)
37
38 .def("Evaluate", &This::Evaluate,
39 return_value_policy<return_by_value>())
40 .def("Identity", &This::Identity,
41 return_value_policy<return_by_value>())
42 .staticmethod("Identity")
43 .def("Constant", &This::Constant,
44 return_value_policy<return_by_value>())
45 .staticmethod("Constant")
46 .def("ImpliedClass", &This::ImpliedClass)
47 .staticmethod("ImpliedClass")
48 .def("Inverse", &This::Inverse,
49 return_value_policy<return_by_value>())
50 .def("AddRootIdentity", &This::AddRootIdentity,
51 return_value_policy<return_by_value>())
52 .def("Compose", &This::Compose,
53 return_value_policy<return_by_value>())
54 .def("MapSourceToTarget", &This::MapSourceToTarget,
55 (arg("path")))
56 .def("MapTargetToSource", &This::MapTargetToSource,
57 (arg("path")))
58
59 .add_property("timeOffset",
60 make_function(&This::GetTimeOffset,
61 return_value_policy<return_by_value>()) )
62 .add_property("isIdentity", &This::IsIdentity)
63 .add_property("isNull", &This::IsNull)
64 ;
65}

Callers

nothing calls this directly

Calls 4

argClass · 0.85
make_functionFunction · 0.85
add_propertyMethod · 0.80
defMethod · 0.45

Tested by

no test coverage detected