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

Method getTransform

src/OpenColorIO/NamedTransform.cpp:169–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

167}
168
169ConstTransformRcPtr NamedTransformImpl::getTransform(TransformDirection dir) const
170{
171 if (dir == TRANSFORM_DIR_FORWARD)
172 {
173 return m_forwardTransform;
174 }
175 else if (dir == TRANSFORM_DIR_INVERSE)
176 {
177 return m_inverseTransform;
178 }
179 throw Exception("Named transform: Unspecified TransformDirection.");
180}
181
182ConstTransformRcPtr NamedTransform::GetTransform(const ConstNamedTransformRcPtr & nt,
183 TransformDirection dir)

Callers 2

GetTransformMethod · 0.45
NamedTransform.cppFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected