Functions | Variables

plot_gtk.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <laser-nav.h>
#include "plot_gtk.h"
Include dependency graph for plot_gtk.c:

Functions

void print_usage ()
 Print usage.
int parseopt (int argc, char **argv)
 Parse program arguments.
void quit ()
 FUNCTION PROTOTYPES.
void load_pixmaps (GtkWidget *widget, struct moveable_obj *moveable, struct pixmap_obj *pixmaps)
 Get the width and height for the xpm data.
void load_scene_pixmap (GtkWidget *widget)
 Load all scene pixmaps.
gint expose_event (GtkWidget *widget, GdkEventExpose *event)
gint repaint (gpointer data)
void test_repaint ()
 GKT test function.
void init_animation (int argc, char *argv[], void(*repaint_func)())
 Initialization of the animation.
void test_animation (int argc, char *argv[])
 Test GTK animation.
void scene_repaint ()
 Repaint the scene (background, points, ...).
void initdata ()
 Init data structures.
void destroydata ()
 Destroy data.
int main (int _argc, char **_argv)
 Main function.

Variables

struct pln_point positions [FWIDTH *FHEIGHT]
int poscount = 0
void(* repaint_objects )()

Function Documentation

void destroydata (  ) 

Destroy data.

Here is the caller graph for this function:

gint expose_event ( GtkWidget *  widget,
GdkEventExpose *  event 
)

Here is the caller graph for this function:

void init_animation ( int  argc,
char *  argv[],
void(*)()  repaint_func 
)

Initialization of the animation.

Parameters:
argc program`s arguments count
argv program`s arguments
repaint_func repaint function

Here is the caller graph for this function:

void initdata (  ) 

Init data structures.

Here is the call graph for this function:

Here is the caller graph for this function:

void load_pixmaps ( GtkWidget *  widget,
struct moveable_obj moveable,
struct pixmap_obj pixmaps 
)

Get the width and height for the xpm data.

Load pixmaps according to predefined data struct.

Here is the caller graph for this function:

void load_scene_pixmap ( GtkWidget *  widget  ) 

Load all scene pixmaps.

Here is the caller graph for this function:

int main ( int  _argc,
char **  _argv 
)

Main function.

Parameters:
argc Arguments counter
argv Arguments array

Here is the call graph for this function:

int parseopt ( int  argc,
char **  argv 
)

Parse program arguments.

Store flags to a global variable.

Parameters:
argc Arguments counter (given from main())
argv Arguments array (given from main())

Here is the caller graph for this function:

void print_usage (  ) 

Print usage.

Here is the caller graph for this function:

void quit (  ) 

FUNCTION PROTOTYPES.

Here is the caller graph for this function:

gint repaint ( gpointer  data  ) 

Here is the caller graph for this function:

void scene_repaint (  ) 

Repaint the scene (background, points, ...).

Here is the caller graph for this function:

void test_animation ( int  argc,
char *  argv[] 
)

Test GTK animation.

Here is the caller graph for this function:

void test_repaint (  ) 

GKT test function.

Here is the caller graph for this function:


Variable Documentation

int poscount = 0
struct pln_point positions[FWIDTH *FHEIGHT]
void(* repaint_objects)()