Blender
V3.3
|
#include <COM_Debug.h>
Public Types | |
enum | GroupState { EG_WAIT , EG_RUNNING , EG_FINISHED } |
typedef std::map< const Node *, std::string > | NodeNameMap |
typedef std::map< const NodeOperation *, std::string > | OpNameMap |
typedef std::map< const ExecutionGroup *, GroupState > | GroupStateMap |
Static Public Member Functions | |
static std::string | node_name (const Node *node) |
static std::string | operation_name (const NodeOperation *op) |
static void | convert_started () |
static void | execute_started (const ExecutionSystem *system) |
static void | node_added (const Node *node) |
static void | node_to_operations (const Node *node) |
static void | operation_added (const NodeOperation *operation) |
static void | operation_read_write_buffer (const NodeOperation *operation) |
static void | execution_group_started (const ExecutionGroup *group) |
static void | execution_group_finished (const ExecutionGroup *group) |
static void | operation_rendered (const NodeOperation *op, MemoryBuffer *render) |
static void | graphviz (const ExecutionSystem *system, StringRefNull name="") |
Static Protected Member Functions | |
static int | graphviz_operation (const ExecutionSystem *system, NodeOperation *operation, const ExecutionGroup *group, char *str, int maxlen) |
static int | graphviz_legend_color (const char *name, const char *color, char *str, int maxlen) |
static int | graphviz_legend_line (const char *name, const char *color, const char *style, char *str, int maxlen) |
static int | graphviz_legend_group (const char *name, const char *color, const char *style, char *str, int maxlen) |
static int | graphviz_legend (char *str, int maxlen, bool has_execution_groups) |
static bool | graphviz_system (const ExecutionSystem *system, char *str, int maxlen) |
static void | export_operation (const NodeOperation *op, MemoryBuffer *render) |
static void | delete_operation_exports () |
Definition at line 28 of file COM_Debug.h.
typedef std::map<const ExecutionGroup *, GroupState> blender::compositor::DebugInfo::GroupStateMap |
Definition at line 34 of file COM_Debug.h.
typedef std::map<const Node *, std::string> blender::compositor::DebugInfo::NodeNameMap |
Definition at line 32 of file COM_Debug.h.
typedef std::map<const NodeOperation *, std::string> blender::compositor::DebugInfo::OpNameMap |
Definition at line 33 of file COM_Debug.h.
Enumerator | |
---|---|
EG_WAIT | |
EG_RUNNING | |
EG_FINISHED |
Definition at line 30 of file COM_Debug.h.
|
inlinestatic |
Definition at line 53 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ.
|
staticprotected |
Definition at line 466 of file COM_Debug.cc.
References BLI_delete(), BLI_exists(), BLI_file_attributes(), BLI_filelist_dir_contents(), BLI_filelist_free(), BLI_is_file(), BLI_path_extension_check(), file, FILE_ATTR_ANY_LINK, and blender::compositor::get_operations_export_dir().
Referenced by execute_started().
|
inlinestatic |
Definition at line 60 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ, blender::compositor::COM_EXPORT_OPERATION_BUFFERS, delete_operation_exports(), and EG_WAIT.
Referenced by blender::compositor::ExecutionSystem::execute().
|
inlinestatic |
Definition at line 108 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ, and EG_FINISHED.
Referenced by blender::compositor::ExecutionGroup::execute().
|
inlinestatic |
Definition at line 102 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ, and EG_RUNNING.
Referenced by blender::compositor::ExecutionGroup::execute().
|
staticprotected |
Definition at line 448 of file COM_Debug.cc.
References BLI_make_existing_file(), blender::compositor::MemoryBuffer::copy_from(), ImBuf::flags, blender::compositor::MemoryBuffer::get_height(), blender::compositor::NodeOperation::get_id(), blender::compositor::MemoryBuffer::get_num_channels(), blender::compositor::get_operations_export_dir(), blender::compositor::MemoryBuffer::get_rect(), blender::compositor::MemoryBuffer::get_width(), height, IB_rectfloat, IMB_allocImBuf(), IMB_freeImBuf(), IMB_saveiff(), blender::compositor::operation_class_name(), ImBuf::rect_float, std::to_string(), and width.
Referenced by operation_rendered().
|
static |
Definition at line 414 of file COM_Debug.cc.
References basename(), BKE_tempdir_session, BLI_fopen(), BLI_join_dirfile(), BLI_snprintf(), BLI_strncpy(), blender::compositor::COM_EXPORT_GRAPHVIZ, FILE_MAX, graphviz_system(), blender::StringRefBase::is_empty(), MEM_freeN, MEM_mallocN, and str.
Referenced by blender::compositor::FullFrameExecutionModel::execute(), and blender::compositor::ExecutionGroup::execute().
|
staticprotected |
Definition at line 223 of file COM_Debug.cc.
References graphviz_legend_color(), graphviz_legend_group(), len, snprintf, and str.
Referenced by graphviz_system().
|
staticprotected |
Definition at line 189 of file COM_Debug.cc.
References color, len, snprintf, and str.
Referenced by graphviz_legend().
|
staticprotected |
Definition at line 209 of file COM_Debug.cc.
References color, len, snprintf, and str.
Referenced by graphviz_legend().
|
staticprotected |
Definition at line 200 of file COM_Debug.cc.
|
staticprotected |
Definition at line 57 of file COM_Debug.cc.
References blender::compositor::ConstantOperation::can_get_constant_elem(), blender::compositor::Color, blender::compositor::COM_GRAPHVIZ_SHOW_NODE_NAME, blender::compositor::NodeOperation::get_canvas(), blender::compositor::ConstantOperation::get_constant_elem(), blender::compositor::ExecutionSystem::get_context(), blender::compositor::NodeOperationInput::get_data_type(), blender::compositor::NodeOperationOutput::get_data_type(), blender::compositor::NodeOperation::get_flags(), blender::compositor::NodeOperation::get_height(), blender::compositor::NodeOperation::get_id(), blender::compositor::NodeOperation::get_input_socket(), blender::compositor::NodeOperation::get_name(), blender::compositor::NodeOperation::get_number_of_input_sockets(), blender::compositor::NodeOperation::get_number_of_output_sockets(), blender::compositor::NodeOperation::get_output_socket(), blender::compositor::NodeOperation::get_width(), blender::compositor::ViewerOperation::is_active_viewer_output(), blender::compositor::NodeOperationFlags::is_constant_operation, blender::compositor::NodeOperation::is_output_operation(), blender::compositor::NodeOperationFlags::is_read_buffer_operation, blender::compositor::CompositorContext::is_rendering(), blender::compositor::NodeOperationFlags::is_set_operation, blender::compositor::NodeOperationFlags::is_viewer_operation, blender::compositor::NodeOperationFlags::is_write_buffer_operation, len, blender::compositor::operation_class_name(), snprintf, str, blender::compositor::Value, blender::compositor::Vector, rcti::xmin, and rcti::ymin.
Referenced by graphviz_system().
|
staticprotected |
Definition at line 276 of file COM_Debug.cc.
References blender::compositor::Color, color, EG_FINISHED, EG_RUNNING, EG_WAIT, from, blender::compositor::ExecutionSystem::get_context(), blender::compositor::CompositorContext::get_execution_model(), blender::compositor::NodeOperation::get_flags(), blender::compositor::NodeOperationInput::get_link(), blender::compositor::ReadBufferOperation::get_memory_proxy(), blender::compositor::NodeOperationInput::get_operation(), blender::compositor::MemoryProxy::get_write_buffer_operation(), graphviz_legend(), graphviz_operation(), blender::compositor::NodeOperationFlags::is_read_buffer_operation, l, len, snprintf, str, blender::compositor::Tiled, blender::compositor::Value, and blender::compositor::Vector.
Referenced by graphviz().
Definition at line 74 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ, and node.
Referenced by blender::compositor::NodeGraph::add_node().
|
static |
Definition at line 39 of file COM_Debug.cc.
References node.
Definition at line 81 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ, and node.
Referenced by blender::compositor::NodeOperationBuilder::convert_to_operations().
|
inlinestatic |
Definition at line 88 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ.
|
static |
Definition at line 48 of file COM_Debug.cc.
|
inlinestatic |
Definition at line 95 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_GRAPHVIZ.
Referenced by blender::compositor::NodeOperationBuilder::add_complex_operation_buffers().
|
inlinestatic |
Definition at line 115 of file COM_Debug.h.
References blender::compositor::COM_EXPORT_OPERATION_BUFFERS, export_operation(), and blender::compositor::MemoryBuffer::is_a_single_elem().