2.5 - Datatype defines for MotionPaths and Visualisation Settings

This commit is contained in:
Joshua Leung 2009-08-31 04:39:08 +00:00
parent 7ad4386653
commit 07abbaa9d7

@ -40,6 +40,54 @@
struct SpaceLink;
struct Object;
/* ************************************************ */
/* Visualisation */
/* Motion Paths ------------------------------------ */
/* (used for Pose Channels and Objects) */
/* Data point for motion path */
typedef struct bMotionPathVert {
float co[3]; /* coordinates of point in 3D-space */
int flag; /* quick settings */
} bMotionPathVert;
/* Motion Path data cache - for elements providing transforms (i.e. Objects or PoseChannels) */
typedef struct bMotionPath {
bMotionPathVert *points; /* path samples */
int length; /* the number of cached verts */
int start_frame; /* for drawing paths, the start frame number */
int end_frame; /* for drawing paths, the end frame number */
int flag; /* extra settings */
} bMotionPath;
/* Animation Visualisation Settings - for Objects or Armatures (not PoseChannels) */
typedef struct bAnimVizSettings {
int pad;
int pathflag; /* eMotionPath_Settings */
int pathsf, pathef; /* start and end frames of path-calculation range */
int pathbc, pathac; /* number of frames before/after current frame of path-calculation */
} bAnimVizSettings;
/* bMotionPathSettings->flag */
typedef enum eMotionPath_Settings {
/* show frames on path */
MOTIONPATH_FLAG_FNUMS = (1<<0),
/* show keyframes on path */
MOTIONPATH_FLAG_KFRAS = (1<<1),
/* for bones - calculate head-points for curves instead of tips */
MOTIONPATH_FLAG_HEADS = (1<<2),
/* show path around current frame */
MOTIONPATH_FLAG_ACFRA = (1<<3),
/* show keyframe/frame numbers */
MOTIONPATH_FLAG_KFNOS = (1<<4)
} eMotionPath_Settings;
/* ************************************************ */
/* Poses */
@ -438,5 +486,3 @@ typedef enum ACHAN_FLAG {
#endif