HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pyResolverContext.h File Reference
#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>
+ Include dependency graph for pyResolverContext.h:

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 ()
 

Detailed Description

Macros for creating Python bindings for objects used with ArResolverContext.

Definition in file pyResolverContext.h.

Typedef Documentation

typedef std::function<bool(PyObject*, ArResolverContext*)> Ar_MakeResolverContextFromPythonFn

Definition at line 93 of file pyResolverContext.h.

Definition at line 95 of file pyResolverContext.h.

Function Documentation

AR_API bool Ar_CanConvertResolverContextFromPython ( PyObject *  pyObj)
template<class Context >
bool Ar_ConvertResolverContextFromPython ( PyObject *  obj,
ArResolverContext context 
)

Definition at line 62 of file pyResolverContext.h.

AR_API ArResolverContext Ar_ConvertResolverContextFromPython ( PyObject *  pyObj)
template<class Context >
bool Ar_ConvertResolverContextToPython ( const ArResolverContext context,
TfPyObjWrapper obj 
)

Definition at line 78 of file pyResolverContext.h.

AR_API TfPyObjWrapper Ar_ConvertResolverContextToPython ( const ArResolverContext context)
AR_API void Ar_RegisterResolverContextPythonConversion ( const Ar_MakeResolverContextFromPythonFn convertFunc,
const Ar_ResolverContextToPythonFn getObjectFunc 
)
template<class Context >
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 117 of file pyResolverContext.h.

template<class Context >
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 117 of file pyResolverContext.h.