synfig-core
1.0.3
|
#include <bone.h>
Classes | |
struct | Shape |
Public Types | |
typedef etl::handle< Bone > | Handle |
Public Member Functions | |
Bone () | |
Default constructor. | |
Bone (const Point &origin, const Point &tip) | |
Constructor by origin and tip. | |
Bone (const String &name, const Point &origin, const Angle &angle, const Real &length, ValueNode_Bone *p=0) | |
Construtor by origin, legth and parent (default no parent) | |
const String & | get_name () const |
Wrappers for name_. | |
void | set_name (const String &x) |
const Point & | get_origin () const |
Wrappers for origin_. | |
void | set_origin (const Point &x) |
const Angle & | get_angle () const |
Wrappers for angle_. | |
void | set_angle (const Angle &x) |
const Real & | get_scalelx () const |
Wrapper for scalelx. | |
void | set_scalelx (const Real &x) |
const Real & | get_scalex () const |
Wrapper for scalex. | |
void | set_scalex (const Real &x) |
const Real & | get_length () const |
Wrapper for length. Notice that a length of 0 is not allowed. | |
void | set_length (const Real &x) |
const Real & | get_width () const |
Wrapper for width. | |
void | set_width (const Real &x) |
const Real & | get_tipwidth () const |
Wrapper for tipwidth. | |
void | set_tipwidth (const Real &x) |
const Real & | get_depth () const |
Wrapper for depth. | |
void | set_depth (const Real &x) |
Point | get_tip () |
const ValueNode_Bone * | get_parent () const |
Wrapper for parent bone. | |
void | set_parent (const ValueNode_Bone *parent) |
void | add_bone_to_map () |
Bone * | find_bone_in_map (int uid) |
Matrix | get_animated_matrix () const |
void | set_animated_matrix (Matrix x) |
Vector | get_local_scale () const |
synfig::String | get_string () const |
bool | is_root () const |
Shape | get_shape () const |
Real | distance_to_shape_center_percent (const Vector &x) const |
Real | influence_percent (const Vector &x) const |
bool | have_influence_on (const Vector &x) const |
Public Member Functions inherited from synfig::UniqueID | |
const int & | get_uid () const |
Returns the internal unique identifier for this object. | |
UniqueID () | |
void | make_unique () |
operator bool () const | |
void | mimic (const UniqueID &x) |
bool | operator== (const UniqueID &rhs) const |
bool | operator!= (const UniqueID &rhs) const |
bool | operator< (const UniqueID &rhs) const |
Static Public Member Functions | |
static Real | distance_to_shape_center_percent (const Shape &shape, const Vector &x) |
static Real | influence_function (Real distance_percent) |
static Real | influence_percent (const Shape &shape, const Vector &x) |
Static Public Member Functions inherited from synfig::UniqueID | |
static const UniqueID | nil () |
typedef etl::handle<Bone> synfig::Bone::Handle |
Bone::Bone | ( | ) |
Default constructor.
Bone::Bone | ( | const String & | name, |
const Point & | origin, | ||
const Angle & | angle, | ||
const Real & | length, | ||
ValueNode_Bone * | p = 0 |
||
) |
Construtor by origin, legth and parent (default no parent)
Constructor by origin, angle, length, strength, parent bone (default = no parent)
|
inline |
Wrappers for name_.
Referenced by synfig::BoneWeightPair::get_string().
|
inline |
Referenced by synfig::ValueNode_Bone::operator()(), and synfig::ValueNode_Bone_Root::operator()().
|
inline |
Wrappers for origin_.
|
inline |
|
inline |
Wrappers for angle_.
|
inline |
Referenced by synfig::ValueNode_Bone::operator()().
|
inline |
Wrapper for scalelx.
Referenced by get_shape(), and synfig::Layer_Skeleton::sync().
|
inline |
Referenced by synfig::ValueNode_Bone::operator()().
|
inline |
Wrapper for scalex.
|
inline |
Referenced by synfig::ValueNode_Bone::operator()().
|
inline |
Wrapper for length. Notice that a length of 0 is not allowed.
Referenced by synfig::ValueNode_StaticList::create_list_entry(), get_shape(), and synfig::Layer_Skeleton::sync().
|
inline |
Referenced by synfig::ValueNode_Bone::operator()().
|
inline |
Wrapper for width.
Referenced by get_shape(), and synfig::Layer_Skeleton::sync().
|
inline |
|
inline |
Wrapper for tipwidth.
Referenced by synfig::ValueNode_StaticList::create_list_entry(), get_shape(), and synfig::Layer_Skeleton::sync().
|
inline |
|
inline |
Wrapper for depth.
Referenced by synfig::ValueNode_StaticList::create_list_entry().
|
inline |
Point Bone::get_tip | ( | ) |
This gets the calculated tip of the bone based on tip=origin+[length,0]*Rotate(alpha)*Scalex(scalex*scalelx)
get_tip() member function
References synfig::Matrix::get_transformed(), synfig::Matrix::set_rotate(), and synfig::Matrix::set_scale().
const ValueNode_Bone * Bone::get_parent | ( | ) | const |
Wrapper for parent bone.
Referenced by is_root().
void Bone::set_parent | ( | const ValueNode_Bone * | parent | ) |
void synfig::Bone::add_bone_to_map | ( | ) |
Bone* synfig::Bone::find_bone_in_map | ( | int | uid | ) |
|
inline |
Animated Transformation matrix. This matrix applied to a setup point in local coordinates (the one obtained form the Setup Transformation matrix) would obtain the animated position of the point due the current bone influence
Referenced by synfig::ValueNode_BoneLink::get_bone_transformation(), get_shape(), and synfig::Layer_Skeleton::sync().
|
inline |
Referenced by synfig::ValueNode_Bone::operator()().
|
inline |
Referenced by synfig::ValueNode_BoneLink::get_bone_transformation().
synfig::String Bone::get_string | ( | ) | const |
Get the string of the Bone
bool Bone::is_root | ( | ) | const |
References get_parent(), and synfig::ValueNode_Bone::is_root().
Bone::Shape Bone::get_shape | ( | ) | const |
References get_animated_matrix(), get_length(), get_scalelx(), get_tipwidth(), synfig::Matrix::get_transformed(), get_width(), matrix, synfig::Vector::norm(), synfig::Bone::Shape::p0, synfig::Bone::Shape::p1, synfig::Bone::Shape::r0, and synfig::Bone::Shape::r1.
Referenced by distance_to_shape_center_percent(), and influence_percent().
References PI.
Referenced by influence_percent().
References distance_to_shape_center_percent(), and influence_function().
References distance_to_shape_center_percent(), and get_shape().
Referenced by distance_to_shape_center_percent().
References get_shape(), and influence_percent().
Referenced by influence_percent().
|
inline |
References distance_to_shape_center_percent().