Blender V5.0
blender::io::usd::UsdExportTest Class Reference

Inherits BlendfileLoadingBaseTest.

Public Member Functions

bool load_file_and_depsgraph (const StringRefNull &filepath, const eEvaluationMode eval_mode=DAG_EVAL_VIEWPORT)
void SetUp () override
void TearDown () override
pxr::UsdPrim get_first_child_mesh (const pxr::UsdPrim prim)
void compare_blender_node_to_usd_prim (const bNode *bsdf_node, const pxr::UsdPrim &bsdf_prim)
void compare_blender_image_to_usd_image_shader (const bNode *image_node, const pxr::UsdPrim &image_prim)
void compare_blender_mesh_to_usd_prim (const Mesh *mesh, const pxr::UsdGeomMesh &mesh_prim)

Protected Attributes

bContextcontext = nullptr
Protected Attributes inherited from BlendfileLoadingBaseTest
struct BlendFileDatabfile = nullptr
struct Depsgraph * depsgraph = nullptr

Additional Inherited Members

Static Public Member Functions inherited from BlendfileLoadingBaseTest
static void SetUpTestCase ()
static void TearDownTestCase ()
Protected Member Functions inherited from BlendfileLoadingBaseTest
bool blendfile_load (const char *filepath)
void blendfile_free ()
virtual void depsgraph_create (eEvaluationMode depsgraph_evaluation_mode)
virtual void depsgraph_free ()

Detailed Description

Definition at line 50 of file usd_export_test.cc.

Member Function Documentation

◆ compare_blender_image_to_usd_image_shader()

void blender::io::usd::UsdExportTest::compare_blender_image_to_usd_image_shader ( const bNode * image_node,
const pxr::UsdPrim & image_prim )
inline

Definition at line 152 of file usd_export_test.cc.

References BLI_path_cmp_normalized(), EXPECT_EQ(), Image::filepath, and bNode::id.

◆ compare_blender_mesh_to_usd_prim()

void blender::io::usd::UsdExportTest::compare_blender_mesh_to_usd_prim ( const Mesh * mesh,
const pxr::UsdGeomMesh & mesh_prim )
inline

◆ compare_blender_node_to_usd_prim()

void blender::io::usd::UsdExportTest::compare_blender_node_to_usd_prim ( const bNode * bsdf_node,
const pxr::UsdPrim & bsdf_prim )
inline

Loop the sockets on the Blender bNode, and fail if any of their values do not match the equivalent Attribute values on the UsdPrim.

Definition at line 100 of file usd_export_test.cc.

References SOCK_FLOAT, SOCK_RGBA, SOCK_VECTOR, and blender::io::usd::token_for_input().

◆ get_first_child_mesh()

pxr::UsdPrim blender::io::usd::UsdExportTest::get_first_child_mesh ( const pxr::UsdPrim prim)
inline

Definition at line 86 of file usd_export_test.cc.

◆ load_file_and_depsgraph()

◆ SetUp()

void blender::io::usd::UsdExportTest::SetUp ( )
inlineoverride

Definition at line 70 of file usd_export_test.cc.

◆ TearDown()

void blender::io::usd::UsdExportTest::TearDown ( )
inlineoverridevirtual

Member Data Documentation

◆ context

bContext* blender::io::usd::UsdExportTest::context = nullptr
protected

Definition at line 52 of file usd_export_test.cc.

Referenced by load_file_and_depsgraph(), and TearDown().


The documentation for this class was generated from the following file: