|
Blender V5.0
|
#include <BKE_cryptomatte.hh>
Public Member Functions | |
| uint32_t | add_ID (const ID &id) |
| void | add_hash (blender::StringRef name, CryptomatteHash cryptomatte_hash) |
| std::string | manifest () const |
| std::optional< std::string > | operator[] (float encoded_hash) const |
Static Public Member Functions | |
| static std::unique_ptr< CryptomatteLayer > | read_from_manifest (blender::StringRefNull manifest) |
Public Attributes | |
| blender::Map< std::string, CryptomatteHash > | hashes |
Definition at line 93 of file BKE_cryptomatte.hh.
| void CryptomatteLayer::add_hash | ( | blender::StringRef | name, |
| CryptomatteHash | cryptomatte_hash ) |
Definition at line 578 of file cryptomatte.cc.
Referenced by add_ID(), blender::bke::cryptomatte::manifest::from_manifest(), blender::bke::cryptomatte::tests::TEST(), and blender::bke::cryptomatte::tests::TEST().
| uint32_t CryptomatteLayer::add_ID | ( | const ID & | id | ) |
Definition at line 567 of file cryptomatte.cc.
References add_hash(), BKE_cryptomatte_hash(), BLI_strnlen(), MAX_NAME, and name.
Referenced by BKE_cryptomatte_material_hash(), BKE_cryptomatte_object_hash(), CryptomatteSession::CryptomatteSession(), and CryptomatteSession::init().
| std::string CryptomatteLayer::manifest | ( | ) | const |
Definition at line 594 of file cryptomatte.cc.
References blender::bke::cryptomatte::manifest::to_manifest().
Referenced by BKE_cryptomatte_store_metadata(), read_from_manifest(), blender::bke::cryptomatte::tests::TEST(), and blender::bke::cryptomatte::tests::TEST().
| std::optional< std::string > CryptomatteLayer::operator[] | ( | float | encoded_hash | ) | const |
Definition at line 583 of file cryptomatte.cc.
References BKE_cryptomatte_hash_to_float(), hashes, and blender::Map< Key, Value, InlineBufferCapacity, ProbingStrategy, Hash, IsEqual, Slot, Allocator >::items().
|
static |
Definition at line 559 of file cryptomatte.cc.
References blender::bke::cryptomatte::manifest::from_manifest(), and manifest().
| blender::Map<std::string, CryptomatteHash> blender::bke::cryptomatte::CryptomatteLayer::hashes |
Definition at line 94 of file BKE_cryptomatte.hh.
Referenced by add_hash(), operator[](), and blender::bke::cryptomatte::manifest::to_manifest().