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

lines.c File Reference

#include <volume_io/internal_volume_io.h>
#include <bicpl/objects.h>
#include <bicpl/geom.h>

Include dependency graph for lines.c:

Include dependency graph

Go to the source code of this file.

Functions

public void initialize_lines (lines_struct *lines, Colour col)
public void initialize_lines_with_size (lines_struct *lines, Colour col, int size, BOOLEAN closed)
public void delete_lines (lines_struct *lines)
public void start_new_line (lines_struct *lines)
public void add_point_to_line (lines_struct *lines, Point *point)
public void get_line_segment_index (lines_struct *lines, int obj_index, int *line, int *seg)
public void set_bintree_delete_function (void(*func)(bintree_struct_ptr *))
public void delete_bintree_if_any (bintree_struct_ptr *bintree)
public Real get_lines_length (lines_struct *lines)
public void get_lines_arc_point (lines_struct *lines, Real arc_length, Point *point)


Function Documentation

public void add_point_to_line lines_struct lines,
Point *  point
 

Definition at line 149 of file lines.c.

References lines_struct::end_indices, lines_struct::indices, lines_struct::n_items, lines_struct::n_points, lines_struct::points, and start_new_line().

Referenced by create_histogram_line(), and create_line_spline().

public void delete_bintree_if_any bintree_struct_ptr bintree  ) 
 

Definition at line 246 of file lines.c.

Referenced by delete_lines(), delete_polygons(), and delete_quadmesh().

public void delete_lines lines_struct lines  ) 
 

Definition at line 94 of file lines.c.

References lines_struct::bintree, lines_struct::colour_flag, lines_struct::colours, delete_bintree_if_any(), lines_struct::end_indices, free_colours(), lines_struct::indices, lines_struct::n_items, lines_struct::n_points, and lines_struct::points.

Referenced by delete_lines_object(), general_subdivide_lines(), and smooth_lines().

public void get_line_segment_index lines_struct lines,
int  obj_index,
int *  line,
int *  seg
 

Definition at line 179 of file lines.c.

References lines_struct::end_indices, and lines_struct::n_items.

Referenced by get_point_line_segment_distance_sq(), and intersect_ray_tube_segment().

public void get_lines_arc_point lines_struct lines,
Real  arc_length,
Point *  point
 

Definition at line 303 of file lines.c.

References distance_between_points(), lines_struct::end_indices, FALSE, GET_OBJECT_SIZE, lines_struct::indices, lines_struct::n_items, POINT_INDEX, lines_struct::points, and TRUE.

public Real get_lines_length lines_struct lines  ) 
 

Definition at line 266 of file lines.c.

References distance_between_points(), lines_struct::end_indices, GET_OBJECT_SIZE, lines_struct::indices, lines_struct::n_items, POINT_INDEX, and lines_struct::points.

public void initialize_lines lines_struct lines,
Colour  col
 

Definition at line 36 of file lines.c.

References lines_struct::bintree, lines_struct::colour_flag, lines_struct::colours, lines_struct::line_thickness, lines_struct::n_items, lines_struct::n_points, and ONE_COLOUR.

Referenced by create_histogram_line(), create_line_circle(), create_line_spline(), initialize_lines_with_size(), intersect_planes_with_polygons(), intersect_planes_with_quadmesh(), and io_lines().

public void initialize_lines_with_size lines_struct lines,
Colour  col,
int  size,
BOOLEAN  closed
 

Definition at line 52 of file lines.c.

References lines_struct::end_indices, lines_struct::indices, initialize_lines(), lines_struct::n_items, lines_struct::n_points, and lines_struct::points.

public void set_bintree_delete_function void(*  func)(bintree_struct_ptr *)  ) 
 

Definition at line 227 of file lines.c.

Referenced by check_install_bintree_delete_function().

public void start_new_line lines_struct lines  ) 
 

Definition at line 125 of file lines.c.

References lines_struct::end_indices, lines_struct::n_items, and NUMBER_INDICES.

Referenced by add_point_to_line(), create_line_spline(), intersect_planes_with_polygons(), and intersect_planes_with_quadmesh().


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