Blender  V3.3
Namespaces | Classes | Functions
blender::io Namespace Reference

Namespaces

 alembic
 
 gpencil
 
 obj
 
 serialize
 
 stl
 
 usd
 

Classes

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

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 94 of file dupli_persistent_id.cc.

◆ operator<<()

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

Definition at line 135 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 115 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 9 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(), BLI_strncpy(), blender::StringRefNull::c_str(), PATH_MAX, PATH_REFERENCE_ABSOLUTE, PATH_REFERENCE_AUTO, PATH_REFERENCE_COPY, PATH_REFERENCE_MATCH, PATH_REFERENCE_RELATIVE, and PATH_REFERENCE_STRIP.

◆ 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 59 of file path_util.cc.

References BLI_copy(), BLI_exists(), BLI_make_existing_file(), BLI_path_cmp_normalized(), copy(), and src.

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 321 of file abstract_hierarchy_iterator_test.cc.

References DAG_EVAL_RENDER, and EXPECT_EQ().

◆ TEST_F() [2/15]

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

Definition at line 122 of file abstract_hierarchy_iterator_test.cc.

References DAG_EVAL_RENDER, and EXPECT_EQ().

◆ TEST_F() [3/15]

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

◆ TEST_F() [4/15]

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

◆ TEST_F() [5/15]

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

◆ TEST_F() [6/15]

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

◆ TEST_F() [7/15]

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

◆ TEST_F() [8/15]

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

◆ TEST_F() [9/15]

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

◆ TEST_F() [10/15]

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

◆ TEST_F() [11/15]

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

◆ 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 204 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   
)