Blender V4.3
blender::io Namespace Reference

Namespaces

namespace  alembic
 
namespace  grease_pencil
 
namespace  hydra
 
namespace  obj
 
namespace  ply
 
namespace  serialize
 
namespace  stl
 
namespace  usd
 

Classes

class  AbstractHierarchyIterator
 
class  AbstractHierarchyIteratorInvisibleTest
 
class  AbstractHierarchyIteratorTest
 
class  AbstractHierarchyWriter
 
class  DupliParentFinder
 
class  EnsuredWriter
 
struct  ExportSubset
 
struct  HierarchyContext
 
class  HierarchyContextOrderTest
 
class  ObjectIdentifier
 
class  ObjectIdentifierOrderTest
 
class  PersistentID
 
class  PersistentIDTest
 
class  SubdivModifierDisabler
 
class  TestingHierarchyIterator
 

Functions

static bool remove_weak_subtrees (const HierarchyContext *context, AbstractHierarchyIterator::ExportGraph &clean_graph, const AbstractHierarchyIterator::ExportGraph &input_graph)
 
 TEST_F (AbstractHierarchyIteratorTest, ExportHierarchyTest)
 
 TEST_F (AbstractHierarchyIteratorTest, ExportSubsetTest)
 
 TEST_F (AbstractHierarchyIteratorInvisibleTest, ExportInvisibleTest)
 
bool operator< (const PersistentID &persistent_id_a, const PersistentID &persistent_id_b)
 
bool operator== (const PersistentID &persistent_id_a, const PersistentID &persistent_id_b)
 
std::ostream & operator<< (std::ostream &os, const PersistentID &persistent_id)
 
 TEST_F (HierarchyContextOrderTest, ObjectPointerTest)
 
 TEST_F (HierarchyContextOrderTest, DuplicatorPointerTest)
 
 TEST_F (HierarchyContextOrderTest, ExportParentTest)
 
 TEST_F (HierarchyContextOrderTest, TransitiveTest)
 
bool operator< (const ObjectIdentifier &obj_ident_a, const ObjectIdentifier &obj_ident_b)
 
bool operator== (const ObjectIdentifier &obj_ident_a, const ObjectIdentifier &obj_ident_b)
 
 TEST_F (ObjectIdentifierOrderTest, graph_root)
 
 TEST_F (ObjectIdentifierOrderTest, real_objects)
 
 TEST_F (ObjectIdentifierOrderTest, duplicated_objects)
 
 TEST_F (ObjectIdentifierOrderTest, behavior_as_map_keys)
 
 TEST_F (ObjectIdentifierOrderTest, map_copy_and_update)
 
 TEST_F (PersistentIDTest, is_from_same_instancer)
 
 TEST_F (PersistentIDTest, instancer_id)
 
 TEST_F (PersistentIDTest, as_object_name_suffix)
 
std::string path_reference (StringRefNull filepath, StringRefNull base_src, StringRefNull base_dst, ePathReferenceMode mode, Set< std::pair< std::string, std::string > > *copy_set)
 
void path_reference_copy (const Set< std::pair< std::string, std::string > > &copy_set)
 

Function Documentation

◆ operator<() [1/2]

bool blender::io::operator< ( const ObjectIdentifier & obj_ident_a,
const ObjectIdentifier & obj_ident_b )

◆ operator<() [2/2]

bool blender::io::operator< ( const PersistentID & persistent_id_a,
const PersistentID & persistent_id_b )

Definition at line 95 of file dupli_persistent_id.cc.

◆ operator<<()

std::ostream & blender::io::operator<< ( std::ostream & os,
const PersistentID & persistent_id )

Definition at line 136 of file dupli_persistent_id.cc.

◆ operator==() [1/2]

bool blender::io::operator== ( const ObjectIdentifier & obj_ident_a,
const ObjectIdentifier & obj_ident_b )

◆ operator==() [2/2]

bool blender::io::operator== ( const PersistentID & persistent_id_a,
const PersistentID & persistent_id_b )

Definition at line 116 of file dupli_persistent_id.cc.

◆ path_reference()

std::string blender::io::path_reference ( StringRefNull filepath,
StringRefNull base_src,
StringRefNull base_dst,
ePathReferenceMode mode,
Set< std::pair< std::string, std::string > > * copy_set = nullptr )

Return a filepath relative to a destination directory, for use with exporters.

When PATH_REFERENCE_COPY mode is used, the file path pair (source path, destination path) is added to the copy_set.

Equivalent of bpy_extras.io_utils.path_reference.

Definition at line 12 of file path_util.cc.

References BLI_assert_msg, BLI_path_abs(), BLI_path_basename(), BLI_path_contains(), BLI_path_is_rel(), BLI_path_join, BLI_path_normalize(), BLI_path_rel(), blender::StringRefNull::c_str(), PATH_MAX, PATH_REFERENCE_ABSOLUTE, PATH_REFERENCE_AUTO, PATH_REFERENCE_COPY, PATH_REFERENCE_MATCH, PATH_REFERENCE_RELATIVE, PATH_REFERENCE_STRIP, and STRNCPY.

◆ path_reference_copy()

void blender::io::path_reference_copy ( const Set< std::pair< std::string, std::string > > & copy_set)

Execute copying files of path_reference.

Definition at line 61 of file path_util.cc.

References BLI_copy(), BLI_exists(), BLI_file_ensure_parent_dir_exists(), BLI_path_cmp_normalized(), and copy().

Referenced by blender::io::obj::MTLWriter::write_materials().

◆ remove_weak_subtrees()

static bool blender::io::remove_weak_subtrees ( const HierarchyContext * context,
AbstractHierarchyIterator::ExportGraph & clean_graph,
const AbstractHierarchyIterator::ExportGraph & input_graph )
static

◆ TEST_F() [1/15]

blender::io::TEST_F ( AbstractHierarchyIteratorInvisibleTest ,
ExportInvisibleTest  )

Definition at line 322 of file abstract_hierarchy_iterator_test.cc.

References DAG_EVAL_RENDER, EXPECT_EQ(), and SEP_STR.

◆ TEST_F() [2/15]

blender::io::TEST_F ( AbstractHierarchyIteratorTest ,
ExportHierarchyTest  )

Definition at line 123 of file abstract_hierarchy_iterator_test.cc.

References DAG_EVAL_RENDER, EXPECT_EQ(), and SEP_STR.

◆ TEST_F() [3/15]

◆ TEST_F() [4/15]

◆ TEST_F() [5/15]

blender::io::TEST_F ( HierarchyContextOrderTest ,
ExportParentTest  )

◆ TEST_F() [6/15]

blender::io::TEST_F ( HierarchyContextOrderTest ,
ObjectPointerTest  )

◆ TEST_F() [7/15]

◆ TEST_F() [8/15]

◆ TEST_F() [9/15]

blender::io::TEST_F ( ObjectIdentifierOrderTest ,
duplicated_objects  )

◆ TEST_F() [10/15]

◆ TEST_F() [11/15]

◆ TEST_F() [12/15]

blender::io::TEST_F ( ObjectIdentifierOrderTest ,
real_objects  )

◆ TEST_F() [13/15]

blender::io::TEST_F ( PersistentIDTest ,
as_object_name_suffix  )

Definition at line 199 of file object_identifier_test.cc.

References EXPECT_EQ().

◆ TEST_F() [14/15]

blender::io::TEST_F ( PersistentIDTest ,
instancer_id  )

◆ TEST_F() [15/15]

blender::io::TEST_F ( PersistentIDTest ,
is_from_same_instancer  )