Main Page | Modules | Data Structures | File List | Data Fields | Globals | Related Pages

render.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/vols.h>

Include dependency graph for render.c:

Include dependency graph

Go to the source code of this file.

Data Structures

struct  render_storage_struct

Functions

private void clip (Real left_edge, Real right_edge, Real origin, Real delta, Real *t_min, Real *t_max)
public void * initialize_render_storage (void)
public void delete_render_storage (void *ptr)
public void render_volume_to_slice (int n_dims1, int sizes1[], void *volume_data1, Data_types volume1_type, int n_slices1, Real weights1[], int strides1[], Real **origins1, Real x_axis1[], Real y_axis1[], int n_dims2, int sizes2[], void *volume_data2, Data_types volume2_type, int n_slices2, Real weights2[], int strides2[], Real **origins2, Real x_axis2[], Real y_axis2[], int x_pixel_start, int x_pixel_end, int y_pixel_start, int y_pixel_end, unsigned short **cmode_colour_map, Colour **rgb_colour_map, Colour empty_colour, void *render_storage, pixels_struct *pixels)


Function Documentation

private void clip Real  left_edge,
Real  right_edge,
Real  origin,
Real  delta,
Real *  t_min,
Real *  t_max
 

Definition at line 39 of file render.c.

Referenced by render_volume_to_slice().

public void delete_render_storage void *  ptr  ) 
 

Definition at line 157 of file render.c.

References render_storage_struct::end_x, render_storage_struct::n_slices1_alloced, render_storage_struct::n_slices2_alloced, render_storage_struct::row_offsets1, render_storage_struct::row_offsets2, render_storage_struct::start_slices1, render_storage_struct::start_slices2, render_storage_struct::start_x, render_storage_struct::total_cases1_alloced, render_storage_struct::total_cases2_alloced, render_storage_struct::which_x_offsets1, render_storage_struct::which_x_offsets2, render_storage_struct::x_offsets1, render_storage_struct::x_offsets2, render_storage_struct::x_size1_alloced, render_storage_struct::x_size2_alloced, render_storage_struct::y_offsets1, render_storage_struct::y_offsets2, render_storage_struct::y_size1_alloced, and render_storage_struct::y_size2_alloced.

Referenced by render_volume_to_slice().

public void* initialize_render_storage void   ) 
 

Definition at line 122 of file render.c.

References render_storage_struct::n_slices1_alloced, render_storage_struct::n_slices2_alloced, render_storage_struct::total_cases1_alloced, render_storage_struct::total_cases2_alloced, render_storage_struct::x_size1_alloced, render_storage_struct::x_size2_alloced, render_storage_struct::y_size1_alloced, and render_storage_struct::y_size2_alloced.

Referenced by render_volume_to_slice().

public void render_volume_to_slice int  n_dims1,
int  sizes1[],
void *  volume_data1,
Data_types  volume1_type,
int  n_slices1,
Real  weights1[],
int  strides1[],
Real **  origins1,
Real  x_axis1[],
Real  y_axis1[],
int  n_dims2,
int  sizes2[],
void *  volume_data2,
Data_types  volume2_type,
int  n_slices2,
Real  weights2[],
int  strides2[],
Real **  origins2,
Real  x_axis2[],
Real  y_axis2[],
int  x_pixel_start,
int  x_pixel_end,
int  y_pixel_start,
int  y_pixel_end,
unsigned short **  cmode_colour_map,
Colour **  rgb_colour_map,
Colour  empty_colour,
void *  render_storage,
pixels_struct pixels
 

Definition at line 216 of file render.c.

References clip(), pixels_struct::data, delete_render_storage(), render_storage_struct::end_x, end_x, initialize_render_storage(), n_slices1, render_storage_struct::n_slices1_alloced, render_storage_struct::n_slices2_alloced, pixels_struct::pixel_type, render_one_row(), rgb_colour_map, RGB_PIXEL, render_storage_struct::row_offsets1, row_offsets1, render_storage_struct::row_offsets2, render_storage_struct::start_slices1, start_slices1, render_storage_struct::start_slices2, render_storage_struct::start_x, start_x, render_storage_struct::total_cases1_alloced, render_storage_struct::total_cases2_alloced, volume_data1, weights1, render_storage_struct::which_x_offsets1, render_storage_struct::which_x_offsets2, render_storage_struct::x_offsets1, render_storage_struct::x_offsets2, pixels_struct::x_size, render_storage_struct::x_size1_alloced, render_storage_struct::x_size2_alloced, y, render_storage_struct::y_offsets1, y_offsets1, render_storage_struct::y_offsets2, pixels_struct::y_size, render_storage_struct::y_size1_alloced, and render_storage_struct::y_size2_alloced.

Referenced by create_weighted_volume_slices().


Generated on Wed Jul 28 09:11:16 2004 for BICPL by doxygen 1.3.7