|
Blender
V2.59
|
#include <stdio.h>#include "DNA_node_types.h"#include "DNA_scene_types.h"#include "BLI_rect.h"#include "BLI_utildefines.h"#include "BKE_context.h"#include "BKE_node.h"#include "ED_screen.h"#include "RNA_access.h"#include "RNA_define.h"#include "WM_api.h"#include "WM_types.h"#include "UI_view2d.h"#include "node_intern.h"Go to the source code of this file.
Functions | |
| void | node_set_hidden_sockets (SpaceNode *snode, bNode *node, int set) |
| static void | node_hide_unhide_sockets (SpaceNode *snode, bNode *node) |
| static int | do_header_node (SpaceNode *snode, bNode *node, float mx, float my) |
| static int | do_header_hidden_node (bNode *node, float mx, float my) |
| static int | node_toggle_visibility (SpaceNode *snode, ARegion *ar, const int mval[2]) |
| static int | node_toggle_visibility_exec (bContext *C, wmOperator *op) |
| static int | node_toggle_visibility_invoke (bContext *C, wmOperator *op, wmEvent *event) |
| void | NODE_OT_visibility_toggle (wmOperatorType *ot) |
| static void | snode_home (ScrArea *UNUSED(sa), ARegion *ar, SpaceNode *snode) |
| static int | node_view_all_exec (bContext *C, wmOperator *UNUSED(op)) |
| void | NODE_OT_view_all (wmOperatorType *ot) |
Definition in file node_state.c.
| static int do_header_hidden_node | ( | bNode * | node, |
| float | mx, | ||
| float | my | ||
| ) | [static] |
Definition at line 149 of file node_state.c.
References BLI_in_rctf(), bNode::flag, NODE_HIDDEN, bNode::totr, rctf::xmax, and rctf::xmin.
Referenced by node_toggle_visibility().
Definition at line 106 of file node_state.c.
References BLI_in_rctf(), bNodeType::flag, bNode::flag, NODE_GROUP, NODE_HIDDEN, node_hide_unhide_sockets(), NODE_OPTIONS, NODE_PREVIEW, snode_make_group_editable(), bNode::totr, bNode::type, bNode::typeinfo, rctf::xmax, rctf::xmin, rctf::ymax, and rctf::ymin.
Referenced by node_toggle_visibility().
Definition at line 100 of file node_state.c.
References node_has_hidden_sockets(), node_set_hidden_sockets(), node_tree_verify_groups(), and SpaceNode::nodetree.
Referenced by do_header_node().
| void NODE_OT_view_all | ( | wmOperatorType * | ot | ) |
Definition at line 293 of file node_state.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::exec, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, node_view_all_exec(), OPTYPE_REGISTER, OPTYPE_UNDO, and wmOperatorType::poll.
Referenced by node_operatortypes().
| void NODE_OT_visibility_toggle | ( | wmOperatorType * | ot | ) |
Definition at line 210 of file node_state.c.
References wmOperatorType::description, ED_operator_node_active(), wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::invoke, wmOperatorType::name, node_toggle_visibility_invoke(), OPTYPE_REGISTER, OPTYPE_UNDO, wmOperatorType::poll, RNA_def_int(), and wmOperatorType::srna.
Referenced by node_operatortypes().
Definition at line 61 of file node_state.c.
References SpaceNode::edittree, ListBase::first, bNodeSocket::flag, bNode::id, bNode::inputs, bNodeSocket::link, bNodeSocket::next, node_tree_get_editgroup(), nodeCountSocketLinks(), nodeGroupSocketUseFlags(), SpaceNode::nodetree, NULL, bNode::outputs, SOCK_HIDDEN, and SOCK_IN_USE.
Referenced by node_hide_unhide_sockets(), and node_socket_toggle_exec().
Definition at line 161 of file node_state.c.
References do_header_hidden_node(), do_header_node(), ED_region_tag_redraw(), SpaceNode::edittree, bNode::flag, next_node(), NODE_HIDDEN, NULL, UI_view2d_region_to_view(), and ARegion::v2d.
Referenced by node_toggle_visibility_exec().
| static int node_toggle_visibility_exec | ( | bContext * | C, |
| wmOperator * | op | ||
| ) | [static] |
Definition at line 188 of file node_state.c.
References CTX_wm_region(), CTX_wm_space_node(), node_toggle_visibility(), OPERATOR_CANCELLED, OPERATOR_FINISHED, OPERATOR_PASS_THROUGH, wmOperator::ptr, and RNA_int_get().
Referenced by node_toggle_visibility_invoke().
| static int node_toggle_visibility_invoke | ( | bContext * | C, |
| wmOperator * | op, | ||
| wmEvent * | event | ||
| ) | [static] |
Definition at line 202 of file node_state.c.
References wmEvent::mval, node_toggle_visibility_exec(), wmOperator::ptr, and RNA_int_set().
Referenced by NODE_OT_visibility_toggle().
| static int node_view_all_exec | ( | bContext * | C, |
| wmOperator * | UNUSEDop | ||
| ) | [static] |
Definition at line 281 of file node_state.c.
References CTX_wm_area(), CTX_wm_region(), CTX_wm_space_node(), ED_region_tag_redraw(), OPERATOR_FINISHED, and snode_home().
Referenced by NODE_OT_view_all().
Definition at line 230 of file node_state.c.
References BLI_union_rctf(), View2D::cur, SpaceNode::edittree, ListBase::first, bNode::next, bNodeTree::nodes, View2D::tot, bNode::totr, UI_view2d_curRect_validate(), ARegion::v2d, ARegion::winx, ARegion::winy, rctf::xmax, rctf::xmin, SpaceNode::xof, rctf::ymax, rctf::ymin, and SpaceNode::yof.
Referenced by node_view_all_exec().