GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-d6dec75dd4
|
OGSF library - setting and manipulating keyframes animation. More...
Go to the source code of this file.
Functions | |
int | GK_set_interpmode (int mode) |
Set interpolation mode. More... | |
void | GK_set_tension (float tens) |
Set value for tension when interpmode is KF_SPLINE. More... | |
void | GK_showtension_start (void) |
void | GK_showtension_stop (void) |
Show tension stop ? More... | |
void | GK_update_tension (void) |
Update tension. More... | |
void | GK_print_keys (const char *name) |
Print keyframe info. More... | |
void | GK_update_frames (void) |
Recalculate path using the current number of frames requested. More... | |
void | GK_set_numsteps (int newsteps) |
Set the number of frames to be interpolated from keyframes. More... | |
void | GK_clear_keys (void) |
Deletes all keyframes, resets field masks. More... | |
int | GK_move_key (float oldpos, float precis, float newpos) |
Move keyframe. More... | |
int | GK_delete_key (float pos, float precis, int justone) |
int | GK_add_key (float pos, unsigned long fmask, int force_replace, float precis) |
Add keyframe. More... | |
void | GK_do_framestep (int step, int render) |
Moves the animation to frame number "step". More... | |
void | GK_show_path (int flag) |
Draw the current path. More... | |
void | GK_show_vect (int flag) |
Show vector sets. More... | |
void | GK_show_site (int flag) |
Show point sets. More... | |
void | GK_show_vol (int flag) |
Show volumes. More... | |
void | GK_show_list (int flag) |
Show list. More... | |
OGSF library - setting and manipulating keyframes animation.
GRASS OpenGL gsurf OGSF Library
(C) 1999-2008 by the GRASS Development Team
This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.
Definition in file gk2.c.
int GK_add_key | ( | float | pos, |
unsigned long | fmask, | ||
int | force_replace, | ||
float | precis | ||
) |
Add keyframe.
The pos value is the relative position in the animation for this particular keyframe - used to compare relative distance to neighboring keyframes, it can be any floating point value.
The fmask value can be any of the following or'd together:
Other fields will be added later.
The value precis and the boolean force_replace are used to determine if a keyframe should be considered to be at the same position as a pre-existing keyframe. e.g., if anykey.pos - newkey.pos <= precis, GK_add_key() will fail unless force_replace is TRUE.
pos | position |
fmaks | |
force_replace | |
precis | precision value |
void GK_clear_keys | ( | void | ) |
Deletes all keyframes, resets field masks.
Doesn't change number of frames requested.
Definition at line 312 of file gk2.c.
References gk_free_key().
int GK_delete_key | ( | float | pos, |
float | precis, | ||
int | justone | ||
) |
Delete keyframe
The values pos and precis are used to determine which keyframes to delete. Any keyframes with their position within precis of pos will be deleted if justone is zero. If justone is non-zero, only the first (lowest pos) keyframe in the range will be deleted.
pos | position |
precis | precision |
justone | delete only one keyframe |
void GK_do_framestep | ( | int | step, |
int | render | ||
) |
int GK_move_key | ( | float | oldpos, |
float | precis, | ||
float | newpos | ||
) |
void GK_print_keys | ( | const char * | name | ) |
int GK_set_interpmode | ( | int | mode | ) |
void GK_set_numsteps | ( | int | newsteps | ) |
void GK_set_tension | ( | float | tens | ) |
void GK_show_path | ( | int | flag | ) |
void GK_show_site | ( | int | flag | ) |
void GK_show_vect | ( | int | flag | ) |
void GK_showtension_stop | ( | void | ) |
void GK_update_frames | ( | void | ) |