Blender V5.3
blender::bke::cryptomatte::CryptomatteLayer Struct Reference

#include <BKE_cryptomatte.hh>

Public Member Functions

uint32_t add_ID (const ID &id)
void add_hash (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 (StringRefNull manifest)

Public Attributes

Map< std::string, CryptomatteHash > hashes

Detailed Description

Definition at line 95 of file BKE_cryptomatte.hh.

Member Function Documentation

◆ add_hash()

void blender::bke::cryptomatte::CryptomatteLayer::add_hash ( StringRef name,
CryptomatteHash cryptomatte_hash )

Definition at line 575 of file cryptomatte.cc.

References hashes.

Referenced by add_ID().

◆ add_ID()

uint32_t blender::bke::cryptomatte::CryptomatteLayer::add_ID ( const ID & id)

◆ manifest()

std::string blender::bke::cryptomatte::CryptomatteLayer::manifest ( ) const

Definition at line 591 of file cryptomatte.cc.

References blender::bke::cryptomatte::manifest::to_manifest().

Referenced by read_from_manifest().

◆ operator[]()

std::optional< std::string > blender::bke::cryptomatte::CryptomatteLayer::operator[] ( float encoded_hash) const

◆ read_from_manifest()

std::unique_ptr< CryptomatteLayer > blender::bke::cryptomatte::CryptomatteLayer::read_from_manifest ( StringRefNull manifest)
static

Member Data Documentation

◆ hashes

Map<std::string, CryptomatteHash> blender::bke::cryptomatte::CryptomatteLayer::hashes

Definition at line 96 of file BKE_cryptomatte.hh.

Referenced by add_hash(), and operator[]().


The documentation for this struct was generated from the following files: