Blender V5.3
DEG_depsgraph_query.hh File Reference
#include "BLI_enum_flags.hh"
#include "BLI_function_ref.hh"
#include "BLI_iterator.hh"
#include "BLI_set.hh"
#include "DEG_depsgraph.hh"
#include "DEG_depsgraph_build.hh"
#include "DNA_object_types.h"
#include "BKE_duplilist.hh"
#include "BKE_object_types.hh"

Go to the source code of this file.

Classes

struct  blender::DEGObjectIterSettings
struct  blender::DEGObjectIterData
struct  blender::DEGIDIterData

Namespaces

namespace  blender
 BMesh Iterators.
namespace  blender::evil

Functions

bool blender::evil::DEG_iterator_temp_object_from_dupli (const Object *dupli_parent, const DupliObject *dupli, eEvaluationMode eval_mode, bool do_matrix_setup, Object *r_temp_object, bke::ObjectRuntime *r_temp_runtime)
void blender::evil::DEG_iterator_temp_object_free_properties (const DupliObject *dupli, Object *temp_object)
DEG input data
Scene * blender::DEG_get_input_scene (const Depsgraph *graph)
ViewLayer * blender::DEG_get_input_view_layer (const Depsgraph *graph)
Main * blender::DEG_get_bmain (const Depsgraph *graph)
eEvaluationMode blender::DEG_get_mode (const Depsgraph *graph)
float blender::DEG_get_ctime (const Depsgraph *graph)
DEG evaluated data
bool blender::DEG_id_type_updated (const Depsgraph *depsgraph, short id_type)
bool blender::DEG_id_type_any_updated (const Depsgraph *depsgraph)
bool blender::DEG_id_is_user_modified (const Depsgraph *graph, const ID *id)
bool blender::DEG_scene_component_is_user_modified (const Depsgraph *graph, const Scene *scene, eDepsSceneComponentType component_type)
bool blender::DEG_id_type_any_exists (const Depsgraph *depsgraph, short id_type)
uint32_t blender::DEG_get_eval_flags_for_id (const Depsgraph *graph, const ID *id)
void blender::DEG_get_customdata_mask_for_object (const Depsgraph *graph, Object *object, CustomData_MeshMasks *r_mask)
Scene * blender::DEG_get_evaluated_scene (const Depsgraph *graph)
ViewLayer * blender::DEG_get_evaluated_view_layer (const Depsgraph *graph)
ID * blender::DEG_get_evaluated_id (const Depsgraph *depsgraph, ID *id)
const ID * blender::DEG_get_evaluated_id (const Depsgraph *depsgraph, const ID *id)
template<typename T>
T * blender::DEG_get_evaluated (const Depsgraph *depsgraph, T *id)
template<typename T>
const T * blender::DEG_get_evaluated (const Depsgraph *depsgraph, const T *id)
void blender::DEG_get_evaluated_rna_pointer (const Depsgraph *depsgraph, PointerRNA *ptr, PointerRNA *r_ptr_eval)
ID * blender::DEG_get_original_id (ID *id)
const ID * blender::DEG_get_original_id (const ID *id)
template<typename T>
T * blender::DEG_get_original (T *id)
template<typename T>
const T * blender::DEG_get_original (const T *id)
Depsgraph * blender::DEG_get_depsgraph_by_id (const ID &id)
bool blender::DEG_is_original_id (const ID *id)
template<typename T>
bool blender::DEG_is_original (const T *id)
bool blender::DEG_is_evaluated_id (const ID *id)
template<typename T>
bool blender::DEG_is_evaluated (const T *id)
bool blender::DEG_is_fully_evaluated (const Depsgraph *depsgraph)
bool blender::DEG_id_is_fully_evaluated (const Depsgraph *depsgraph, const ID *id_eval)
bool blender::DEG_object_geometry_is_evaluated (const Object &object)
bool blender::DEG_object_transform_is_evaluated (const Object &object)
bool blender::DEG_collection_geometry_is_evaluated (const Collection &collection)
DEG object iterators - Manual dupli iteration

Helper functions for handling dupli instances iteration manually (ie. without passing DEG_ITER_OBJECT_FLAG_DUPLI to DEGObjectIterSettings::flags)

bool blender::DEG_iterator_object_is_visible (eEvaluationMode eval_mode, const Object *ob)
bool blender::DEG_iterator_dupli_is_visible (const DupliObject *dupli, eEvaluationMode eval_mode)
DEG ID iterators
void blender::DEG_iterator_ids_begin (BLI_Iterator *iter, DEGIDIterData *data)
void blender::DEG_iterator_ids_next (BLI_Iterator *iter)
void blender::DEG_iterator_ids_end (BLI_Iterator *iter)
DEG query evaluation timings
std::optional< double > blender::DEG_get_last_evaluation_time (const Depsgraph *depsgraph)

DEG object iterators

#define DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS
#define DEG_OBJECT_ITER_BEGIN(settings_, instance_)
#define DEG_OBJECT_ITER_END
enum  blender::DegIterFlag {
  blender::DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY = (1 << 0) , blender::DEG_ITER_OBJECT_FLAG_LINKED_INDIRECTLY = (1 << 1) , blender::DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET = (1 << 2) , blender::DEG_ITER_OBJECT_FLAG_VISIBLE = (1 << 3) ,
  blender::DEG_ITER_OBJECT_FLAG_DUPLI = (1 << 4)
}
void blender::DEG_iterator_objects_begin (BLI_Iterator *iter, DEGObjectIterData *data)
void blender::DEG_iterator_objects_next (BLI_Iterator *iter)
void blender::DEG_iterator_objects_end (BLI_Iterator *iter)

DEG traversal

enum  { blender::DEG_FOREACH_COMPONENT_IGNORE_TRANSFORM_SOLVERS = (1 << 0) }
using blender::DEGForeachIDCallback = FunctionRef<void(ID *id)>
using blender::DEGForeachIDComponentCallback
using blender::DEGForeachNamedIDComponentCallback
void blender::DEG_foreach_ancestor_ID (const Depsgraph *depsgraph, const ID *id, DEGForeachIDCallback callback)
void blender::DEG_foreach_dependent_ID (const Depsgraph *depsgraph, const ID *id, DEGForeachIDCallback callback)
void blender::DEG_foreach_dependent_ID_component (const Depsgraph *depsgraph, const ID *id, eDepsObjectComponentType source_component_type, int flags, DEGForeachIDComponentCallback callback)
void blender::DEG_foreach_dependent_component (const Depsgraph *depsgraph, const ID *start_id, eDepsObjectComponentType start_component_type, StringRef start_component_name, DEGForeachNamedIDComponentCallback callback)
void blender::DEG_foreach_ID (const Depsgraph *depsgraph, DEGForeachIDCallback callback)
bool blender::DEG_scene_component_depends_on_time (const Depsgraph &depsgraph, const Scene &scene, const eDepsSceneComponentType component_type)

Detailed Description

Public API for Querying Depsgraph.

Definition in file DEG_depsgraph_query.hh.

Macro Definition Documentation

◆ DEG_OBJECT_ITER_BEGIN

#define DEG_OBJECT_ITER_BEGIN ( settings_,
instance_ )

◆ DEG_OBJECT_ITER_END

◆ DEG_OBJECT_ITER_FOR_RENDER_ENGINE_FLAGS