MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / getDouble

Function getDouble

src/bindings/python/PyDynamicProperty.h:27–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 }
26
27 double getDouble()
28 {
29 auto propDouble = DynamicPropertyValue::AsDouble(m_prop);
30 if (propDouble)
31 {
32 return propDouble->getValue();
33 }
34 throw OCIO::Exception("Invalid dynamic property type (doesn't hold a double).");
35 }
36
37 void setDouble(double v)
38 {

Callers

nothing calls this directly

Calls 2

AsDoubleFunction · 0.85
getValueMethod · 0.45

Tested by

no test coverage detected