synfig-core
1.0.3
|
#include <widthpoint.h>
Public Types | |
enum | SideType { TYPE_INTERPOLATE = 0, TYPE_ROUNDED = 1, TYPE_SQUARED = 2, TYPE_PEAK = 3, TYPE_FLAT = 4 } |
Public Member Functions | |
WidthPoint () | |
WidthPoint (Real position, Real width, int sidebefore=TYPE_INTERPOLATE, int sideafter=TYPE_INTERPOLATE, bool dash_=false) | |
const Real & | get_position () const |
void | set_position (const Real &x) |
Real | get_norm_position (bool wplistloop) const |
Real | get_bound_position (bool wplistloop) const |
void | normalize (bool loop) |
void | reverse () |
const Real & | get_width () const |
void | set_width (Real x) |
int | get_side_type_before () const |
void | set_side_type_before (int sidebefore) |
int | get_side_type_after () const |
void | set_side_type_after (int sideafter) |
int | get_side_type (int i) const |
bool | get_dash () const |
void | set_dash (bool l) |
Real | get_lower_bound () const |
void | set_lower_bound (Real lb) |
Real | get_upper_bound () const |
void | set_upper_bound (Real ub) |
bool | operator< (const WidthPoint &rhs) |
bool | operator== (const WidthPoint &rhs) |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from synfig::UniqueID | |
static const UniqueID | nil () |
WidthPoint::WidthPoint | ( | ) |
References TYPE_INTERPOLATE.
WidthPoint::WidthPoint | ( | Real | position, |
Real | width, | ||
int | sidebefore = TYPE_INTERPOLATE , |
||
int | sideafter = TYPE_INTERPOLATE , |
||
bool | dash_ = false |
||
) |
const Real & WidthPoint::get_position | ( | ) | const |
void WidthPoint::set_position | ( | const Real & | x | ) |
Real WidthPoint::get_norm_position | ( | bool | wplistloop | ) | const |
Real WidthPoint::get_bound_position | ( | bool | wplistloop | ) | const |
Referenced by get_norm_position().
void WidthPoint::normalize | ( | bool | loop | ) |
References get_norm_position(), and set_position().
Referenced by synfig::ValueNode_WPList::interpolated_width().
void WidthPoint::reverse | ( | ) |
Referenced by reverse_value().
const Real & WidthPoint::get_width | ( | ) | const |
void WidthPoint::set_width | ( | Real | x | ) |
int WidthPoint::get_side_type_before | ( | ) | const |
Referenced by encode_width_point(), reverse_value(), and synfig::widthpoint_interpolate().
void WidthPoint::set_side_type_before | ( | int | sidebefore | ) |
Referenced by synfig::ValueNode_Composite::operator()(), and reverse_value().
int WidthPoint::get_side_type_after | ( | ) | const |
Referenced by encode_width_point(), reverse_value(), and synfig::widthpoint_interpolate().
void WidthPoint::set_side_type_after | ( | int | sideafter | ) |
Referenced by synfig::ValueNode_Composite::operator()(), and reverse_value().
int WidthPoint::get_side_type | ( | int | i | ) | const |
Referenced by operator==().
bool WidthPoint::get_dash | ( | ) | const |
void WidthPoint::set_dash | ( | bool | l | ) |
Real WidthPoint::get_lower_bound | ( | ) | const |
Referenced by operator==().
void WidthPoint::set_lower_bound | ( | Real | lb | ) |
Referenced by synfig::ValueNode_Composite::operator()().
Real WidthPoint::get_upper_bound | ( | ) | const |
Referenced by operator==().
void WidthPoint::set_upper_bound | ( | Real | ub | ) |
Referenced by synfig::ValueNode_Composite::operator()().
bool WidthPoint::operator< | ( | const WidthPoint & | rhs | ) |
References get_position().
bool WidthPoint::operator== | ( | const WidthPoint & | rhs | ) |
References get_lower_bound(), get_position(), get_side_type(), get_upper_bound(), and get_width().