OpenShot Library | libopenshot  0.7.0
Public Member Functions | Public Attributes | List of all members
openshot::AnimatedCurveNode Class Reference

#include <AnimatedCurve.h>

Collaboration diagram for openshot::AnimatedCurveNode:
[legend]

Public Member Functions

 AnimatedCurveNode ()
 
 AnimatedCurveNode (int node_id, double node_x, double node_y, InterpolationType node_interpolation=LINEAR)
 
Point Evaluate (int64_t frame_number, double x_scale=1.0) const
 
std::string Json () const
 
Json::Value JsonValue () const
 
void SetJson (const std::string value)
 
void SetJsonValue (const Json::Value &root)
 

Public Attributes

HandleType handle_type
 
int id
 
InterpolationType interpolation
 
Keyframe left_handle_x
 
Keyframe left_handle_y
 
Keyframe right_handle_x
 
Keyframe right_handle_y
 
Keyframe x
 
Keyframe y
 

Detailed Description

Definition at line 26 of file AnimatedCurve.h.

Constructor & Destructor Documentation

◆ AnimatedCurveNode() [1/2]

AnimatedCurveNode::AnimatedCurveNode ( )

Definition at line 30 of file AnimatedCurve.cpp.

◆ AnimatedCurveNode() [2/2]

AnimatedCurveNode::AnimatedCurveNode ( int  node_id,
double  node_x,
double  node_y,
InterpolationType  node_interpolation = LINEAR 
)

Definition at line 33 of file AnimatedCurve.cpp.

Member Function Documentation

◆ Evaluate()

Point AnimatedCurveNode::Evaluate ( int64_t  frame_number,
double  x_scale = 1.0 
) const

Definition at line 44 of file AnimatedCurve.cpp.

◆ Json()

std::string AnimatedCurveNode::Json ( ) const

Definition at line 56 of file AnimatedCurve.cpp.

◆ JsonValue()

Json::Value AnimatedCurveNode::JsonValue ( ) const

Definition at line 60 of file AnimatedCurve.cpp.

Referenced by Json().

◆ SetJson()

void AnimatedCurveNode::SetJson ( const std::string  value)

Definition at line 74 of file AnimatedCurve.cpp.

◆ SetJsonValue()

void AnimatedCurveNode::SetJsonValue ( const Json::Value &  root)

Definition at line 82 of file AnimatedCurve.cpp.

Referenced by SetJson(), and openshot::AnimatedCurve::SetJsonValue().

Member Data Documentation

◆ handle_type

HandleType openshot::AnimatedCurveNode::handle_type

Definition at line 36 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ id

int openshot::AnimatedCurveNode::id

Definition at line 28 of file AnimatedCurve.h.

Referenced by JsonValue().

◆ interpolation

InterpolationType openshot::AnimatedCurveNode::interpolation

Definition at line 35 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ left_handle_x

Keyframe openshot::AnimatedCurveNode::left_handle_x

Definition at line 31 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ left_handle_y

Keyframe openshot::AnimatedCurveNode::left_handle_y

Definition at line 32 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ right_handle_x

Keyframe openshot::AnimatedCurveNode::right_handle_x

Definition at line 33 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ right_handle_y

Keyframe openshot::AnimatedCurveNode::right_handle_y

Definition at line 34 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ x

Keyframe openshot::AnimatedCurveNode::x

Definition at line 29 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().

◆ y

Keyframe openshot::AnimatedCurveNode::y

Definition at line 30 of file AnimatedCurve.h.

Referenced by Evaluate(), JsonValue(), and SetJsonValue().


The documentation for this class was generated from the following files: