Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

drawTv_draw.c File Reference

#include "drawTv_draw.h"
#include <tina/sys/sysDef.h>
#include <tina/sys/sysPro.h>
#include <tina/math/mathDef.h>
#include <tina/math/mathPro.h>
#include <tinatool/draw/draw_TvDef.h>
#include <tinatool/draw/draw_TvPro.h>

Include dependency graph for drawTv_draw.c:

Include dependency graph

Go to the source code of this file.

Functions

void * tw_tool ()
void tv_screen_point ()
void tv_screen_line ()
void tv_screen_raster ()
void tv_screen_rect ()
void tv_screen_circle ()
void tv_screen_erase ()
void tv_screen_fillrect ()
void tv_screen_flush ()
void tv_screen_image ()
void tv_screen_polyline ()
void tv_screen_text ()
Ipos tv_proj2 ()
Ipos tv_proj3 ()
Vec2 tv_backproj2 ()
void tv_flush (Tv *tv)
void tv_erase (Tv *tv)
void tv_point (Tv *tv, Ipos p)
void tv_pointxy (Tv *tv, int x, int y)
void tv_point2 (Tv *tv, Vec2 p)
void tv_point3 (Tv *tv, Vec3 p)
void tv_line (Tv *tv, Ipos p1, Ipos p2)
void tv_linexy (Tv *tv, int x1, int y1, int x2, int y2)
void tv_line2 (Tv *tv, Vec2 p1, Vec2 p2)
void tv_line3 (Tv *tv, Vec3 p1, Vec3 p2)
void tv_dot (Tv *tv, Ipos p)
void tv_dotxy (Tv *tv, int x, int y)
void tv_dot2 (Tv *tv, Vec2 p)
void tv_dot3 (Tv *tv, Vec3 p)
void tv_bigdot (Tv *tv, Ipos p, int n)
void tv_bigdot2 (Tv *tv, Vec2 p, int n)
void tv_bigdot3 (Tv *tv, Vec3 p, int n)
void tv_cross (Tv *tv, Ipos p, int n)
void tv_cross2 (Tv *tv, Vec2 p, int n)
void tv_cross3 (Tv *tv, Vec3 p, int n)
void tv_vector (Tv *tv, Ipos p, Ipos v)
void tv_vector2 (Tv *tv, Vec2 p, Vec2 v)
void tv_vector3 (Tv *tv, Vec3 p, Vec3 v)
void tv_polyline (Tv *tv, List *points)
void tv_polyline2 (Tv *tv, List *points)
void tv_polyline3 (Tv *tv, List *points)
void tv_quad (Tv *tv, Ipos p1, Ipos p2, Ipos p3, Ipos p4)
void tv_quad2 (Tv *tv, Vec2 p1, Vec2 p2, Vec2 p3, Vec2 p4)
void tv_quad3 (Tv *tv, Vec3 p1, Vec3 p2, Vec3 p3, Vec3 p4)
void tv_rect (Tv *tv, Ipos p1, Ipos p2)
void tv_rect2 (Tv *tv, Vec2 p1, Vec2 p2)
void tv_rect3 (Tv *tv, Vec3 p1, Vec3 p2)
void tv_fillrect (Tv *tv, Ipos p1, Ipos p2)
void tv_fillrectxy (Tv *tv, int x1, int y1, int x2, int y2)
void tv_fillrect2 (Tv *tv, Vec2 p1, Vec2 p2)
void tv_fillrect3 (Tv *tv, Vec3 p1, Vec3 p2)
void tv_text (Tv *tv, char *string, Ipos p)
void tv_textxy (Tv *tv, char *string, int x, int y)
void tv_text2 (Tv *tv, char *string, Vec2 p)
void tv_text3 (Tv *tv, char *string, Vec3 p)
void tv_offset_text (Tv *tv, char *string, Ipos p, int offx, int offy)
void tv_offset_text2 (Tv *tv, char *string, Vec2 p, int offx, int offy)
void tv_offset_text3 (Tv *tv, char *string, Vec3 p, int offx, int offy)
void tv_pixel2 (Tv *tv, Vec2 p)
void tv_fillpixel2 (Tv *tv, Vec2 p)
void tv_circle (Tv *tv, Ipos centre, int radius)
void tv_circle2 (Tv *tv, Vec2 centre, double radius)
void tv_raster (Tv *tv, int x1, int x2, int y, char *raster)


Function Documentation

Vec2 tv_backproj2  ) 
 

Referenced by conn_delete_line(), conn_delete_pixel(), conn_drag(), conn_roi(), copy_region(), ct_pixel_gfit_plot(), ct_pixel_pfit_plot(), draw_circle_drag(), draw_circle_plot(), draw_circle_up(), draw_line_drag(), draw_line_up(), draw_roi_drag(), draw_roi_up(), epi_left_down(), epi_left_drag(), epi_left_up(), epi_right_down(), epi_right_drag(), epi_right_up(), grey_level(), left_grey(), left_pick_closest_corner(), left_pick_closest_corr_match(), left_pick_closest_edge(), left_pick_closest_matchlist(), left_pick_closest_string(), left_pick_corner_matchlist(), mask_size_point_d(), mask_size_start_d(), mono_grey(), mono_pick_closest_edge(), mono_pick_corner_matchlist(), new_rasters(), order_left_down(), order_left_drag(), order_left_up(), order_right_down(), order_right_drag(), order_right_up(), paxis_frame_drag(), paxis_set_end(), paxis_set_start(), pick_conic2_dist(), pixel_ft_plot(), pixel_gfit_plot(), pixel_pfit_plot(), pmove_frame_drag(), pmove_frame_get(), pnt_place_down(), pnt_place_drag(), pos2_print(), profile_proc(), raster_left_down(), raster_left_drag(), raster_left_up(), raster_right_down(), raster_right_drag(), raster_right_up(), raxis_frame_drag(), raxis_set_end(), raxis_set_start(), right_grey(), right_pick_closest_corner(), right_pick_closest_corr_match(), right_pick_closest_edge(), right_pick_corner_matchlist(), rmove_frame_drag(), rmove_frame_get(), roiline_closest(), roipnt_closest(), seq_grey(), set_start_down(), set_tal_down(), spline_insert_point(), spline_mark_point(), spline_remove_point(), spline_replace_down(), spline_replace_drag(), spline_replace_up(), store_loc(), tal_comp(), tv_get_tv_screen_region(), tv_image2(), tv_imrect2_interpol(), tv_imzoom_proc(), tv_init(), tv_polyroi_proc(), tv_roi_proc(), tv_roigbl_proc(), and tv_roipnt_proc().

void tv_bigdot Tv tv,
Ipos  p,
int  n
 

Definition at line 180 of file drawTv_draw.c.

References ipos(), Tv, tv::tv_screen, and tv_screen_fillrect().

Referenced by tv_bigdot2(), and tv_bigdot3().

00181 {
00182     int x = ipos_x(p);
00183     int y = ipos_y(p);
00184     if (tv == NULL)
00185         return;
00186     tv_screen_fillrect(tv->tv_screen, ipos(x - n, y - n), ipos(x + n + 1, y + n + 1));
00187 }

Here is the call graph for this function:

void tv_bigdot2 Tv tv,
Vec2  p,
int  n
 

Definition at line 189 of file drawTv_draw.c.

References Tv, tv_bigdot(), and tv_proj2().

Referenced by draw_profile_region(), overlay_proc(), paxis_set_end(), paxis_set_start(), paxis_show(), pmove_frame_drag(), pmove_frame_get(), pmove_frame_put(), pnt_list_show(), pnt_place_down(), pnt_place_drag(), raxis_set_end(), raxis_set_start(), raxis_show(), rmove_frame_drag(), rmove_frame_get(), spline2_draw_points(), spline_mark_point(), store_loc(), tv_poly_draw(), tv_polyroi_proc(), and ucbs2_draw_points().

00190 {
00191     if (tv == NULL)
00192         return;
00193     tv_bigdot(tv, tv_proj2(tv, p), n);
00194 }

Here is the call graph for this function:

void tv_bigdot3 Tv tv,
Vec3  p,
int  n
 

Definition at line 196 of file drawTv_draw.c.

References Tv, tv_bigdot(), and tv_proj3().

00197 {
00198     if (tv == NULL)
00199         return;
00200     tv_bigdot(tv, tv_proj3(tv, p), n);
00201 }

Here is the call graph for this function:

void tv_circle Tv tv,
Ipos  centre,
int  radius
 

Definition at line 509 of file drawTv_draw.c.

References Tv, tv::tv_screen, and tv_screen_circle().

00510 {
00511     if (tv == NULL)
00512         return;
00513     tv_screen_circle(tv->tv_screen, centre, radius);
00514 }

Here is the call graph for this function:

void tv_circle2 Tv tv,
Vec2  centre,
double  radius
 

Definition at line 516 of file drawTv_draw.c.

References tv::scalex, Tv, tv_proj2(), tv::tv_screen, and tv_screen_circle().

Referenced by draw_circle_drag(), draw_circle_plot(), draw_circle_up(), and raxis_show().

00517 {
00518     extern void tv_screen_circle();
00519     Ipos c = {Ipos_id};
00520     int r;
00521     if (tv == NULL)
00522         return;
00523     c = tv_proj2(tv, centre);
00524     r = (int) (radius * tv->scalex);    
00525     tv_screen_circle(tv->tv_screen, c, r);
00526 }

Here is the call graph for this function:

void tv_cross Tv tv,
Ipos  p,
int  n
 

Definition at line 203 of file drawTv_draw.c.

References ipos(), Tv, and tv_line().

Referenced by draw_sample_inner(), draw_sample_outer(), draw_tal_drag(), set_tal_down(), tv_cross2(), and tv_cross3().

00204 {
00205     int x0, x1, x2;
00206     int y0, y1, y2;
00207     if (tv == NULL)
00208         return;
00209     x1 = ipos_x(p);
00210     x0 = x1 - n;
00211     x2 = x1 + n;
00212     y1 = ipos_y(p);
00213     y0 = y1 - n;
00214     y2 = y1 + n;
00215     tv_line(tv, ipos(x0, y1), ipos(x2, y1));
00216     tv_line(tv, ipos(x1, y0), ipos(x1, y2));
00217 }

Here is the call graph for this function:

void tv_cross2 Tv tv,
Vec2  p,
int  n
 

Definition at line 219 of file drawTv_draw.c.

References Tv, tv_cross(), and tv_proj2().

Referenced by display_stereo_match(), draw_leftcross(), draw_matchable(), draw_rightcross(), mono_pick_mlist_cordraw(), pick_corner_draw(), pick_edge_draw(), pick_mlist_cordraw(), pl_graph_plot(), pl_scatter_plot(), raxis_show(), and tv_string2().

00220 {
00221     if (tv == NULL)
00222         return;
00223     tv_cross(tv, tv_proj2(tv, p), n);
00224 }

Here is the call graph for this function:

void tv_cross3 Tv tv,
Vec3  p,
int  n
 

Definition at line 226 of file drawTv_draw.c.

References Tv, tv_cross(), and tv_proj3().

00227 {
00228     if (tv == NULL)
00229         return;
00230     tv_cross(tv, tv_proj3(tv, p), n);
00231 }

Here is the call graph for this function:

void tv_dot Tv tv,
Ipos  p
 

Definition at line 152 of file drawTv_draw.c.

References ipos(), Tv, tv::tv_screen, and tv_screen_fillrect().

Referenced by centredot(), tv_dot2(), tv_dot3(), tv_dotxy(), and tv_vector().

00153 {
00154     int x = ipos_x(p);
00155     int y = ipos_y(p);
00156     if (tv == NULL)
00157         return;
00158     tv_screen_fillrect(tv->tv_screen, ipos(x - 1, y - 1), ipos(x + 2, y + 2));
00159 }

Here is the call graph for this function:

void tv_dot2 Tv tv,
Vec2  p
 

Definition at line 166 of file drawTv_draw.c.

References Tv, tv_dot(), and tv_proj2().

Referenced by kwsnake_draw(), pl_graph_plot(), point2_draw(), point2_list_draw(), tv_vector2(), and ucbs2_draw_ctrl().

00167 {
00168     if (tv == NULL)
00169         return;
00170     tv_dot(tv, tv_proj2(tv, p));
00171 }

Here is the call graph for this function:

void tv_dot3 Tv tv,
Vec3  p
 

Definition at line 173 of file drawTv_draw.c.

References Tv, tv_dot(), and tv_proj3().

Referenced by point3_draw(), point3_list_draw(), and tv_vector3().

00174 {
00175     if (tv == NULL)
00176         return;
00177     tv_dot(tv, tv_proj3(tv, p));
00178 }

Here is the call graph for this function:

void tv_dotxy Tv tv,
int  x,
int  y
 

Definition at line 161 of file drawTv_draw.c.

References ipos(), Tv, and tv_dot().

Referenced by density_list_overlayer().

00162 {
00163     tv_dot(tv, ipos(x, y));
00164 }

Here is the call graph for this function:

void tv_erase Tv tv  ) 
 

Definition at line 89 of file drawTv_draw.c.

00090 {
00091     if (tv == NULL)
00092         return;
00093     tv_screen_erase(tv->tv_screen);
00094 }

void tv_fillpixel2 Tv tv,
Vec2  p
 

Definition at line 483 of file drawTv_draw.c.

References Tv, tv_proj2(), tv::tv_screen, tv_screen_fillrect(), and tv_screen_point().

00484 {
00485     Ipos pos1 = {Ipos_id};
00486     Ipos pos2 = {Ipos_id};
00487     if (tv == NULL)
00488         return;
00489 
00490     vec2_x(p) = (float)(tina_int(vec2_x(p)));
00491     vec2_y(p) = (float)(tina_int(vec2_y(p)));
00492     pos1 = tv_proj2(tv, p);
00493 
00494     vec2_x(p) += (float)1.0;
00495     vec2_y(p) += (float)1.0;
00496     pos2 = tv_proj2(tv, p);
00497 
00498     if (ipos_equal(pos1, pos2))
00499     {
00500         tv_screen_point(tv->tv_screen, pos1);
00501         return;
00502     }
00503     ipos_x(pos2) -= 1;
00504     ipos_y(pos2) -= 1;
00505 
00506     tv_screen_fillrect(tv->tv_screen, pos1, pos2);
00507 }

