Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-08-31 08:39:08 +0400
committerJoshua Leung <aligorith@gmail.com>2009-08-31 08:39:08 +0400
commit07abbaa9d722115ec7899cef22862232c37f66d2 (patch)
treefd21cfb386c7ce367e902aa1b1fd4ebcbaa34adb /source/blender/makesdna/DNA_action_types.h
parent7ad4386653ad916a97f3054cab46350ea90fcc54 (diff)
2.5 - Datatype defines for MotionPaths and Visualisation Settings
Diffstat (limited to 'source/blender/makesdna/DNA_action_types.h')
-rw-r--r--source/blender/makesdna/DNA_action_types.h50
1 files changed, 48 insertions, 2 deletions
diff --git a/source/blender/makesdna/DNA_action_types.h b/source/blender/makesdna/DNA_action_types.h
index 6f097ea3882..c9d75d5c262 100644
--- a/source/blender/makesdna/DNA_action_types.h
+++ b/source/blender/makesdna/DNA_action_types.h
@@ -41,6 +41,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 */
/* PoseChannel ------------------------------------ */
@@ -438,5 +486,3 @@ typedef enum ACHAN_FLAG {
#endif
-
-