Blender V5.0
blender::deg::BuilderMap Class Reference

#include <deg_builder_map.h>

Public Types

enum  {
  TAG_ANIMATION = (1 << 0) , TAG_PARAMETERS = (1 << 1) , TAG_TRANSFORM = (1 << 2) , TAG_GEOMETRY = (1 << 3) ,
  TAG_SCENE_COMPOSITOR = (1 << 4) , TAG_SCENE_SEQUENCER = (1 << 5) , TAG_SCENE_AUDIO = (1 << 6) , TAG_COLLECTION_CHILDREN_HIERARCHY = (1 << 7) ,
  TAG_COMPLETE
}

Public Member Functions

bool check_is_built (ID *id, int tag=TAG_COMPLETE) const
void tag_built (ID *id, int tag=TAG_COMPLETE)
bool check_is_built_and_tag (ID *id, int tag=TAG_COMPLETE)
template<typename T>
bool check_is_built (T *datablock, int tag=TAG_COMPLETE) const
template<typename T>
void tag_built (T *datablock, int tag=TAG_COMPLETE)
template<typename T>
bool check_is_built_and_tag (T *datablock, int tag=TAG_COMPLETE)

Protected Member Functions

int get_ID_tag (ID *id) const

Protected Attributes

Map< ID *, int > id_tags_

Detailed Description

Definition at line 17 of file deg_builder_map.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
TAG_ANIMATION 
TAG_PARAMETERS 
TAG_TRANSFORM 
TAG_GEOMETRY 
TAG_SCENE_COMPOSITOR 
TAG_SCENE_SEQUENCER 
TAG_SCENE_AUDIO 
TAG_COLLECTION_CHILDREN_HIERARCHY 

Specific tag for whether the collection -> children object relations have been built. Purposefully not included in TAG_COMPLETE so it doesn't influence other decisions about whether the collection is considered complete.

TAG_COMPLETE 

Definition at line 19 of file deg_builder_map.h.

Member Function Documentation

◆ check_is_built() [1/2]

bool blender::deg::BuilderMap::check_is_built ( ID * id,
int tag = TAG_COMPLETE ) const

Definition at line 15 of file deg_builder_map.cc.

References get_ID_tag().

Referenced by check_is_built().

◆ check_is_built() [2/2]

template<typename T>
bool blender::deg::BuilderMap::check_is_built ( T * datablock,
int tag = TAG_COMPLETE ) const
inline

Definition at line 51 of file deg_builder_map.h.

References check_is_built(), T, and TAG_COMPLETE.

◆ check_is_built_and_tag() [1/2]

bool blender::deg::BuilderMap::check_is_built_and_tag ( ID * id,
int tag = TAG_COMPLETE )

Definition at line 25 of file deg_builder_map.cc.

References id_tags_, and result.

Referenced by check_is_built_and_tag().

◆ check_is_built_and_tag() [2/2]

template<typename T>
bool blender::deg::BuilderMap::check_is_built_and_tag ( T * datablock,
int tag = TAG_COMPLETE )
inline

Definition at line 59 of file deg_builder_map.h.

References check_is_built_and_tag(), T, and TAG_COMPLETE.

◆ get_ID_tag()

int blender::deg::BuilderMap::get_ID_tag ( ID * id) const
protected

Definition at line 33 of file deg_builder_map.cc.

References id_tags_.

Referenced by check_is_built().

◆ tag_built() [1/2]

void blender::deg::BuilderMap::tag_built ( ID * id,
int tag = TAG_COMPLETE )

Definition at line 20 of file deg_builder_map.cc.

References id_tags_.

Referenced by tag_built().

◆ tag_built() [2/2]

template<typename T>
void blender::deg::BuilderMap::tag_built ( T * datablock,
int tag = TAG_COMPLETE )
inline

Definition at line 55 of file deg_builder_map.h.

References T, tag_built(), and TAG_COMPLETE.

Member Data Documentation

◆ id_tags_

Map<ID *, int> blender::deg::BuilderMap::id_tags_
protected

Definition at line 67 of file deg_builder_map.h.

Referenced by check_is_built_and_tag(), get_ID_tag(), and tag_built().


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