Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Static Public Member Functions | List of all members
FCurveKey Class Reference

FCurveKey key description. More...

Public Types

enum  KeyType {
  KEY_TYPE_LINEAR,
  KEY_TYPE_STEP,
  KEY_TYPE_TCB,
  KEY_TYPE_HERMITE,
  KEY_TYPE_BEZIER,
  KEY_TYPE_COUNT
}
 
enum  KeyAutoTangents {
  KEY_AUTO_TANGENTS_NONE,
  KEY_AUTO_TANGENTS_FLAT,
  KEY_AUTO_TANGENTS_AUTO
}
 

Public Member Functions

 FCurveKey ()
 Default Constructor.
 
 FCurveKey (const FCurveKey &src, const FCurveKeyId &id)
 Copy Constructor with new id.
 
 FCurveKey (const double &ti, const double &va, const FCurveKeyId &id, const FCurveKey::KeyType &ty)
 Constructor.
 
FCurveKeyoperator= (const FCurveKey &src)
 
const double & get_time () const
 
const double & get_value () const
 
const FCurveKeyIdget_id () const
 
const FCurveKey::KeyType & get_type () const
 
void set_time (const double &time)
 
void set_value (const double &value)
 
void set_id (const unsigned int &id)
 
void set_type (const FCurveKey::KeyType &type)
 
const double & get_tcb_tension () const
 
const double & get_tcb_continuity () const
 
const double & get_tcb_bias () const
 
void set_tcb_tension (const double &tension)
 
void set_tcb_continuity (const double &continuity)
 
void set_tcb_bias (const double &bias)
 
void set_tangent1 (const GMathVec2d &value)
 
void set_tangent2 (const GMathVec2d &value)
 
void set_tangent1 (const double &x, const double &y)
 
void set_tangent2 (const double &x, const double &y)
 
bool has_tangent1 () const
 
bool has_tangent2 () const
 
const GMathVec2d & get_tangent1 () const
 
const GMathVec2d & get_tangent2 () const
 
const bool & get_linked_tangents_length () const
 
const bool & get_linked_tangents_angle () const
 
void set_linked_tangents_length (const bool &value)
 
void set_linked_tangents_angle (const bool &value)
 
bool operator== (const FCurveKey &key) const
 
bool operator!= (const FCurveKey &key) const
 
void set_tangents_flat (const bool &value)
 
void set_tangents_auto (const bool &value)
 
void set_tangents_none ()
 
void set_free_tangents_length (const bool &value)
 
bool get_tangents_flat () const
 
bool get_tangents_auto () const
 
bool get_tangents_none () const
 
bool get_free_tangents_length ()
 
void serialize (ParserEntry &key_entry, const double *override_value=nullptr) const
 
bool deserialize (ParserEntry &key_entry)
 
size_t get_memory_size () const
 

Static Public Member Functions

static CoreString get_key_type_ui_name (const FCurveKey::KeyType &value)
 
static GMathVec2d & get_invalid_tangent ()
 get invalid tangent value
 

Detailed Description

FCurveKey key description.