Here is the call graph for this function:

void tv_fillrect Tv tv,
Ipos  p1,
Ipos  p2
 

Definition at line 358 of file drawTv_draw.c.

References Tv, tv::tv_screen, and tv_screen_fillrect().

00359 {
00360     if (tv == NULL)
00361         return;
00362     tv_screen_fillrect(tv->tv_screen, p1, p2);
00363 }

Here is the call graph for this function:

void tv_fillrect2 Tv tv,
Vec2  p1,
Vec2  p2
 

Definition at line 372 of file drawTv_draw.c.

References Tv, tv_proj2(), tv::tv_screen, and tv_screen_fillrect().

00373 {
00374     if (tv == NULL)
00375         return;
00376     tv_screen_fillrect(tv->tv_screen, tv_proj2(tv, p1), tv_proj2(tv, p2));
00377 }

Here is the call graph for this function:

void tv_fillrect3 Tv tv,
Vec3  p1,
Vec3  p2
 

Definition at line 379 of file drawTv_draw.c.

References Tv, tv_proj3(), tv::tv_screen, and tv_screen_fillrect().

00380 {
00381     if (tv == NULL)
00382         return;
00383     tv_screen_fillrect(tv->tv_screen, tv_proj3(tv, p1), tv_proj3(tv, p2));
00384 }

Here is the call graph for this function:

void tv_fillrectxy Tv tv,
int  x1,
int  y1,
int  x2,
int  y2
 

Definition at line 365 of file drawTv_draw.c.

References ipos(), Tv, tv::tv_screen, and tv_screen_fillrect().

Referenced by cmap_tool_redraw().

00366 {
00367     if (tv == NULL)
00368         return;
00369     tv_screen_fillrect(tv->tv_screen, ipos(x1, y1), ipos(x2, y2));
00370 }

Here is the call graph for this function:

void tv_flush Tv tv  ) 
 

Definition at line 82 of file drawTv_draw.c.

References Tv, tv::tv_screen, and tv_screen_flush().

Referenced by draw_leftcross(), draw_rightcross(), draw_sample_inner(), draw_sample_outer(), flip_mono_im(), mono_canny_proc(), mono_corner_proc(), play_seq(), stereo_canny_proc(), stereo_corner_proc(), test_canny_proc(), tv_loop_movie(), tv_random_movie(), and tv_show_movie().

00083 {
00084     if (tv == NULL)
00085         return;
00086     tv_screen_flush(tv->tv_screen);
00087 }

Here is the call graph for this function:

void tv_line Tv tv,
Ipos  p1,
Ipos  p2
 

Definition at line 124 of file drawTv_draw.c.

00125 {
00126     if (tv == NULL)
00127         return;
00128     tv_screen_line(tv->tv_screen, p1, p2);
00129 }

void tv_line2 Tv tv,
Vec2  p1,
Vec2  p2
 

Definition at line 138 of file drawTv_draw.c.

References Tv, tv_proj2(), tv::tv_screen, and tv_screen_line().

Referenced by conic2_draw_axes(), draw_line_drag(), draw_line_plot(), draw_line_up(), draw_string_vec2(), epi_left_down(), epi_left_drag(), epi_left_up(), epi_right_down(), epi_right_drag(), epi_right_up(), kwsnake_draw(), line2_draw(), linexy(), lower_tri(), mask_size_point_d(), order_left_down(), order_left_drag(), order_left_up(), order_right_down(), order_right_drag(), order_right_up(), overlay_proc(), paxis_draw(), paxis_frame_drag(), paxis_set_end(), pl_graph_plot(), pl_xaxis_plot(), pl_yaxis_plot(), pmove_frame_drag(), pmove_frame_get(), pmove_frame_put(), raster_left_down(), raster_left_drag(), raster_left_up(), raster_right_down(), raster_right_drag(), raster_right_up(), raxis_draw(), raxis_frame_drag(), raxis_set_end(), raxis_show(), rmove_frame_drag(), rmove_frame_get(), str2_draw(), tv_pframe_draw(), tv_poly_draw(), tv_polyroi_proc(), tv_quad2(), tv_string2(), tv_string2_col(), tv_vector2(), ucbs2_draw_ctrl(), and upper_tri().

00139 {
00140     if (tv == NULL)
00141         return;
00142     tv_screen_line(tv->tv_screen, tv_proj2(tv, p1), tv_proj2(tv, p2));
00143 }

Here is the call graph for this function:

void tv_line3 Tv tv,
Vec3  p1,
Vec3  p2
 

Definition at line 145 of file drawTv_draw.c.

References Tv, tv_proj3(), tv::tv_screen, and tv_screen_line().

