Blender V4.3
blender::bke::cryptomatte::CryptomatteStampDataCallbackData Struct Reference

#include <BKE_cryptomatte.hh>

Static Public Member Functions

static blender::StringRef extract_layer_hash (blender::StringRefNull key)
 
static void extract_layer_names (void *_data, const char *propname, char *propvalue, int propvalue_maxncpy)
 
static void extract_layer_manifest (void *_data, const char *propname, char *propvalue, int propvalue_maxncpy)
 

Public Attributes

CryptomatteSessionsession
 
blender::Map< std::string, std::string > hash_to_layer_name
 

Detailed Description

Definition at line 111 of file BKE_cryptomatte.hh.

Member Function Documentation

◆ extract_layer_hash()

blender::StringRef blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_hash ( blender::StringRefNull key)
static

Extract the hash from a stamp data key.

Cryptomatte keys are formatted as "cryptomatte/{layer_hash}/{attribute}".

Definition at line 580 of file cryptomatte.cc.

References BLI_assert, blender::StringRefBase::find_first_of(), blender::StringRefBase::find_last_of(), blender::StringRefBase::not_found, blender::StringRefBase::startswith(), and blender::StringRefBase::substr().

Referenced by extract_layer_manifest(), and extract_layer_names().

◆ extract_layer_manifest()

void blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_manifest ( void * _data,
const char * propname,
char * propvalue,
int propvalue_maxncpy )
static

◆ extract_layer_names()

void blender::bke::cryptomatte::CryptomatteStampDataCallbackData::extract_layer_names ( void * _data,
const char * propname,
char * propvalue,
int propvalue_maxncpy )
static

Member Data Documentation

◆ hash_to_layer_name

blender::Map<std::string, std::string> blender::bke::cryptomatte::CryptomatteStampDataCallbackData::hash_to_layer_name

Definition at line 113 of file BKE_cryptomatte.hh.

◆ session

CryptomatteSession* blender::bke::cryptomatte::CryptomatteStampDataCallbackData::session

Definition at line 112 of file BKE_cryptomatte.hh.

Referenced by CryptomatteSession::CryptomatteSession().


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