Blender V4.3
blender::compositor::DebugInfo Class Reference

#include <COM_Debug.h>

Public Types

typedef std::map< const Node *, std::string > NodeNameMap
 
typedef std::map< const NodeOperation *, std::string > OpNameMap
 

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 ()
 
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 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, 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)
 
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 ()
 

Detailed Description

Definition at line 28 of file COM_Debug.h.

Member Typedef Documentation

◆ NodeNameMap

typedef std::map<const Node *, std::string> blender::compositor::DebugInfo::NodeNameMap

Definition at line 30 of file COM_Debug.h.

◆ OpNameMap

typedef std::map<const NodeOperation *, std::string> blender::compositor::DebugInfo::OpNameMap

Definition at line 31 of file COM_Debug.h.

Member Function Documentation

◆ convert_started()

static void blender::compositor::DebugInfo::convert_started ( )
inlinestatic

Definition at line 48 of file COM_Debug.h.

References blender::compositor::COM_EXPORT_GRAPHVIZ.

◆ delete_operation_exports()

void blender::compositor::DebugInfo::delete_operation_exports ( )
staticprotected

◆ execute_started()

static void blender::compositor::DebugInfo::execute_started ( )
inlinestatic

◆ export_operation()

◆ graphviz()

void blender::compositor::DebugInfo::graphviz ( const ExecutionSystem * system,
StringRefNull name = "" )
static

◆ graphviz_legend()

int blender::compositor::DebugInfo::graphviz_legend ( char * str,
int maxlen )
staticprotected

Definition at line 222 of file COM_Debug.cc.

References graphviz_legend_color(), len, and str.

Referenced by graphviz_system().

◆ graphviz_legend_color()

int blender::compositor::DebugInfo::graphviz_legend_color ( const char * name,
const char * color,
char * str,
int maxlen )
staticprotected

Definition at line 188 of file COM_Debug.cc.

References len, and str.

Referenced by graphviz_legend().

◆ graphviz_legend_group()

int blender::compositor::DebugInfo::graphviz_legend_group ( const char * name,
const char * color,
const char * style,
char * str,
int maxlen )
staticprotected

Definition at line 208 of file COM_Debug.cc.

References len, and str.

◆ graphviz_legend_line()

int blender::compositor::DebugInfo::graphviz_legend_line ( const char * name,
const char * color,
const char * style,
char * str,
int maxlen )
staticprotected

Definition at line 199 of file COM_Debug.cc.

References len, and str.

◆ graphviz_operation()

int blender::compositor::DebugInfo::graphviz_operation ( const ExecutionSystem * system,
NodeOperation * operation,
char * str,
int maxlen )
staticprotected

Definition at line 60 of file COM_Debug.cc.

References BLI_assert_unreachable, blender::compositor::ConstantOperation::can_get_constant_elem(), blender::compositor::Color, blender::compositor::COM_GRAPHVIZ_SHOW_NODE_NAME, blender::compositor::Float2, 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::CompositorContext::is_rendering(), blender::compositor::NodeOperationFlags::is_viewer_operation, len, blender::compositor::operation_class_name(), str, blender::compositor::Value, blender::compositor::Vector, rcti::xmin, and rcti::ymin.

Referenced by graphviz_system().

◆ graphviz_system()

bool blender::compositor::DebugInfo::graphviz_system ( const ExecutionSystem * system,
char * str,
int maxlen )
staticprotected

◆ node_added()

static void blender::compositor::DebugInfo::node_added ( const Node * node)
inlinestatic

Definition at line 65 of file COM_Debug.h.

References blender::compositor::COM_EXPORT_GRAPHVIZ, and node.

Referenced by blender::compositor::NodeGraph::add_node().

◆ node_name()

std::string blender::compositor::DebugInfo::node_name ( const Node * node)
static

Definition at line 42 of file COM_Debug.cc.

◆ node_to_operations()

static void blender::compositor::DebugInfo::node_to_operations ( const Node * node)
inlinestatic

◆ operation_added()

static void blender::compositor::DebugInfo::operation_added ( const NodeOperation * operation)
inlinestatic

Definition at line 79 of file COM_Debug.h.

References blender::compositor::COM_EXPORT_GRAPHVIZ.

◆ operation_name()

std::string blender::compositor::DebugInfo::operation_name ( const NodeOperation * op)
static

Definition at line 51 of file COM_Debug.cc.

◆ operation_read_write_buffer()

static void blender::compositor::DebugInfo::operation_read_write_buffer ( const NodeOperation * operation)
inlinestatic

Definition at line 86 of file COM_Debug.h.

References blender::compositor::COM_EXPORT_GRAPHVIZ.

◆ operation_rendered()

static void blender::compositor::DebugInfo::operation_rendered ( const NodeOperation * op,
MemoryBuffer * render )
inlinestatic

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