Blender
V3.3
|
Public Member Functions | |
CryptomatteSession ()=default | |
CryptomatteSession (const Main *bmain) | |
CryptomatteSession (StampData *stamp_data) | |
CryptomatteSession (const Scene *scene) | |
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 36 of file cryptomatte.cc.
|
default |
Referenced by BKE_cryptomatte_init_from_render_result(), and BKE_cryptomatte_init_from_scene().
CryptomatteSession::CryptomatteSession | ( | const Main * | bmain | ) |
Definition at line 54 of file cryptomatte.cc.
References blender::bke::cryptomatte::CryptomatteLayer::add_ID(), add_layer(), BLI_listbase_is_empty(), LISTBASE_FOREACH, Main::materials, materials, and Main::objects.
CryptomatteSession::CryptomatteSession | ( | StampData * | stamp_data | ) |
Definition at line 70 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 Scene * | scene | ) |
Definition at line 86 of file cryptomatte.cc.
References add_layer(), LISTBASE_FOREACH, scene, VIEW_LAYER_CRYPTOMATTE_ALL, VIEW_LAYER_CRYPTOMATTE_ASSET, VIEW_LAYER_CRYPTOMATTE_MATERIAL, VIEW_LAYER_CRYPTOMATTE_OBJECT, and Scene::view_layers.
blender::bke::cryptomatte::CryptomatteLayer & CryptomatteSession::add_layer | ( | std::string | layer_name | ) |
Definition at line 107 of file cryptomatte.cc.
References blender::Vector< T, InlineBufferCapacity, Allocator >::append(), blender::Vector< T, InlineBufferCapacity, Allocator >::contains(), layer_names, layers, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::lookup_or_add_default().
Referenced by BKE_cryptomatte_add_layer(), and CryptomatteSession().
std::optional< std::string > CryptomatteSession::operator[] | ( | float | encoded_hash | ) | const |
Definition at line 115 of file cryptomatte.cc.
References layers, result, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::values().
blender::Vector<std::string> CryptomatteSession::layer_names |
Definition at line 39 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 37 of file cryptomatte.cc.
Referenced by add_layer(), BKE_cryptomatte_material_hash(), BKE_cryptomatte_object_hash(), BKE_cryptomatte_store_metadata(), and operator[]().