atomes 1.3.1
atomes: an atomic scale modeling tool box
Loading...
Searching...
No Matches
image.c File Reference

Functions to render an image from the OpenGL window. More...

#include "global.h"
#include "interface.h"
#include "project.h"
#include "glwindow.h"
#include "glview.h"
#include "movie.h"
#include "preferences.h"
#include <libavformat/avformat.h>
Include dependency graph for image.c:

Go to the source code of this file.

Functions

void fill_image (VideoStream *vs, int width, int height, glwin *view)
 render an image from an OpenGL rendering
void init_frame_buffer (int x, int y)
 init a frame buffer
void close_frame_buffer ()
 close the frame buffer
G_MODULE_EXPORT void run_render_image (GtkDialog *info, gint response_id, gpointer data)
 render an image from the OpenGL window - running the dialog
void render_image (glwin *view, video_options *iopts)
 render an image from the OpenGL window - prepare the dialog
void simple_image_render ()
 simple direct rendering from command line

Variables

GdkWindow * xwin
GLXContext glcontext
Pixmap pixmap
GLXPixmap glpixmap
GdkPixbuf * pixbuf
char * image_name [IMAGE_FORMATS]
char * image_list [IMAGE_FORMATS]
int render_image_format = NONE
int render_image_style = NONE
int render_image_axis = NONE
int render_image_box = NONE
int render_image_rep = NONE
int render_image_acolor = NONE
int render_image_pcolor = NONE
gboolean trigger_fragment_analysis = FALSE
gboolean trigger_molecule_analysis = FALSE
ColRGBArender_image_back_color = NULL
int render_image_back_grad = NONE
int render_image_back_dir = NONE
float render_image_back_pos = NONE
ColRGBArender_image_grad_color [2]
ColRGBArender_image_box_color = NULL
int * render_image_pixels = NULL
gchar * render_image_output = NULL

Detailed Description

Functions to render an image from the OpenGL window.

Author
Sébastien Le Roux sebas.nosp@m.tien.nosp@m..lero.nosp@m.ux@i.nosp@m.pcms..nosp@m.unis.nosp@m.tra.f.nosp@m.r

Definition in file image.c.

Function Documentation

◆ close_frame_buffer()

void close_frame_buffer ( )
extern

close the frame buffer

Definition at line 1210 of file movie.c.

◆ fill_image()

void fill_image ( VideoStream * vs,
int width,
int height,
glwin * view )
extern

render an image from an OpenGL rendering

Parameters
vsthe video stream
widthimage width
heightimage height
viewthe target glwin

Definition at line 278 of file movie.c.

◆ init_frame_buffer()

void init_frame_buffer ( int x,
int y )
extern

init a frame buffer

Parameters
xx size - image width
yy size - image height

Definition at line 1182 of file movie.c.

◆ render_image()

void render_image ( glwin * view,
video_options * iopts )

render an image from the OpenGL window - prepare the dialog

Parameters
viewthe target glwin
ioptsthe rendering options

Definition at line 200 of file image.c.

◆ run_render_image()

G_MODULE_EXPORT void run_render_image ( GtkDialog * info,
gint response_id,
gpointer data )

render an image from the OpenGL window - running the dialog

Parameters
infothe GtkDialog sending the signal
response_idthe response id
datathe associated data pointer

Definition at line 114 of file image.c.

◆ simple_image_render()

void simple_image_render ( )

simple direct rendering from command line

Definition at line 241 of file image.c.

Variable Documentation

◆ glcontext

GLXContext glcontext
extern

◆ glpixmap

GLXPixmap glpixmap
extern

◆ image_list

char* image_list[IMAGE_FORMATS]
Initial value:
= {"png",
"jpeg",
"tiff",
"bmp"}

Definition at line 68 of file image.c.

◆ image_name

char* image_name[IMAGE_FORMATS]
Initial value:
= {"PNG",
"JPG/JPEG",
"TIFF",
"Bitmap"}

Definition at line 63 of file image.c.

◆ pixbuf

GdkPixbuf* pixbuf
extern

Definition at line 122 of file movie.c.

◆ pixmap

Pixmap pixmap
extern

◆ render_image_acolor

int render_image_acolor = NONE

Definition at line 78 of file image.c.

◆ render_image_axis

int render_image_axis = NONE

Definition at line 75 of file image.c.

◆ render_image_back_color

ColRGBA* render_image_back_color = NULL

Definition at line 82 of file image.c.

◆ render_image_back_dir

int render_image_back_dir = NONE

Definition at line 84 of file image.c.

◆ render_image_back_grad

int render_image_back_grad = NONE

Definition at line 83 of file image.c.

◆ render_image_back_pos

float render_image_back_pos = NONE

Definition at line 85 of file image.c.

◆ render_image_box

int render_image_box = NONE

Definition at line 76 of file image.c.

◆ render_image_box_color

ColRGBA* render_image_box_color = NULL

Definition at line 87 of file image.c.

◆ render_image_format

int render_image_format = NONE

Definition at line 73 of file image.c.

◆ render_image_grad_color

ColRGBA* render_image_grad_color[2]

Definition at line 86 of file image.c.

◆ render_image_output

gchar* render_image_output = NULL

Definition at line 89 of file image.c.

◆ render_image_pcolor

int render_image_pcolor = NONE

Definition at line 79 of file image.c.

◆ render_image_pixels

int* render_image_pixels = NULL

Definition at line 88 of file image.c.

◆ render_image_rep

int render_image_rep = NONE

Definition at line 77 of file image.c.

◆ render_image_style

int render_image_style = NONE

Definition at line 74 of file image.c.

◆ trigger_fragment_analysis

gboolean trigger_fragment_analysis = FALSE

Definition at line 80 of file image.c.

◆ trigger_molecule_analysis

gboolean trigger_molecule_analysis = FALSE

Definition at line 81 of file image.c.

◆ xwin

GdkWindow* xwin
extern