![]() |
Utah Raster Toolkit
9999-git
URT Development version (post-3.1b)
|
#include <stdio.h>#include <math.h>#include <ctype.h>#include "rle.h"#include <sys/types.h>#include <time.h>#include "font.h"Go to the source code of this file.
Data Structures | |
| struct | color_t |
| struct | _urt_stack |
Macros | |
| #define | XSIZE 128 |
| #define | YTEXTSIZE 0 |
| #define | YCLOCKSIZE XSIZE |
| #define | TICKS 12 |
| #define | DOTS 1 |
| #define | FORMATSTRING "%02l:%02b" |
| #define | FACE_EDGE_COLOR { 255, 255, 255 } |
| #define | HAND_COLOR { 255, 255, 255 } |
| #define | TEXT_COLOR { 255, 255, 255 } |
| #define | LITTLEHANDSCALE 12 |
| #define | BIGHANDSCALE 60 |
| #define | HANDWIDTH 0.075 |
| #define | TRUE 1 |
| #define | FALSE 0 |
| #define | RAST_FACE_EDGE 1 |
| #define | RAST_FACE_MASK 2 |
| #define | RAST_LHAND_EDGE 4 |
| #define | RAST_LHAND_MASK 8 |
| #define | RAST_BHAND_EDGE 16 |
| #define | RAST_BHAND_MASK 32 |
| #define | RAST_TEXT 64 |
| #define | RAST_TEXT_BACK 128 |
| #define | CHARPAD 25 |
| #define | NORTH 0 |
| #define | WEST 1 |
| #define | SOUTH 2 |
| #define | EAST 3 |
Typedefs | |
| typedef char | bool |
Functions | |
| void | main () |
| void | ifImageSet () |
| void | drawHand () |
| void | rasterAddBits () |
| void | polarLine () |
| void | setDot () |
| int | polarToX () |
| int | polarToY () |
| double | radians () |
| rle_pixel ** | rasterAllocate () |
| void | rasterWrite () |
| void | lineDots () |
| void | procargs () |
| bool | argGiven () |
| void | usageExit () |
| void | charMinMaxWidth () |
| void | charMinMaxHeight () |
| char * | formatInterp () |
| void | drawText () |
| void | areaFlood () |
| void | stackPush () |
| int | stackPop () |
| void | main (int argc, argv) |
| void | ifImageSet (int i, int j, int value, color_t *color) |
| void | drawHand (double place, double scale, double radius, int mask, int edge) |
| void | rasterAddBits (int mask, int match, int value) |
| void | polarLine (double r0, double a0, double r1, double a1, int arg1, int arg2) |
| void | setDot (int x, int y, int arg1, int arg2) |
| int | polarToX (double fRadius, double angle) |
| int | polarToY (double fRadius, double angle) |
| double | radians (double degrees) |
| rle_pixel ** | rasterAllocate (int height, int width) |
| void | rasterWrite (FILE *fd) |
| void | lineDots (int x0, int y0, int x1, int y1, void(*func)(), int arg1, int arg2) |
| void | procargs (int argc, argv) |
| bool | argGiven (char *argVar) |
| void | usageExit (char *pgm) |
| void | charMinMaxWidth (int ch, int *min, int *max) |
| void | charMinMaxHeight (int ch, int *min, int *max) |
| char * | formatInterp (char *str) const |
| void | areaFlood (int firstX, int firstY, int mask, int match, int value) |
| void | stackPush (int x, int y, int dir) |
Variables | |
| static char | rcsid [] = "$Header: /l/spencer/src/urt/tools/clock/RCS/rleClock.c,v 3.0.1.2 1992/04/30 14:19:38 spencer Exp $" |
| color_t | FaceEdgeColor = { 255, 255, 255 } |
| color_t | FaceColor |
| color_t | HandEdgeColor |
| color_t | HandColor = { 255, 255, 255 } |
| color_t | TextColor = { 255, 255, 255 } |
| color_t | TextBackColor |
| rle_pixel ** | RedLine |
| rle_pixel ** | GreenLine |
| rle_pixel ** | BlueLine |
| rle_pixel ** | Raster |
| rle_pixel ** | AlphaLine |
| int | XSize = 128 |
| int | YSize |
| int | YClockSize = 128 |
| int | YTextSize = 0 |
| int | XRadius |
| int | YRadius |
| int | Ticks = 12 |
| bool | DebugAlpha = 0 |
| bool | Debug = 0 |
| int | Dots = 1 |
| float | BigHandValue |
| float | LittleHandValue |
| float | LittleHandScale = 12 |
| float | BigHandScale = 60 |
| const char * | FormatString = "%02l:%02b" |
| move_t | Moves [] |
| int | Base [] |
| char ** | gargv |
| struct { | |
| enum | { INT, FLOAT, STRING, BOOL, COLOR, HELP, TEXT } |
| bool show | |
| const char * arg | |
| enum { ... } type | |
| const char * description | |
| const char * value | |
| bool given | |
| } | Args [] |
| struct { | |
| _urt_stack * s | |
| int top | |
| int allocked | |
| } | Stack |
| int | XMove [4] = {0, 1, 0, -1} |
| int | YMove [4] = {1, 0, -1, 0} |
| #define BIGHANDSCALE 60 |
Definition at line 60 of file rleClock.c.
| #define CHARPAD 25 |
Definition at line 842 of file rleClock.c.
| #define DOTS 1 |
Definition at line 54 of file rleClock.c.
| #define EAST 3 |
Definition at line 917 of file rleClock.c.
| #define FACE_EDGE_COLOR { 255, 255, 255 } |
Definition at line 56 of file rleClock.c.
| #define FALSE 0 |
Definition at line 66 of file rleClock.c.
| #define FORMATSTRING "%02l:%02b" |
Definition at line 55 of file rleClock.c.
| #define HAND_COLOR { 255, 255, 255 } |
Definition at line 57 of file rleClock.c.
| #define HANDWIDTH 0.075 |
Definition at line 62 of file rleClock.c.
| #define LITTLEHANDSCALE 12 |
Definition at line 59 of file rleClock.c.
| #define NORTH 0 |
Definition at line 914 of file rleClock.c.
| #define RAST_BHAND_EDGE 16 |
Definition at line 78 of file rleClock.c.
| #define RAST_BHAND_MASK 32 |
Definition at line 79 of file rleClock.c.
| #define RAST_FACE_EDGE 1 |
Definition at line 74 of file rleClock.c.
| #define RAST_FACE_MASK 2 |
Definition at line 75 of file rleClock.c.
| #define RAST_LHAND_EDGE 4 |
Definition at line 76 of file rleClock.c.
| #define RAST_LHAND_MASK 8 |
Definition at line 77 of file rleClock.c.
| #define RAST_TEXT 64 |
Definition at line 80 of file rleClock.c.
| #define RAST_TEXT_BACK 128 |
Definition at line 81 of file rleClock.c.
| #define SOUTH 2 |
Definition at line 916 of file rleClock.c.
| #define TEXT_COLOR { 255, 255, 255 } |
Definition at line 58 of file rleClock.c.
| #define TICKS 12 |
Definition at line 53 of file rleClock.c.
| #define TRUE 1 |
Definition at line 65 of file rleClock.c.
| #define WEST 1 |
Definition at line 915 of file rleClock.c.
| #define XSIZE 128 |
Definition at line 50 of file rleClock.c.
| #define YCLOCKSIZE XSIZE |
Definition at line 52 of file rleClock.c.
| #define YTEXTSIZE 0 |
Definition at line 51 of file rleClock.c.
| typedef char bool |
Definition at line 68 of file rleClock.c.
| void areaFlood | ( | ) |
Definition at line 928 of file rleClock.c.
| bool argGiven | ( | ) |
| bool argGiven | ( | char * | argVar | ) |
Definition at line 662 of file rleClock.c.
| void charMinMaxHeight | ( | ) |
Definition at line 747 of file rleClock.c.
Referenced by drawText().
| void charMinMaxWidth | ( | ) |
Definition at line 719 of file rleClock.c.
Referenced by drawText().
| void drawHand | ( | ) |
Definition at line 323 of file rleClock.c.
| void drawText | ( | ) |
Definition at line 845 of file rleClock.c.
References Base, charMinMaxHeight(), charMinMaxWidth(), Dots, formatInterp(), FormatString, lineDots(), Moves, Raster, setDot(), move_t::type, move_t::x, XSize, move_t::y, YClockSize, YSize, and YTextSize.
| char* formatInterp | ( | ) |
| char* formatInterp | ( | char * | str | ) | const |
Definition at line 782 of file rleClock.c.
Referenced by drawText().
| void ifImageSet | ( | ) |
Definition at line 311 of file rleClock.c.
| void lineDots | ( | ) |
Definition at line 504 of file rleClock.c.
Referenced by drawText().
| void main | ( | ) |
| void main | ( | int | argc, |
| argv | |||
| ) |
Definition at line 185 of file rleClock.c.
| void polarLine | ( | ) |
| int polarToX | ( | ) |
| int polarToX | ( | double | fRadius, |
| double | angle | ||
| ) |
Definition at line 402 of file rleClock.c.
| int polarToY | ( | ) |
| int polarToY | ( | double | fRadius, |
| double | angle | ||
| ) |
Definition at line 410 of file rleClock.c.
| void procargs | ( | ) |
| void procargs | ( | int | argc, |
| argv | |||
| ) |
Definition at line 605 of file rleClock.c.
| double radians | ( | ) |
| double radians | ( | double | degrees | ) |
Definition at line 418 of file rleClock.c.
| void rasterAddBits | ( | ) |
Definition at line 345 of file rleClock.c.
| rle_pixel** rasterAllocate | ( | ) |
Definition at line 432 of file rleClock.c.
| void rasterWrite | ( | ) |
| void rasterWrite | ( | FILE * | fd | ) |
Definition at line 455 of file rleClock.c.
| void setDot | ( | ) |
Definition at line 379 of file rleClock.c.
Referenced by drawText().
| int stackPop | ( | ) |
Definition at line 976 of file rleClock.c.
| void stackPush | ( | ) |
Definition at line 962 of file rleClock.c.
| void usageExit | ( | ) |
| void usageExit | ( | char * | pgm | ) |
Definition at line 676 of file rleClock.c.
| int allocked |
Definition at line 921 of file rleClock.c.
| rle_pixel** AlphaLine |
Definition at line 106 of file rleClock.c.
| const char* arg |
Definition at line 571 of file rleClock.c.
| struct { ... } Args[] |
| int Base[] |
Definition at line 303 of file font.c.
Referenced by drawText().
| float BigHandScale = 60 |
Definition at line 121 of file rleClock.c.
| float BigHandValue |
Definition at line 118 of file rleClock.c.
| rle_pixel** BlueLine |
Definition at line 104 of file rleClock.c.
| bool Debug = 0 |
Definition at line 116 of file rleClock.c.
Referenced by EndPage(), ReadFonts(), and ReadInput().
| bool DebugAlpha = 0 |
Definition at line 115 of file rleClock.c.
| const char* description |
Definition at line 573 of file rleClock.c.
| int Dots = 1 |
Definition at line 117 of file rleClock.c.
Referenced by drawText().
| color_t FaceColor |
Definition at line 96 of file rleClock.c.
| color_t FaceEdgeColor = { 255, 255, 255 } |
Definition at line 95 of file rleClock.c.
| const char* FormatString = "%02l:%02b" |
Definition at line 122 of file rleClock.c.
Referenced by drawText().
| char** gargv |
Definition at line 182 of file rleClock.c.
| bool given |
Definition at line 575 of file rleClock.c.
| rle_pixel** GreenLine |
Definition at line 103 of file rleClock.c.
| color_t HandColor = { 255, 255, 255 } |
Definition at line 98 of file rleClock.c.
| color_t HandEdgeColor |
Definition at line 97 of file rleClock.c.
| float LittleHandScale = 12 |
Definition at line 120 of file rleClock.c.
| float LittleHandValue |
Definition at line 119 of file rleClock.c.
| move_t Moves[] |
Definition at line 2 of file font.c.
Referenced by drawText().
| rle_pixel** Raster |
Definition at line 105 of file rleClock.c.
Referenced by drawText().
|
static |
Definition at line 30 of file rleClock.c.
| rle_pixel** RedLine |
Definition at line 102 of file rleClock.c.
| _urt_stack* s |
Definition at line 919 of file rleClock.c.
| bool show |
Definition at line 570 of file rleClock.c.
| struct { ... } Stack |
| color_t TextBackColor |
Definition at line 100 of file rleClock.c.
| color_t TextColor = { 255, 255, 255 } |
Definition at line 99 of file rleClock.c.
| int Ticks = 12 |
Definition at line 114 of file rleClock.c.
| int top |
Definition at line 920 of file rleClock.c.
| enum { ... } type |
| const char* value |
Definition at line 574 of file rleClock.c.
| int XMove[4] = {0, 1, 0, -1} |
Definition at line 924 of file rleClock.c.
| int XRadius |
Definition at line 112 of file rleClock.c.
| int XSize = 128 |
Definition at line 108 of file rleClock.c.
Referenced by drawText().
| int YClockSize = 128 |
Definition at line 110 of file rleClock.c.
Referenced by drawText().
| int YMove[4] = {1, 0, -1, 0} |
Definition at line 925 of file rleClock.c.
| int YRadius |
Definition at line 113 of file rleClock.c.
| int YSize |
Definition at line 109 of file rleClock.c.
Referenced by drawText().
| int YTextSize = 0 |
Definition at line 111 of file rleClock.c.
Referenced by drawText().
1.8.10