Referenced by draw3_str2(), draw_string_vec3(), draw_triangle3(), kwsnake_draw3(), line3_draw(), linexy(), linexz(), linezy(), skeldraw3_str2(), tv_polygon3(), tv_quad3(), tv_terrain3(), tv_terrain3_mask(), tv_terrain_skel(), and tv_vector3().

00146 {
00147     if (tv == NULL)
00148         return;
00149     tv_screen_line(tv->tv_screen, tv_proj3(tv, p1), tv_proj3(tv, p2));
00150 }

Here is the call graph for this function:

void tv_linexy Tv tv,
int  x1,
int  y1,
int  x2,
int  y2
 

Definition at line 131 of file drawTv_draw.c.

References ipos(), Tv, tv::tv_screen, and tv_screen_line().

Referenced by density_list_overlayer(), draw_triangle3_fill(), legend(), and tv_crosshair().

00132 {
00133     if (tv == NULL)
00134         return;
00135     tv_screen_line(tv->tv_screen, ipos(x1, y1), ipos(x2, y2));
00136 }

Here is the call graph for this function:

void tv_offset_text Tv tv,
char *  string,
Ipos  p,
int  offx,
int  offy
 

Definition at line 414 of file drawTv_draw.c.

References Tv, tv::tv_screen, and tv_screen_text().

Referenced by tv_cctext(), tv_cltext(), tv_crtext(), tv_lctext(), tv_offset_text2(), tv_offset_text3(), and tv_uctext().

00415 {
00416     if (tv == NULL)
00417         return;
00418     p.x += offx;
00419     p.y += offy;
00420     tv_screen_text(tv->tv_screen, string, p);
00421 }

Here is the call graph for this function:

void tv_offset_text2 Tv tv,
char *  string,
Vec2  p,
int  offx,
int  offy
 

Definition at line 423 of file drawTv_draw.c.

References Tv, tv_offset_text(), and tv_proj2().

00424 {
00425     if (tv == NULL)
00426         return;
00427     tv_offset_text(tv, string, tv_proj2(tv, p), offx, offy);
00428 }

Here is the call graph for this function:

void tv_offset_text3 Tv tv,
char *  string,
Vec3  p,
int  offx,
int  offy
 

Definition at line 430 of file drawTv_draw.c.

References Tv, tv_offset_text(), and tv_proj3().

00431 {
00432     if (tv == NULL)
00433         return;
00434     tv_offset_text(tv, string, tv_proj3(tv, p), offx, offy);
00435 }

Here is the call graph for this function:

void tv_pixel2 Tv tv,
Vec2  p
 

Definition at line 437 of file drawTv_draw.c.

References Tv, tv_proj2(), tv::tv_screen, tv_screen_line(), tv_screen_point(), and tv_screen_rect().

Referenced by conn_delete_line(), conn_delete_pixel(), draw_matchable(), pixelxy(), plot_rightpix(), plot_tvpix(), tv_edge_string(), tv_edges(), tv_edges_conn(), tv_edges_conn_propmask(), tv_match(), tv_string2(), and tv_string2_col().

00438 {
00439     Ipos pos1 = {Ipos_id};
00440     Ipos pos2 = {Ipos_id};
00441     if (tv == NULL)
00442         return;
00443 
00444     vec2_x(p) = (float)(tina_int(vec2_x(p)));
00445     vec2_y(p) = (float)(tina_int(vec2_y(p)));
00446     pos1 = tv_proj2(tv, p);
00447 
00448     vec2_x(p) += (float)1.0;
00449     vec2_y(p) += (float)1.0;
00450     pos2 = tv_proj2(tv, p);
00451 
00452     if (ipos_equal(pos1, pos2))
00453     {
00454         tv_screen_point(tv->tv_screen, pos1);
00455         return;
00456     }
00457     if (ipos_x(pos2) == ipos_x(pos1))
00458     {
00459         ipos_y(pos2) -= 1;
00460 
00461         if (ipos_equal(pos1, pos2))
00462             tv_screen_point(tv->tv_screen, pos1);
00463         tv_screen_line(tv->tv_screen, pos1, pos2);
00464         return;
00465     }
00466     if (ipos_y(pos2) == ipos_y(pos1))
00467     {
00468         ipos_x(pos2) -= 1;
00469         if (ipos_equal(pos1, pos2))
00470             tv_screen_point(tv->tv_screen, pos1);
00471         tv_screen_line(tv->tv_screen, pos1, pos2);
00472         return;
00473     }
00474     ipos_x(pos2) -= 1;
00475     ipos_y(pos2) -= 1;
00476 
00477     if (ipos_equal(pos1, pos2))
00478         tv_screen_point(tv->tv_screen, pos1);
00479     else
00480         tv_screen_rect(tv->tv_screen, pos1, pos2);
00481 }

