#include <tinatool/draw/draw_TvDef.h>#include <tina/math/mathDef.h>Include dependency graph for drawTv_props.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Functions | |
| void | tv_background_set (Tv *tv, Tina_pixel color) |
| void | tv_color_set (Tv *tv, Tina_pixel color) |
| void | tv_color_reset (Tv *tv, Tina_pixel color) |
| int | tv_get_pixel (Tv *tv, Ipos pos) |
| Tina_pixel | tv_get_grey (Tv *tv, Ipos pos) |
| void | tv_set_color (Tv *tv, Tina_pixel color) |
| int | tv_color_get (Tv *tv) |
| int | tv_get_color (Tv *tv) |
| int | tv_set_op (Tv *tv, int op) |
| int | tv_get_op (Tv *tv) |
| int | tv_set_linewidth (Tv *tv, int width) |
| int | tv_get_linewidth (Tv *tv) |
| int | tv_set_linestyle (Tv *tv, int style) |
| int | tv_get_linestyle (Tv *tv) |
| void | tv_named_font_set (Tv *tv, char *font_name) |
| char * | tv_named_font_get (Tv *tv) |
| void | tv_save_draw (Tv *tv) |
| void | tv_set_overlay (Tv *tv) |
| void | tv_reset_color (Tv *tv, Tina_pixel color, int r, int g, int b) |
| void | tv_reset_named_color (Tv *tv, Tina_pixel color, char *color_name) |
| void | tv_reset_draw (Tv *tv) |
| void * | tv_set_drawdata (Tv *tv, void *newdrawdata) |
| int | tv_set_zoomlevel (Tv *tv, int zoomlevel) |
| void | tv_set_paint_mode (Tv *tv, int mode) |
| void | tv_get_text_extent (Tv *tv, char *string, int *xmin, int *xmax, int *ymin, int *ymax) |
Variables | |
| void(*)() | tv_set_fulldraw (Tv *tv, void(*newfulldraw)()) |
| void(*)() | tv_set_skeldraw (Tv *tv, void(*newskeldraw)()) |
| void(*)() | tv_set_backdraw (Tv *tv, void(*newbackdraw)()) |
|
||||||||||||
|
Definition at line 76 of file drawTv_props.c. References tv::cmap_data_visible, cmap_type_dynamic, cmap_data_visible::std_lut, Tina_pixel, Tv, tv::tv_screen, tv_screen_background_set(), and cmap_data_visible::type.
00077 {
00078 if (tv && tv->tv_screen
00079 && tv->cmap_data_visible->type == cmap_type_dynamic)
00080 {
00081 tv_screen_background_set(tv->tv_screen,
00082 tv->cmap_data_visible->std_lut[color]);
00083 }
00084 }
|
Here is the call graph for this function:

