synfig-core
1.0.3
|
Waypoint is used to handle variations along the time of the ValueNodes. More...
#include <waypoint.h>
Classes | |
class | Model |
Public Types | |
enum | Side { SIDE_UNSPECIFIED, SIDE_LEFT, SIDE_RIGHT, SIDE_END = 2 } |
typedef synfig::Interpolation | Interpolation |
Public Member Functions | |
Waypoint (ValueBase value, Time time) | |
Constructor for constant Waypoint. | |
Waypoint (etl::handle< ValueNode > value_node, Time time) | |
Waypoint () | |
Default constructor. Leaves unset the Value Node. | |
void | apply_model (const Model &x) |
Interpolation | get_before () const |
Gets the before Interpolation. | |
void | set_before (Interpolation x) |
Sets the before Interpolation. | |
Interpolation | get_after () const |
Gets the after Interpolation. | |
void | set_after (Interpolation x) |
Sets the after Interpolation. | |
ValueBase | get_value () const |
Gets the value hold by the Waypoint. | |
ValueBase | get_value (const Time &t) const |
Gets the value hold by the Waypoint at time when it is animated. | |
void | set_value (const ValueBase &x) |
const etl::rhandle< ValueNode > & | get_value_node () const |
Returns the handle to the value node. | |
void | set_value_node (const etl::handle< ValueNode > &x) |
Sets the value node by handle. | |
const Real & | get_tension () const |
Gets tension. | |
void | set_tension (const Real &x) |
Sets tension. | |
const Real & | get_continuity () const |
Gets continuity. | |
void | set_continuity (const Real &x) |
Sets continuity. | |
const Real & | get_bias () const |
Gets bias. | |
void | set_bias (const Real &x) |
Sets bias. | |
const Time & | get_time () const |
Gets the time of the waypoint. | |
void | set_time (const Time &x) |
Sets the time of the waypoint. | |
int | get_priority () const |
void | set_priority (int x) |
const etl::loose_handle < ValueNode > & | get_parent_value_node () const |
Gets parent Value Node. | |
void | set_parent_value_node (const etl::loose_handle< ValueNode > &x) |
Sets parent Value Node. | |
bool | is_static () const |
if the Value Node is constant, not null and not exported | |
float | get_temporal_tension () const |
! Gets temporal tension | |
void | set_temporal_tension (const float &x) |
! Sets temporal tension | |
bool | operator< (const Waypoint &rhs) const |
True if the current waypoint's time is earlier than the compared waypoint's time. | |
bool | operator< (const Time &rhs) const |
True if the current waypoint's time is earlier than the given time. | |
bool | operator> (const Time &rhs) const |
True if the current waypoint's time is later than the given time. | |
bool | operator== (const Time &rhs) const |
True if the waypoint's time is the same than the given time. | |
bool | operator!= (const Time &rhs) const |
True if the waypoint's time is different than the given time. | |
bool | operator== (const UniqueID &rhs) const |
True if the Waypoint's Unique Id is the same than the argument's Unique ID. | |
bool | operator!= (const UniqueID &rhs) const |
True if the Waypoint's Unique Id is different than the argument's Unique ID. | |
Waypoint | clone (etl::loose_handle< Canvas > canvas, const GUID &deriv_guid=GUID()) const |
GUID | get_guid () const |
Returns a hack GUID using the UniqueID's value. | |
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 |
Additional Inherited Members | |
Static Public Member Functions inherited from synfig::UniqueID | |
static const UniqueID | nil () |
Waypoint is used to handle variations along the time of the ValueNodes.
The Waypoint is a child of a ValueNode (or any of inherited) and it describes the Interpolation type (before and after), the ValueNode (usually waypoints are constant but in fact they can be animated) and the time where the waypoint is.
Constructor for animated Waypoint Is is called anytime?
void synfig::Waypoint::apply_model | ( | const Model & | x | ) |
|
inline |
Gets the before Interpolation.
|
inline |
Sets the before Interpolation.
|
inline |
Gets the after Interpolation.
|
inline |
Sets the after Interpolation.
Gets the value hold by the Waypoint at time when it is animated.
void synfig::Waypoint::set_value | ( | const ValueBase & | x | ) |
Sets the value of the Waypoint. Maybe it would be posible to define set_value(const ValueBase &x, Time &t) ?
Referenced by synfig::ValueNode_Animated::new_waypoint_at_time().
|
inline |
Returns the handle to the value node.
Referenced by synfig::ValueNode_Animated::erase(), and synfig::ValueNode_Animated::waypoint_is_only_use_of_valuenode().
void synfig::Waypoint::set_value_node | ( | const etl::handle< ValueNode > & | x | ) |
Sets the value node by handle.
Referenced by synfig::ValueNode_Animated::new_waypoint_at_time().
|
inline |
Gets tension.
|
inline |
Sets tension.
|
inline |
Gets continuity.
|
inline |
Sets continuity.
|
inline |
Gets bias.
|
inline |
Sets bias.
|
inline |
Gets the time of the waypoint.
void synfig::Waypoint::set_time | ( | const Time & | x | ) |
Sets the time of the waypoint.
Referenced by synfig::ValueNode_Animated::new_waypoint_at_time().
|
inline |
|
inline |
|
inline |
void synfig::Waypoint::set_parent_value_node | ( | const etl::loose_handle< ValueNode > & | x | ) |
Referenced by synfig::ValueNode_Animated::add(), and synfig::ValueNode_Animated::new_waypoint_at_time().
|
inline |
! Gets temporal tension
|
inline |
! Sets temporal tension
|
inline |
True if the current waypoint's time is earlier than the compared waypoint's time.
|
inline |
True if the current waypoint's time is earlier than the given time.
References synfig::Time::is_less_than().
|
inline |
True if the current waypoint's time is later than the given time.
References synfig::Time::is_more_than().
|
inline |
True if the waypoint's time is the same than the given time.
References synfig::Time::is_equal().
|
inline |
True if the waypoint's time is different than the given time.
References synfig::Time::is_equal().
|
inline |
True if the Waypoint's Unique Id is the same than the argument's Unique ID.
Reimplemented from synfig::UniqueID.
References synfig::UniqueID::get_uid().
|
inline |
True if the Waypoint's Unique Id is different than the argument's Unique ID.
Reimplemented from synfig::UniqueID.
References synfig::UniqueID::get_uid().