Here is the call graph for this function:

void tv_point Tv tv,
Ipos  p
 

Definition at line 96 of file drawTv_draw.c.

References Tv, tv::tv_screen, and tv_screen_point().

Referenced by conic2_draw_col(), conic3_draw_col(), mono_show_stored_corners(), tv_rect(), and tv_zbuff_point().

00097 {
00098     if (tv == NULL)
00099         return;
00100     tv_screen_point(tv->tv_screen, p);
00101 }

Here is the call graph for this function:

void tv_point2 Tv tv,
Vec2  p
 

Definition at line 110 of file drawTv_draw.c.

References Tv, tv_proj2(), tv::tv_screen, and tv_screen_point().

Referenced by draw_sample_inner(), draw_sample_outer(), pl_graph_plot(), tv_string2(), and tv_string2_col().

00111 {
00112     if (tv == NULL)
00113         return;
00114     tv_screen_point(tv->tv_screen, tv_proj2(tv, p));
00115 }

Here is the call graph for this function:

void tv_point3 Tv tv,
Vec3  p
 

Definition at line 117 of file drawTv_draw.c.

References Tv, tv_proj3(), tv::tv_screen, and tv_screen_point().

00118 {
00119     if (tv == NULL)
00120         return;
00121     tv_screen_point(tv->tv_screen, tv_proj3(tv, p));
00122 }

Here is the call graph for this function:

void tv_pointxy Tv tv,
int  x,
int  y
 

Definition at line 103 of file drawTv_draw.c.

References ipos(), Tv, tv::tv_screen, and tv_screen_point().

Referenced by tv_hidden_line(), tv_points_between(), and tv_points_between_col().

00104 {
00105     if (tv == NULL)
00106         return;
00107     tv_screen_point(tv->tv_screen, ipos(x, y));
00108 }

Here is the call graph for this function:

void tv_polyline Tv tv,
List *  points
 

Definition at line 253 of file drawTv_draw.c.

References points, Tv, tv::tv_screen, and tv_screen_polyline().

00254 {
00255     if (tv == NULL)
00256         return;
00257     tv_screen_polyline(tv->tv_screen, points);
00258 }

Here is the call graph for this function:

void tv_polyline2 Tv tv,
List *  points
 

Definition at line 260 of file drawTv_draw.c.

References points, ref_addtostart(), rfree(), Tv, tv_proj2(), tv::tv_screen, and tv_screen_polyline().

00261 {
00262     List *ptr;
00263     List *ipoints = NULL;
00264     List *ref_addtostart();
00265     if (tv == NULL)
00266         return;
00267     for (ptr = points; ptr != NULL; ptr = ptr->next)
00268     {
00269         Ipos *p = ipos_alloc();
00270         *p = tv_proj2(tv, *((Vec2 *) ptr->to));
00271         ipoints = ref_addtostart(ipoints, (void *) &p, 0);
00272     }
00273     tv_screen_polyline(tv->tv_screen, ipoints);
00274     list_rm(ipoints, rfree);
00275 }

Here is the call graph for this function:

void tv_polyline3 Tv tv,
List *  points
 

Definition at line 277 of file drawTv_draw.c.

References points, ref_addtostart(), rfree(), Tv, tv_proj3(), tv::tv_screen, and tv_screen_polyline().

00278 {
00279     List *ptr;
00280     List *ipoints = NULL;
00281     List *ref_addtostart();
00282     if (tv == NULL)
00283         return;
00284     for (ptr = points; ptr != NULL; ptr = ptr->next)
00285     {
00286         Ipos *p = ipos_alloc();
00287         *p = tv_proj3(tv, *((Vec3 *) ptr->to));
00288         ipoints = ref_addtostart(ipoints, (void *) &p, 0);
00289     }
00290     tv_screen_polyline(tv->tv_screen, ipoints);
00291     list_rm(ipoints, rfree);
00292 }

Here is the call graph for this function:

Ipos tv_proj2  ) 
 

Referenced by conic2_ipos(), draw_sample_inner(), draw_sample_outer(), mono_show_stored_corners(), new_rasters(), pick_conic2_dist(), pick_line2_dist(), pick_point2_dist(), spline2_proj2(), tv_bigdot2(), tv_circle2(), tv_clip_mask2_get(), tv_cltext2(), tv_cross2(), tv_crtext2(), tv_dot2(), tv_fillpixel2(), tv_fillrect2(), tv_image2(), tv_lctext2(), tv_line2(), tv_offset_text2(), tv_pixel2(), tv_point2(), tv_polyline2(), tv_rect2(), tv_text2(), tv_uctext2(), tv_xtick2(), tv_ytick2(), and ucbs2_proj2().

Ipos tv_proj3  ) 
 

