Blender  V2.93
Macros | Enumerations | Functions
ED_node.h File Reference

Go to the source code of this file.

Macros

#define NODE_GRID_STEPS   5
 

Enumerations

enum  NodeBorder { NODE_TOP = 1 , NODE_BOTTOM = 2 , NODE_LEFT = 4 , NODE_RIGHT = 8 }
 

Functions

void ED_node_cursor_location_get (const struct SpaceNode *snode, float value[2])
 
void ED_node_cursor_location_set (struct SpaceNode *snode, const float value[2])
 
int ED_node_tree_path_length (struct SpaceNode *snode)
 
void ED_node_tree_path_get (struct SpaceNode *snode, char *value)
 
void ED_node_tree_path_get_fixedbuf (struct SpaceNode *snode, char *value, int max_length)
 
void ED_node_tree_start (struct SpaceNode *snode, struct bNodeTree *ntree, struct ID *id, struct ID *from)
 
void ED_node_tree_push (struct SpaceNode *snode, struct bNodeTree *ntree, struct bNode *gnode)
 
void ED_node_tree_pop (struct SpaceNode *snode)
 
int ED_node_tree_depth (struct SpaceNode *snode)
 
struct bNodeTreeED_node_tree_get (struct SpaceNode *snode, int level)
 
void ED_node_set_active_viewer_key (struct SpaceNode *snode)
 
void ED_node_init_butfuncs (void)
 
void ED_init_custom_node_type (struct bNodeType *ntype)
 
void ED_init_custom_node_socket_type (struct bNodeSocketType *stype)
 
void ED_init_standard_node_socket_type (struct bNodeSocketType *stype)
 
void ED_init_node_socket_type_virtual (struct bNodeSocketType *stype)
 
void ED_node_sample_set (const float col[4])
 
void ED_node_draw_snap (struct View2D *v2d, const float cent[2], float size, NodeBorder border, unsigned int pos)
 
void ED_node_socket_draw (struct bNodeSocket *sock, const struct rcti *rect, const float color[4], float scale)
 
void ED_node_tree_update (const struct bContext *C)
 
void ED_node_tag_update_id (struct ID *id)
 
void ED_node_tag_update_nodetree (struct Main *bmain, struct bNodeTree *ntree, struct bNode *node)
 
void ED_node_sort (struct bNodeTree *ntree)
 
float ED_node_grid_size (void)
 
void ED_node_link_intersect_test (struct ScrArea *area, int test)
 
void ED_node_link_insert (struct Main *bmain, struct ScrArea *area)
 
void ED_node_set_tree_type (struct SpaceNode *snode, struct bNodeTreeType *typeinfo)
 
bool ED_node_is_compositor (struct SpaceNode *snode)
 
bool ED_node_is_shader (struct SpaceNode *snode)
 
bool ED_node_is_texture (struct SpaceNode *snode)
 
bool ED_node_is_geometry (struct SpaceNode *snode)
 
void ED_node_shader_default (const struct bContext *C, struct ID *id)
 
void ED_node_composit_default (const struct bContext *C, struct Scene *scene)
 
void ED_node_texture_default (const struct bContext *C, struct Tex *tex)
 
bool ED_node_select_check (ListBase *lb)
 
void ED_node_select_all (ListBase *lb, int action)
 
void ED_node_post_apply_transform (struct bContext *C, struct bNodeTree *ntree)
 
void ED_node_set_active (struct Main *bmain, struct bNodeTree *ntree, struct bNode *node, bool *r_active_texture_changed)
 
void ED_node_composite_job (const struct bContext *C, struct bNodeTree *nodetree, struct Scene *scene_owner)
 
void ED_operatormacros_node (void)
 
bool ED_space_node_get_position (struct Main *bmain, struct SpaceNode *snode, struct ARegion *region, const int mval[2], float fpos[2])
 
bool ED_space_node_color_sample (struct Main *bmain, struct SpaceNode *snode, struct ARegion *region, const int mval[2], float r_col[3])
 

Macro Definition Documentation

◆ NODE_GRID_STEPS

#define NODE_GRID_STEPS   5

Definition at line 51 of file ED_node.h.

Enumeration Type Documentation

◆ NodeBorder

enum NodeBorder
Enumerator
NODE_TOP 
NODE_BOTTOM 
NODE_LEFT 
NODE_RIGHT 

Definition at line 44 of file ED_node.h.

Function Documentation

◆ ED_init_custom_node_socket_type()

void ED_init_custom_node_socket_type ( struct bNodeSocketType stype)

Definition at line 3318 of file drawnode.c.

References bNodeSocketType::draw, and node_socket_button_label().

◆ ED_init_custom_node_type()

void ED_init_custom_node_type ( struct bNodeType ntype)

◆ ED_init_node_socket_type_virtual()

void ED_init_node_socket_type_virtual ( struct bNodeSocketType stype)

◆ ED_init_standard_node_socket_type()

void ED_init_standard_node_socket_type ( struct bNodeSocketType stype)

◆ ED_node_composit_default()

void ED_node_composit_default ( const struct bContext C,
struct Scene scene 
)

◆ ED_node_composite_job()

void ED_node_composite_job ( const struct bContext C,
struct bNodeTree nodetree,
struct Scene scene_owner 
)

Referenced by image_refresh(), and node_area_refresh().

◆ ED_node_cursor_location_get()

void ED_node_cursor_location_get ( const struct SpaceNode snode,
float  value[2] 
)

◆ ED_node_cursor_location_set()

