|
Blender V4.3
|
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 39 of file cryptomatte.cc.
|
default |
| CryptomatteSession::CryptomatteSession | ( | const Main * | bmain | ) |
Definition at line 59 of file cryptomatte.cc.
References add_layer(), BLI_listbase_is_empty(), LISTBASE_FOREACH, Main::materials, Main::objects, RE_PASSNAME_CRYPTOMATTE_MATERIAL, and RE_PASSNAME_CRYPTOMATTE_OBJECT.
| CryptomatteSession::CryptomatteSession | ( | StampData * | stamp_data | ) |
Definition at line 77 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 93 of file cryptomatte.cc.
References init().
Definition at line 98 of file cryptomatte.cc.
References BKE_scene_view_layers_synced_ensure(), init(), and LISTBASE_FOREACH.
| blender::bke::cryptomatte::CryptomatteLayer & CryptomatteSession::add_layer | ( | std::string | layer_name | ) |
Definition at line 152 of file cryptomatte.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), and layer_names.
Referenced by BKE_cryptomatte_add_layer(), CryptomatteSession(), and init().
Definition at line 110 of file cryptomatte.cc.
References add_layer(), BKE_object_material_get(), BKE_view_layer_object_bases_get(), ViewLayer::cryptomatte_flag, LISTBASE_FOREACH, ViewLayer::name, 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 160 of file cryptomatte.cc.
References result.
| blender::Vector<std::string> CryptomatteSession::layer_names |
Definition at line 42 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 40 of file cryptomatte.cc.
Referenced by blender::bke::cryptomatte::BKE_cryptomatte_layer_get(), BKE_cryptomatte_material_hash(), BKE_cryptomatte_object_hash(), and BKE_cryptomatte_store_metadata().