Referenced by conic3_ipos(), directed_model_closest(), directed_scene_closest(), draw_triangle3_fill(), line3_draw_directed(), line3_draw_with_arrow(), pick_conic3_dist(), pick_line3_dist(), pick_plane_dist(), pick_point3_dist(), terrain_closest_corner(), tv_bigdot3(), tv_cltext3(), tv_cross3(), tv_crtext3(), tv_dot3(), tv_fillrect3(), tv_lctext3(), tv_line3(), tv_offset_text3(), tv_point3(), tv_polyline3(), tv_rect3(), tv_terrain_fill3(), tv_terrain_hidden3(), tv_text3(), tv_uctext3(), tv_xtick3(), tv_ytick3(), tv_zbuff_proj3(), and ucbs2_proj3().

void tv_quad Tv tv,
Ipos  p1,
Ipos  p2,
Ipos  p3,
Ipos  p4
 

Definition at line 294 of file drawTv_draw.c.

References Tv, and tv_line().

00295 {
00296     tv_line(tv, p1, p2);
00297     tv_line(tv, p2, p3);
00298     tv_line(tv, p3, p4);
00299     tv_line(tv, p4, p1);
00300 }

Here is the call graph for this function:

void tv_quad2 Tv tv,
Vec2  p1,
Vec2  p2,
Vec2  p3,
Vec2  p4
 

Definition at line 302 of file drawTv_draw.c.

References Tv, and tv_line2().

00303 {
00304     tv_line2(tv, p1, p2);
00305     tv_line2(tv, p2, p3);
00306     tv_line2(tv, p3, p4);
00307     tv_line2(tv, p4, p1);
00308 }

Here is the call graph for this function:

void tv_quad3 Tv tv,
Vec3  p1,
Vec3  p2,
Vec3  p3,
Vec3  p4
 

Definition at line 310 of file drawTv_draw.c.

References Tv, and tv_line3().

00311 {
00312     tv_line3(tv, p1, p2);
00313     tv_line3(tv, p2, p3);
00314     tv_line3(tv, p3, p4);
00315     tv_line3(tv, p4, p1);
00316 }

Here is the call graph for this function:

void tv_raster Tv tv,
int  x1,
int  x2,
int  y,
char *  raster
 

Definition at line 528 of file drawTv_draw.c.

References Tv, tv::tv_screen, and tv_screen_raster().

Referenced by tv_imrect_row(), and tv_imrect_row2().

00529 {
00530     /* assumes grey level conversion complete */
00531     if (tv == NULL)
00532         return;
00533     tv_screen_raster(tv->tv_screen, x1, x2, y, raster + x1);
00534 }

Here is the call graph for this function:

void tv_rect Tv tv,
Ipos  p1,
Ipos  p2
 

Definition at line 318 of file drawTv_draw.c.

References ipos(), Tv, tv_line(), and tv_point().

Referenced by tv_rect2(), and tv_rect3().

00319 {
00320     int x1, x2, sx;
00321     int y1, y2, sy;
00322     if (tv == NULL)
00323         return;
00324     x1 = ipos_x(p1);
00325     x2 = ipos_x(p2);
00326     y1 = ipos_y(p1);
00327     y2 = ipos_y(p2);
00328     if (x1 == x2 || y1 == y2)
00329     {
00330         if (x1 == x2 && y1 == y2)
00331             tv_point(tv, p1);
00332         else
00333             tv_line(tv, p1, p2);
00334         return;
00335     }
00336     sx = (x1 < x2) ? 1 : -1;
00337     sy = (y1 < y2) ? 1 : -1;
00338     tv_line(tv, ipos(x1, y1), ipos(x1, y2));
00339     tv_line(tv, ipos(x1, y1), ipos(x2, y1));
00340     tv_line(tv, ipos(x1 + sx, y2), ipos(x2, y2));
00341     tv_line(tv, ipos(x2, y1 + sy), ipos(x2, y2));
00342 }

Here is the call graph for this function:

void tv_rect2 Tv tv,
Vec2  p1,
Vec2  p2
 

Definition at line 344 of file drawTv_draw.c.

References Tv, tv_proj2(), and tv_rect().

Referenced by conn_drag(), conn_roi(), draw_roi_drag(), draw_roi_plot(), draw_roi_up(), mask_size_start_d(), mask_size_start_u(), stereo_corner_proc(), tv_imzoom_proc(), and tv_roi_proc().

00345 {
00346     if (tv == NULL)
00347         return;
00348     tv_rect(tv, tv_proj2(tv, p1), tv_proj2(tv, p2));
00349 }

Here is the call graph for this function:

void tv_rect3 Tv tv,
Vec3  p1,
Vec3  p2
 

Definition at line 351 of file drawTv_draw.c.

References Tv, tv_proj3(), and tv_rect().

00352 {
00353     if (tv == NULL)
00354         return;
00355     tv_rect(tv, tv_proj3(tv, p1), tv_proj3(tv, p2));
00356 }

