Blender  V3.3
Public Types | Static Public Member Functions | Static Protected Member Functions | List of all members
blender::compositor::DebugInfo Class Reference

#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 *, GroupStateGroupStateMap
 

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

Detailed Description

Definition at line 28 of file COM_Debug.h.

Member Typedef Documentation

◆ GroupStateMap

Definition at line 34 of file COM_Debug.h.

◆ NodeNameMap

Definition at line 32 of file COM_Debug.h.

◆ OpNameMap

Definition at line 33 of file COM_Debug.h.

Member Enumeration Documentation

◆ GroupState

Enumerator
EG_WAIT 
EG_RUNNING 
EG_FINISHED 

Definition at line 30 of file COM_Debug.h.

Member Function Documentation

◆ convert_started()

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

Definition at line 53 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 ( const ExecutionSystem system)
inlinestatic

◆ execution_group_finished()

static void blender::compositor::DebugInfo::execution_group_finished ( const ExecutionGroup group)
inlinestatic

◆ execution_group_started()

static void blender::compositor::DebugInfo::execution_group_started ( const ExecutionGroup group)
inlinestatic

◆ export_operation()

void blender::compositor::DebugInfo::export_operation ( const NodeOperation op,
MemoryBuffer render 
)
staticprotected

◆ graphviz()

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

◆ graphviz_legend()

int blender::compositor::DebugInfo::graphviz_legend ( char *  str,
int  maxlen,
bool  has_execution_groups 
)
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().

◆ graphviz_legend_color()

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

Definition at line 189 of file COM_Debug.cc.

References color, len, snprintf, 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 209 of file COM_Debug.cc.

References color, len, snprintf, and str.

Referenced by graphviz_legend().

◆ 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 200 of file COM_Debug.cc.

References len, snprintf, and str.

◆ graphviz_operation()

int blender::compositor::DebugInfo::graphviz_operation ( const ExecutionSystem system,
NodeOperation operation,
const ExecutionGroup group,
char *  str,
int  maxlen 
)
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().

◆ 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 74 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 39 of file COM_Debug.cc.

References node.

◆ 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 88 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 48 of file COM_Debug.cc.

◆ operation_read_write_buffer()

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

◆ 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: