|
Blender V5.0
|
Public Member Functions | |
| CryptomatteSession ()=default | |
| CryptomatteSession (const Main *bmain) | |
| CryptomatteSession (StampData *stamp_data) | |
| CryptomatteSession (const ViewLayer *view_layer) | |
| CryptomatteSession (const Scene *scene, bool build_meta_data=false) | |
| void | init (const ViewLayer *view_layer, bool build_meta_data=false) |
| blender::bke::cryptomatte::CryptomatteLayer & | add_layer (std::string layer_name) |
| std::optional< std::string > | operator[] (float encoded_hash) const |
Public Attributes | |
| blender::Map< std::string, blender::bke::cryptomatte::CryptomatteLayer > | layers |
| blender::Vector< std::string > | layer_names |
Definition at line 38 of file cryptomatte.cc.
|
default |
| CryptomatteSession::CryptomatteSession | ( | const Main * | bmain | ) |
Definition at line 56 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteLayer::add_ID(), add_layer(), BLI_listbase_is_empty(), Object::id, LISTBASE_FOREACH, Main::materials, Main::objects, Object::parent, RE_PASSNAME_CRYPTOMATTE_ASSET, RE_PASSNAME_CRYPTOMATTE_MATERIAL, and RE_PASSNAME_CRYPTOMATTE_OBJECT.
| CryptomatteSession::CryptomatteSession | ( | StampData * | stamp_data | ) |
Definition at line 83 of file cryptomatte.cc.
References BKE_stamp_info_callback(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_manifest(), blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_names(), and blender::bke::cryptomatte::CryptomatteStampDataCallbackData::session.
| CryptomatteSession::CryptomatteSession | ( | const ViewLayer * | view_layer | ) |
Definition at line 99 of file cryptomatte.cc.
References init().
Definition at line 104 of file cryptomatte.cc.
References BKE_scene_view_layers_synced_ensure(), init(), LISTBASE_FOREACH, and Scene::view_layers.
| blender::bke::cryptomatte::CryptomatteLayer & CryptomatteSession::add_layer | ( | std::string | layer_name | ) |
Definition at line 171 of file cryptomatte.cc.
References layer_names, and layers.
Referenced by BKE_cryptomatte_add_layer(), CryptomatteSession(), and init().
Definition at line 116 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteLayer::add_ID(), add_layer(), BKE_object_material_get(), BKE_view_layer_object_bases_get(), ViewLayer::cryptomatte_flag, i, Material::id, Object::id, LISTBASE_FOREACH, ViewLayer::name, Object::parent, RE_PASSNAME_CRYPTOMATTE_ASSET, RE_PASSNAME_CRYPTOMATTE_MATERIAL, RE_PASSNAME_CRYPTOMATTE_OBJECT, VIEW_LAYER_CRYPTOMATTE_ALL, VIEW_LAYER_CRYPTOMATTE_ASSET, VIEW_LAYER_CRYPTOMATTE_MATERIAL, and VIEW_LAYER_CRYPTOMATTE_OBJECT.
| std::optional< std::string > CryptomatteSession::operator[] | ( | float | encoded_hash | ) | const |
Definition at line 179 of file cryptomatte.cc.
| blender::Vector<std::string> CryptomatteSession::layer_names |
Definition at line 41 of file cryptomatte.cc.
Referenced by add_layer(), and blender::bke::cryptomatte::BKE_cryptomatte_layer_names_get().
| blender::Map<std::string, blender::bke::cryptomatte::CryptomatteLayer> CryptomatteSession::layers |
Definition at line 39 of file cryptomatte.cc.
Referenced by add_layer(), blender::bke::cryptomatte::BKE_cryptomatte_layer_get(), BKE_cryptomatte_material_hash(), BKE_cryptomatte_object_hash(), BKE_cryptomatte_store_metadata(), and operator[]().