void ED_node_cursor_location_set ( struct SpaceNode snode,
const float  value[2] 
)

Definition at line 611 of file space_node.c.

References copy_v2_v2(), SpaceNode_Runtime::cursor, and SpaceNode::runtime.

◆ ED_node_draw_snap()

void ED_node_draw_snap ( struct View2D v2d,
const float  cent[2],
float  size,
NodeBorder  border,
unsigned int  pos 
)

◆ ED_node_grid_size()

float ED_node_grid_size ( void  )

Definition at line 96 of file node_draw.cc.

Referenced by initSnapSpatial(), and node_draw_space().

◆ ED_node_init_butfuncs()

void ED_node_init_butfuncs ( void  )

◆ ED_node_is_compositor()

bool ED_node_is_compositor ( struct SpaceNode snode)

◆ ED_node_is_geometry()

bool ED_node_is_geometry ( struct SpaceNode snode)

◆ ED_node_is_shader()

bool ED_node_is_shader ( struct SpaceNode snode)

◆ ED_node_is_texture()

bool ED_node_is_texture ( struct SpaceNode snode)

◆ ED_node_link_insert()

void ED_node_link_insert ( struct Main bmain,
struct ScrArea area 
)

◆ ED_node_link_intersect_test()

void ED_node_link_intersect_test ( struct ScrArea area,
int  test 
)

◆ ED_node_post_apply_transform()

void ED_node_post_apply_transform ( struct bContext C,
struct bNodeTree ntree 
)

◆ ED_node_sample_set()

void ED_node_sample_set ( const float  col[4])

Definition at line 170 of file drawnode.c.

References _sample_col, col, copy_v4_fl(), copy_v4_v4(), and SAMPLE_FLT_ISNONE.

Referenced by sample_apply(), and sample_exit().

◆ ED_node_select_all()

void ED_node_select_all ( ListBase lb,
int  action 
)

◆ ED_node_select_check()

bool ED_node_select_check ( ListBase lb)

Definition at line 1359 of file node_edit.c.

References LISTBASE_FOREACH, node, and NODE_SELECT.

Referenced by ED_node_select_all().

◆ ED_node_set_active()

void ED_node_set_active ( struct Main bmain,
struct bNodeTree ntree,
struct bNode node,
bool *  r_active_texture_changed 
)

◆ ED_node_set_active_viewer_key()

void ED_node_set_active_viewer_key ( struct SpaceNode snode)

◆ ED_node_set_tree_type()

void ED_node_set_tree_type ( struct SpaceNode snode,
struct bNodeTreeType typeinfo 
)

Definition at line 439 of file node_edit.c.

References BLI_strncpy(), bNodeTreeType::idname, and SpaceNode::tree_idname.

Referenced by node_space_subtype_set().

◆ ED_node_shader_default()

void ED_node_shader_default ( const struct bContext C,
struct ID id 
)

◆ ED_node_socket_draw()

void ED_node_socket_draw ( struct bNodeSocket sock,
const struct rcti rect,
const float  color[4],
float  scale 
)

◆ ED_node_sort()

void ED_node_sort ( bNodeTree ntree)

◆ ED_node_tag_update_id()

void ED_node_tag_update_id ( struct ID id)

◆ ED_node_tag_update_nodetree()

void ED_node_tag_update_nodetree ( struct Main bmain,
struct bNodeTree ntree,
struct bNode node 
)

◆ ED_node_texture_default()

void ED_node_texture_default ( const struct bContext C,
struct Tex tex 
)

◆ ED_node_tree_depth()

int ED_node_tree_depth ( struct SpaceNode snode)

Definition at line 157 of file space_node.c.

References BLI_listbase_count(), and SpaceNode::treepath.

◆ ED_node_tree_get()

struct bNodeTree* ED_node_tree_get ( struct SpaceNode snode,
int  level 
)

◆ ED_node_tree_path_get()

void ED_node_tree_path_get ( struct SpaceNode snode,
char *  value 
)

Definition at line 187 of file space_node.c.

References LISTBASE_FOREACH_INDEX, and SpaceNode::treepath.

◆ ED_node_tree_path_get_fixedbuf()

void ED_node_tree_path_get_fixedbuf ( struct SpaceNode snode,
char *  value,
int  max_length 
)

◆ ED_node_tree_path_length()

int ED_node_tree_path_length ( struct SpaceNode snode)

Definition at line 174 of file space_node.c.

References length(), LISTBASE_FOREACH_INDEX, and SpaceNode::treepath.

◆ ED_node_tree_pop()

void ED_node_tree_pop ( struct SpaceNode snode)

◆ ED_node_tree_push()

void ED_node_tree_push ( struct SpaceNode snode,
struct bNodeTree ntree,
struct bNode gnode 
)

◆ ED_node_tree_start()

void ED_node_tree_start ( struct SpaceNode snode,
struct bNodeTree ntree,
struct ID id,
struct ID from 
)

◆ ED_node_tree_update()

void ED_node_tree_update ( const struct bContext C)

Referenced by new_node_tree_exec().

◆ ED_operatormacros_node()

void ED_operatormacros_node ( void  )

◆ ED_space_node_color_sample()

bool ED_space_node_color_sample ( struct Main bmain,
struct SpaceNode snode,
struct ARegion region,
const int  mval[2],
float  r_col[3] 
)

◆ ED_space_node_get_position()

bool ED_space_node_get_position ( struct Main bmain,
struct SpaceNode snode,
struct ARegion region,
const int  mval[2],
float  fpos[2] 
)