cuikplay.c File Reference

Detailed Description

dot_inline_dotgraph_5.png

This application allows to play a animation. This is like cuikanimate but shows a dialog that allow to control the animation (play, pause, move to a particular frame).

This application produces a stream that must be redirected to actually see the animation. This is automatially done by the cuikplayer script (see the scripts folder).

Definition in file cuikplay.c.

Macros

#define RECORD   0
 Flag to store snapshots of the animations. More...
 

Functions

int main (int argc, char **arg)
 Main body of the cuikplay application. More...
 

Macro Definition Documentation

#define RECORD   0

Set to 1 if you want to store snapshots during the animation. The snapshots are stored at /tmp/worldname_num.ppm where num is the frame number.

Definition at line 60 of file cuikplay.c.

Function Documentation

int main ( int  argc,
char **  arg 
)

Main body of the cuikplay application.

Use:

  • cuikplay world_name.world solutions_name.sol axes_length frame_delay

Where:

  • world_name: File describing the problem.
  • solutions_name: Is the path of solutions to be animated.
  • axes_length: Is the length for the axes for each link.
    This parameter is optional and the default value is 0.
  • frame_delay: Delay in between frames. It is useful when "animating" a set of isolated solutions to make each solution to be shown enough time to be inspected.
    This parameter is optional and the default value is 0.1.

File extensions are optional.

Parameters
argcNumber of elements in the command line that starts the application (i.e., the cuikanimate command itself and its arguments).
argStrings with the arguments.
Returns
EXIT_SUCCESS (0) if the execution worked out fine and EXIT_FAILURE if not.

Definition at line 88 of file cuikplay.c.

References Close3dBlock(), ClosePlot3d(), CreateFileName(), TCuikPlayControl::currentFrame, DeleteFileName(), DeleteListOfBoxes(), DeleteParameters(), DeleteWorld(), TCuikPlayControl::end, Error(), FALSE, First(), GetCurrent(), GetFileFullName(), GetFileName(), InitIterator(), InitParametersFromFile(), InitPlot3d(), InitWorldFromFile(), ListSize(), TCuikPlayControl::maxFrame, TCuikPlayControl::mode, MoveTo(), MoveWorld(), NEW, TCuikPlayControl::nextFrame, PARAM_EXT, PlotWorld(), ReadListOfBoxes(), SOL_EXT, Start3dBlock(), Take3dSnapshot(), TCuikPlayControl::time, TRUE, and WORLD_EXT.