Blender V5.3
itasc_plugin.cc File Reference
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <cstring>
#include <vector>
#include "MEM_guardedalloc.h"
#include "BIK_api.h"
#include "BLI_listbase.hh"
#include "BLI_math_matrix_c.hh"
#include "BLI_math_rotation_c.hh"
#include "BLI_math_vector_c.hh"
#include "BKE_action.hh"
#include "BKE_armature.hh"
#include "BKE_constraint.h"
#include "DNA_action_types.h"
#include "DNA_armature_types.h"
#include "DNA_constraint_types.h"
#include "DNA_object_types.h"
#include "DNA_scene_types.h"
#include "itasc_plugin.h"

Go to the source code of this file.

Classes

struct  blender::IK_Data
struct  blender::IK_Target
struct  blender::IK_Channel
struct  blender::IK_Scene

Namespaces

namespace  blender
 BMesh Iterators.

Macros

#define ANIM_FEEDBACK   0.8

Typedefs

using blender::Vector3 = float[3]
using blender::Vector4 = float[4]
using blender::ErrorCallback

Enumerations

enum  blender::IK_SegmentFlag {
  blender::IK_XDOF = 1 , blender::IK_YDOF = 2 , blender::IK_ZDOF = 4 , blender::IK_SWING = 8 ,
  blender::IK_REVOLUTE = 16 , blender::IK_TRANSY = 32
}
enum  blender::IK_SegmentAxis {
  blender::IK_X = 0 , blender::IK_Y = 1 , blender::IK_Z = 2 , blender::IK_TRANS_X = 3 ,
  blender::IK_TRANS_Y = 4 , blender::IK_TRANS_Z = 5
}

Functions

static int blender::initialize_chain (Object *, bPoseChannel *pchan_tip, bConstraint *con)
static bool blender::is_cartesian_constraint (bConstraint *)
static bool blender::constraint_valid (bConstraint *con)
static int blender::initialize_scene (Object *ob, bPoseChannel *pchan_tip)
static IK_Data * blender::get_ikdata (bPose *pose)
static double blender::EulerAngleFromMatrix (const KDL::Rotation &R, int axis)
static double blender::ComputeTwist (const KDL::Rotation &R)
static void blender::RemoveEulerAngleFromMatrix (KDL::Rotation &R, double angle, int axis)
static void blender::GetJointRotation (KDL::Rotation &boneRot, int type, double *rot)
static bool blender::target_callback (const iTaSC::Timestamp &, const iTaSC::Frame &, iTaSC::Frame &next, void *param)
static bool blender::base_callback (const iTaSC::Timestamp &timestamp, const iTaSC::Frame &, iTaSC::Frame &next, void *param)
static bool blender::copypose_callback (const iTaSC::Timestamp &, iTaSC::ConstraintValues *const _values, uint, void *_param)
static void blender::copypose_error (const iTaSC::ConstraintValues *values, uint, IK_Target *iktarget)
static bool blender::distance_callback (const iTaSC::Timestamp &timestamp, iTaSC::ConstraintValues *const _values, uint, void *_param)
static void blender::distance_error (const iTaSC::ConstraintValues *values, uint, IK_Target *iktarget)
static bool blender::joint_callback (const iTaSC::Timestamp &, iTaSC::ConstraintValues *const _values, uint _nvalues, void *_param)
static int blender::convert_channels (Depsgraph *depsgraph, IK_Scene *ikscene, PoseTree *tree, float ctime)
static void blender::convert_pose (IK_Scene *ikscene)
static void blender::pose_rest (IK_Scene *ikscene)
static IK_Scene * blender::convert_tree (Depsgraph *depsgraph, Scene *blscene, Object *ob, bPoseChannel *pchan, float ctime)
static void blender::create_scene (Depsgraph *depsgraph, Scene *scene, Object *ob, float ctime)
static int blender::init_scene (Object *ob)
static void blender::execute_scene (Depsgraph *depsgraph, Scene *blscene, IK_Scene *ikscene, bItasc *ikparam, float ctime, float frtime)
Plugin Interface
void blender::itasc_initialize_tree (Depsgraph *depsgraph, Scene *scene, Object *ob, float ctime)
void blender::itasc_execute_tree (Depsgraph *depsgraph, Scene *scene, Object *ob, bPoseChannel *pchan_root, float ctime)
void blender::itasc_release_tree (Scene *, Object *, float)
void blender::itasc_clear_data (bPose *pose)
void blender::itasc_clear_cache (bPose *pose)
void blender::itasc_update_param (bPose *pose)
void blender::itasc_test_constraint (Object *, bConstraint *cons)

Variables

static bItasc blender::DefIKParam

Macro Definition Documentation

◆ ANIM_FEEDBACK

#define ANIM_FEEDBACK   0.8

Definition at line 63 of file itasc_plugin.cc.

Referenced by blender::copypose_callback(), and blender::distance_callback().