synfig-core
1.0.3
|
Implementation of the "Bone" valuenode conversion. More...
#include "valuenode_bone.h"
#include "valuenode_const.h"
#include "valuenode_animated.h"
#include <synfig/general.h>
#include <synfig/canvas.h>
Macros | |
#define | GET_NODE_PARENT_NODE(node, t) (*node->get_link("parent"))(t).get(ValueNode_Bone::Handle()) |
#define | GET_NODE_PARENT(node, t) GET_NODE_PARENT_NODE(node,t)->get_guid() |
#define | GET_NODE_NAME(node, t) node->get_bone_name(t) |
#define | GET_NODE_BONE(node, t) (*node)(t).get(Bone()) |
#define | GET_GUID_CSTR(guid) guid.get_string().substr(0,GUID_PREFIX_LEN).c_str() |
#define | GET_NODE_GUID_CSTR(node) GET_GUID_CSTR(node->get_guid()) |
#define | GET_NODE_NAME_CSTR(node, t) GET_NODE_NAME(node,t).c_str() |
#define | GET_NODE_BONE_CSTR(node, t) GET_NODE_BONE(node,t).c_str() |
#define | GET_NODE_DESC_CSTR(node, t) (node ? strprintf("%s (%s)", GET_NODE_GUID_CSTR(node), GET_NODE_NAME_CSTR(node,t)) : strprintf("%s <root>", GET_GUID_CSTR(GUID(0)))).c_str() |
#define | GET_NODE_PARENT_CSTR(node, t) GET_GUID_CSTR(GET_NODE_PARENT(node,t)) |
Variables | |
static ValueNode_Bone::CanvasMap | canvas_map |
static int | bone_counter |
static Time | last_time = Time::begin() |
static ValueNode_Bone_Root::Handle | rooot |
Implementation of the "Bone" valuenode conversion.
$Id$
#define GET_NODE_PARENT_NODE | ( | node, | |
t | |||
) | (*node->get_link("parent"))(t).get(ValueNode_Bone::Handle()) |
Referenced by synfig::ValueNode_Bone::is_ancestor_of(), and synfig::ValueNode_Bone::show_bone_map().
#define GET_NODE_PARENT | ( | node, | |
t | |||
) | GET_NODE_PARENT_NODE(node,t)->get_guid() |
#define GET_NODE_NAME | ( | node, | |
t | |||
) | node->get_bone_name(t) |
#define GET_NODE_BONE | ( | node, | |
t | |||
) | (*node)(t).get(Bone()) |
#define GET_GUID_CSTR | ( | guid | ) | guid.get_string().substr(0,GUID_PREFIX_LEN).c_str() |
#define GET_NODE_GUID_CSTR | ( | node | ) | GET_GUID_CSTR(node->get_guid()) |
#define GET_NODE_NAME_CSTR | ( | node, | |
t | |||
) | GET_NODE_NAME(node,t).c_str() |
#define GET_NODE_BONE_CSTR | ( | node, | |
t | |||
) | GET_NODE_BONE(node,t).c_str() |
#define GET_NODE_DESC_CSTR | ( | node, | |
t | |||
) | (node ? strprintf("%s (%s)", GET_NODE_GUID_CSTR(node), GET_NODE_NAME_CSTR(node,t)) : strprintf("%s <root>", GET_GUID_CSTR(GUID(0)))).c_str() |
Referenced by synfig::ValueNode_Bone::is_ancestor_of(), and synfig::ValueNode_Bone::show_bone_map().
#define GET_NODE_PARENT_CSTR | ( | node, | |
t | |||
) | GET_GUID_CSTR(GET_NODE_PARENT(node,t)) |
|
static |
Referenced by synfig::ValueNode_Bone::find(), synfig::ValueNode_Bone::get_bone_map(), synfig::ValueNode_Bone::get_ordered_bones(), synfig::ValueNode_Bone::get_possible_parent_bones(), synfig::ValueNode_Bone::set_guid(), synfig::ValueNode_Bone::set_root_canvas(), synfig::ValueNode_Bone::show_bone_map(), synfig::ValueNode_Bone::ValueNode_Bone(), and synfig::ValueNode_Bone::~ValueNode_Bone().
|
static |
Referenced by synfig::ValueNode_Bone::ValueNode_Bone().
|
static |
|
static |
Referenced by synfig::ValueNode_Bone_Root::create_new(), and synfig::ValueNode_Bone::get_root_bone().