HDK
|
#include "pxr/base/tf/pySafePython.h"
#include <hboost/python/extract.hpp>
#include <hboost/python/object.hpp>
#include "pxr/pxr.h"
#include "pxr/usd/ar/api.h"
#include "pxr/usd/ar/resolverContext.h"
#include "pxr/base/tf/pyLock.h"
#include "pxr/base/tf/pyObjWrapper.h"
#include <functional>
Go to the source code of this file.
Typedefs | |
typedef std::function< bool(PyObject *, ArResolverContext *)> | Ar_MakeResolverContextFromPythonFn |
typedef std::function< bool(const ArResolverContext &, TfPyObjWrapper *)> | Ar_ResolverContextToPythonFn |
Functions | |
template<class Context > | |
PXR_NAMESPACE_OPEN_SCOPE void | ArWrapResolverContextForPython () |
template<class Context > | |
bool | Ar_ConvertResolverContextFromPython (PyObject *obj, ArResolverContext *context) |
template<class Context > | |
bool | Ar_ConvertResolverContextToPython (const ArResolverContext &context, TfPyObjWrapper *obj) |
AR_API void | Ar_RegisterResolverContextPythonConversion (const Ar_MakeResolverContextFromPythonFn &convertFunc, const Ar_ResolverContextToPythonFn &getObjectFunc) |
AR_API bool | Ar_CanConvertResolverContextFromPython (PyObject *pyObj) |
AR_API ArResolverContext | Ar_ConvertResolverContextFromPython (PyObject *pyObj) |
AR_API TfPyObjWrapper | Ar_ConvertResolverContextToPython (const ArResolverContext &context) |
template<class Context > | |
void | ArWrapResolverContextForPython () |
Macros for creating Python bindings for objects used with ArResolverContext.
Definition in file pyResolverContext_v1.h.
typedef std::function<bool(PyObject*, ArResolverContext*)> Ar_MakeResolverContextFromPythonFn |
Definition at line 97 of file pyResolverContext_v1.h.
typedef std::function<bool(const ArResolverContext&, TfPyObjWrapper*)> Ar_ResolverContextToPythonFn |
Definition at line 99 of file pyResolverContext_v1.h.
AR_API bool Ar_CanConvertResolverContextFromPython | ( | PyObject * | pyObj | ) |
bool Ar_ConvertResolverContextFromPython | ( | PyObject * | obj, |
ArResolverContext * | context | ||
) |
Definition at line 66 of file pyResolverContext_v1.h.
AR_API ArResolverContext Ar_ConvertResolverContextFromPython | ( | PyObject * | pyObj | ) |
bool Ar_ConvertResolverContextToPython | ( | const ArResolverContext & | context, |
TfPyObjWrapper * | obj | ||
) |
Definition at line 82 of file pyResolverContext_v1.h.
AR_API TfPyObjWrapper Ar_ConvertResolverContextToPython | ( | const ArResolverContext & | context | ) |
AR_API void Ar_RegisterResolverContextPythonConversion | ( | const Ar_MakeResolverContextFromPythonFn & | convertFunc, |
const Ar_ResolverContextToPythonFn & | getObjectFunc | ||
) |
PXR_NAMESPACE_OPEN_SCOPE void ArWrapResolverContextForPython | ( | ) |
Register the specified type as a context object that may be converted from a Python into a ArResolverContext object in C++ and vice versa. This typically would be called in the source file where the Python wrapping for the context object is defined.
Definition at line 121 of file pyResolverContext_v1.h.
void ArWrapResolverContextForPython | ( | ) |
Register the specified type as a context object that may be converted from a Python into a ArResolverContext object in C++ and vice versa. This typically would be called in the source file where the Python wrapping for the context object is defined.
Definition at line 121 of file pyResolverContext_v1.h.