Here is the call graph for this function:

void tv_screen_circle  ) 
 

Referenced by tv_circle(), and tv_circle2().

void tv_screen_erase  ) 
 

Referenced by tv_erase().

void tv_screen_fillrect  ) 
 

Referenced by tv_bigdot(), tv_dot(), tv_fillpixel2(), tv_fillrect(), tv_fillrect2(), tv_fillrect3(), and tv_fillrectxy().

void tv_screen_flush  ) 
 

Referenced by tv_flush().

void tv_screen_image  ) 
 

Referenced by tv_image(), and tv_image2().

void tv_screen_line  ) 
 

Referenced by tv_line(), tv_line2(), tv_line3(), tv_linexy(), and tv_pixel2().

void tv_screen_point  ) 
 

Referenced by tv_fillpixel2(), tv_pixel2(), tv_point(), tv_point2(), tv_point3(), and tv_pointxy().

void tv_screen_polyline  ) 
 

Referenced by tv_polyline(), tv_polyline2(), and tv_polyline3().

void tv_screen_raster  ) 
 

Referenced by tv_raster().

void tv_screen_rect  ) 
 

Referenced by tv_pixel2().

void tv_screen_text  ) 
 

Referenced by tv_offset_text(), tv_text(), tv_text2(), tv_text3(), and tv_textxy().

void tv_text Tv tv,
char *  string,
Ipos  p
 

Definition at line 386 of file drawTv_draw.c.

00387 {
00388     if (tv == NULL)
00389         return;
00390     tv_screen_text(tv->tv_screen, string, p);
00391 }

void tv_text2 Tv tv,
char *  string,
Vec2  p
 

Definition at line 400 of file drawTv_draw.c.

References Tv, tv_proj2(), tv::tv_screen, and tv_screen_text().

Referenced by sroi_polygon_label().

00401 {
00402     if (tv == NULL)
00403         return;
00404     tv_screen_text(tv->tv_screen, string, tv_proj2(tv, p));
00405 }

Here is the call graph for this function:

void tv_text3 Tv tv,
char *  string,
Vec3  p
 

Definition at line 407 of file drawTv_draw.c.

References Tv, tv_proj3(), tv::tv_screen, and tv_screen_text().

Referenced by tv_zbuff_text3().

00408 {
00409     if (tv == NULL)
00410         return;
00411     tv_screen_text(tv->tv_screen, string, tv_proj3(tv, p));
00412 }

Here is the call graph for this function:

void tv_textxy Tv tv,
char *  string,
int  x,
int  y
 

Definition at line 393 of file drawTv_draw.c.

References ipos(), Tv, tv::tv_screen, and tv_screen_text().

Referenced by cmap_tool_redraw().

00394 {
00395     if (tv == NULL)
00396         return;
00397     tv_screen_text(tv->tv_screen, string, ipos(x, y));
00398 }

Here is the call graph for this function:

void tv_vector Tv tv,
Ipos  p,
Ipos  v
 

Definition at line 233 of file drawTv_draw.c.

References Tv, tv_dot(), and tv_line().

00234 {
00235     if (tv == NULL)
00236         return;
00237     tv_dot(tv, p);
00238     tv_line(tv, p, ipos_sum(p, v));
00239 }

Here is the call graph for this function:

void tv_vector2 Tv tv,
Vec2  p,
Vec2  v
 

Definition at line 241 of file drawTv_draw.c.

References Tv, tv_dot2(), and tv_line2().

Referenced by pvec2_draw().

00242 {
00243     tv_dot2(tv, p);
00244     tv_line2(tv, p, vec2_sum(p, v));
00245 }

Here is the call graph for this function:

void tv_vector3 Tv tv,
Vec3  p,
Vec3  v
 

Definition at line 247 of file drawTv_draw.c.

References Tv, tv_dot3(), and tv_line3().

00248 {
00249     tv_dot3(tv, p);
00250     tv_line3(tv, p, vec3_sum(p, v));
00251 }

Here is the call graph for this function:

void* tw_tool  ) 
 

Referenced by calib_plots_tool(), calib_tool(), colour_tool(), coreg_tool(), corner_tool(), cortical_thickness_tool(), ctanalysis_tool(), display_tool(), dump_tool(), edge_tool(), help_proc(), hist_tool(), image_create_tool(), imcalc_tool(), macro_tool(), main(), matcher_tool(), mono_tool(), nmr_segment_tool(), nmranalysis_tool(), octants_tool(), raw_input_tool(), seq_tool(), seqroi_tool(), sroi_tool(), st_corr_tool(), stereo_test_tool(), stereo_tool(), terrain_tool(), tw_dialog(), and view_tool().


Generated on Thu Nov 12 02:21:05 2009 for Tools by doxygen 1.3.6