|
|
Definition at line 152 of file drawTv_props.c.
00153 {
00154 return (tv->color);
00155 }
|
|
||||||||||||
|
Definition at line 101 of file drawTv_props.c. References Tina_pixel, Tv, tv::tv_screen, and tv_screen_color_set(). Referenced by cmap_tool_redraw().
00102 {
00103 if (tv && tv->tv_screen)
00104 {
00105 tv_screen_color_set(tv->tv_screen, color);
00106 }
00107 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 89 of file drawTv_props.c. References tv::cmap_data_visible, tv::color, cmap_data_visible::std_lut, Tina_pixel, Tv, tv::tv_screen, and tv_screen_color_set(). Referenced by cmap_tool_redraw(), conn_add_regions(), conn_delete_line(), conn_delete_pixel(), draw_profile_region(), overlay_proc(), tv_pick_proc(), tv_set_color(), tv_string2_col(), tv_zbuff_image_convex_poly(), tv_zbuff_interp_convex_poly(), tv_zbuff_interp_general_poly(), xpartdraw(), ypartdraw(), and zpartdraw().
00090 {
00091 if (tv)
00092 tv->color = color;
00093 if (tv && tv->tv_screen && tv->cmap_data_visible )
00094 {
00095 tv_screen_color_set(tv->tv_screen, tv->cmap_data_visible->std_lut[color]);
00096 }
00097 }
|
Here is the call graph for this function:

|
|
Definition at line 157 of file drawTv_props.c. Referenced by draw_corr_match_edgels(), pick_corr_match_draw(), and stereo_corr_match_draw().
00158 {
00159 return (tv->color);
00160 }
|
|
||||||||||||
|
Definition at line 118 of file drawTv_props.c. References tv::cmap_data_visible, CMAPLOOKUPSIZE, cmap_data_visible::std_lut, Tina_pixel, Tv, tv::tv_screen, and tv_screen_get_pixel(). Referenced by grey_print().
00119 {
00120 Tina_pixel color = 0;
00121 unsigned long min_diff = ULONG_MAX;
00122 unsigned long pixel;
00123 int i;
00124
00125 if (tv == NULL || tv->tv_screen == NULL)
00126 return (0);
00127
00128 pixel = tv_screen_get_pixel(tv->tv_screen, pos);
00129
00130 /* Find the closest match in cmap_lookup to the pixel */
00131 for (i = 0; i < CMAPLOOKUPSIZE; i++)
00132 {
00133 int diff = abs((int) (tv->cmap_data_visible->std_lut[i] - pixel));
00134
00135 if (diff < min_diff)
00136 {
00137 min_diff = diff;
00138 color = i;
00139 }
00140 }
00141
00142 return (color);
00143 }
|
Here is the call graph for this function:

|
|
Definition at line 217 of file drawTv_props.c. References tv::linestyle, and Tv.
00218 {
00219 return (tv->linestyle);
00220 }
|
|
|
Definition at line 198 of file drawTv_props.c. References tv::linewidth, and Tv. Referenced by smm_go_to_proc(), smm_matcher_proc(), and transform_proc().
00199 {
00200 return (tv->linewidth);
00201 }
|
|
|
Definition at line 178 of file drawTv_props.c.
00179 {
00180 return (tv->op);
00181 }
|
|
||||||||||||
|
Definition at line 110 of file drawTv_props.c. References Tv, tv::tv_screen, and tv_screen_get_pixel(). Referenced by pixel_print().
00111 {
00112 if (tv == NULL || tv->tv_screen == NULL)
00113 return (0);
00114 return (tv_screen_get_pixel(tv->tv_screen, pos));
00115 }
|
Here is the call graph for this function:

|
||||||||||||||||||||||||||||
|
Definition at line 422 of file drawTv_props.c. References tv::font_name, Tv, tv::tv_screen, and tv_screen_get_text_extent(). Referenced by legend(), tv_cctext(), tv_cltext(), tv_crtext(), tv_lctext(), tv_uctext(), and tv_zbuff_text3().
|
Here is the call graph for this function:

|
|
Definition at line 241 of file drawTv_props.c. References tv::font_name, and Tv.
00242 {
00243 return (tv ? tv->font_name : "");
00244 }
|
|
||||||||||||
|
Definition at line 227 of file drawTv_props.c. References tv::font_name, Tv, tv::tv_screen, and tv_screen_named_font_set(). Referenced by imcalc_graph_tv_make().
|
Here is the call graph for this function:

|
||||||||||||||||||||||||
|
Definition at line 283 of file drawTv_props.c. References tv::cmap_data_visible, cmap_type_dynamic, cmap_data_visible::std_lut, Tina_pixel, Tv, tv::tv_screen, tv_screen_alloc_color(), tv_screen_reset_color(), and cmap_data_visible::type. Referenced by bkgrnd_choice_proc(), and display_create().
00284 {
00285 extern void tv_screen_reset_color();
00286
00287 if (tv && tv->tv_screen && tv->cmap_data_visible)
00288 {
00289 if (tv->cmap_data_visible->type == cmap_type_dynamic)
00290 tv_screen_reset_color(tv->tv_screen,
00291 (tv->cmap_data_visible->std_lut[color]),
00292 r, g, b);
00293 else
00294 tv_screen_alloc_color(tv->tv_screen,
00295 /* warning: passing argument 2 of 'tv_screen_alloc_color' from incompatible pointer type */
00296 &(tv->cmap_data_visible->std_lut[color]),
00297 r, g, b);
00298 }
00299 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
||||||||||||||||
|
Definition at line 302 of file drawTv_props.c. References tv::cmap_data_visible, cmap_type_dynamic, cmap_data_visible::std_lut, Tina_pixel, Tv, tv::tv_screen, tv_screen_reset_named_color(), and cmap_data_visible::type.
00303 {
00304 extern void tv_screen_reset_named_color();
00305
00306 if (tv && tv->tv_screen && tv->cmap_data_visible->std_lut
00307 && tv->cmap_data_visible->type == cmap_type_dynamic)
00308 {
00309 tv_screen_reset_named_color(tv->tv_screen, tv->cmap_data_visible->std_lut[color],
00310 color_name);
00311
00312 }
00313 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
||||||||||||
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 389 of file drawTv_props.c. References tv::drawdata, and Tv.
|
|
||||||||||||
|
Definition at line 204 of file drawTv_props.c. References tv::linestyle, Tv, tv::tv_screen, and tv_screen_set_linestyle().
00205 {
00206 int oldstyle = 0;
00207
00208 if (tv && tv->tv_screen)
00209 {
00210 oldstyle = tv->linestyle;
00211 tv->linestyle = style;
00212 tv_screen_set_linestyle(tv->tv_screen, style);
00213 }
00214 return (oldstyle);
00215 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 184 of file drawTv_props.c. References tv::linewidth, Tv, tv::tv_screen, and tv_screen_set_linewidth(). Referenced by line_width_choice_proc(), smm_go_to_proc(), smm_matcher_proc(), and transform_proc().
00185 {
00186 int oldwidth = 0;
00187
00188 if (tv)
00189 {
00190 oldwidth = tv->linewidth;
00191 tv->linewidth = width;
00192 tv_screen_set_linewidth(tv->tv_screen, width);
00193 }
00194 return (oldwidth);
00195 }
|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 162 of file drawTv_props.c. References tv::op, tv::overlay_on, Tv, tv::tv_screen, and tv_screen_set_op(). Referenced by centredot(), terrain_fulldraw(), and tv_points_between_col().
00163 {
00164 int oldop = 0;
00165
00166 if (tv && tv->tv_screen)
00167 {
00168 oldop = tv->op;
00169 tv->op = op;
00170 if (!tv->overlay_on)
00171 {
00172 tv_screen_set_op(tv->tv_screen, op);
00173 }
00174 }
00175 return (oldop);
00176 }
|
Here is the call graph for this function:

|
Here is the call graph for this function:

|
||||||||||||
|
Definition at line 414 of file drawTv_props.c. References tv::paint_mode, and Tv. Referenced by paint_proc().
00415 {
00416 if (tv == NULL)
00417 return;
00418
00419 tv->paint_mode = mode;
00420 }
|
|
||||||||||||
|
Definition at line 402 of file drawTv_props.c. References Tv, and tv::zoomlevel. Referenced by col_tv_blue_make(), col_tv_green_make(), col_tv_red_make(), imcal2_tv_make(), imcalc_graph_tv_make(), imcalc_tv_make(), imcmem_tv_make(), left_tv_make(), model_tv_make(), mono_tv_make(), right_tv_make(), scene_tv_make(), seq_tv_make(), simple_tv_make(), terrain_tv(), threed_init(), xcoreg_tv_make(), ycoreg_tv_make(), and zcoreg_tv_make().
|
|
|
Definition at line 81 of file drawTv_props.h. |
|
|
Definition at line 79 of file drawTv_props.h. |
|
|
Definition at line 80 of file drawTv_props.h. |
1.3.6