[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [22908] branches/blender2.5/blender/source /blender/makesdna/DNA_action_types.h: 2. 5 - Datatype defines for MotionPaths and Visualisation Settings
Joshua Leung
aligorith at gmail.com
Mon Aug 31 06:39:09 CEST 2009
Revision: 22908
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=22908
Author: aligorith
Date: 2009-08-31 06:39:08 +0200 (Mon, 31 Aug 2009)
Log Message:
-----------
2.5 - Datatype defines for MotionPaths and Visualisation Settings
Modified Paths:
--------------
branches/blender2.5/blender/source/blender/makesdna/DNA_action_types.h
Modified: branches/blender2.5/blender/source/blender/makesdna/DNA_action_types.h
===================================================================
--- branches/blender2.5/blender/source/blender/makesdna/DNA_action_types.h 2009-08-31 04:24:28 UTC (rev 22907)
+++ branches/blender2.5/blender/source/blender/makesdna/DNA_action_types.h 2009-08-31 04:39:08 UTC (rev 22908)
@@ -41,6 +41,54 @@
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 @@
#endif
-
-
More information about the Bf-blender-cvs
mailing list