utilities.h

来自「This is a CNCPro source file. It is incl」· C头文件 代码 · 共 86 行

H
86
字号
char *prn_val(float);
   /*gets the value of a current number and formats it into 8 place + number
     1st parameter -> number to format
     return value  -> pointer to charater string containing formatted number*/

char *prn_val_all(float);
   /*gets the value of a current number and formats it into 8 place +/- number
     1st parameter -> number to format
     return value  -> pointer to charater string containing formatted number*/

int get_string(char *, int);
   /*gets a 8 place character string from the console (limited values)
     1st parameter -> pointer to location to store retrieved string
     2nd parameter -> securety identifier (PASSWORD or NULL)
     return value  -> termination state (ESC or TRUE)*/

int get_string3(char *);
   /*gets a 3 place character string from the console (all values)
     1st parameter -> pointer to location to store retrieved string
     return value  -> termination state (ESC or TRUE)*/

int get_string_all(char *);
   /*gets a 8 place character string from the console (all values)
     1st parameter -> pointer to location to store retrieved string
     return value  -> termination state (ESC or TRUE)*/

int get_value(float *);
   /*gets a 8 place value from the console (only positive value)
     1st parameter -> pointer to location to store retrieved value
     return value  -> termination state (ESC or TRUE)*/

int get_value_all(float *);
   /*gets a 8 place value from the console (both positive and negative value)
     1st parameter -> pointer to location to store retrieved value
     return value  -> termination state (ESC or TRUE)*/

void box(int, int, int, int, int, int, int, int);
   /*draws a box on the screen
     1st parameter -> left x corner
     2nd parameter -> top y corner
     3rd parameter -> right x corner
     4th parameter -> botton y corner
     5th parameter -> box color
     6th parameter -> line color
     7th parameter -> shadow color
     8th parameter -> text color*/

void double_box(int, int, int, int, int, int, int);
   /*draws a double box on the screen
     1st parameter -> left x corner
     2nd parameter -> top y corner
     3rd parameter -> right x corner
     4th parameter -> botton y corner
     5th parameter -> box color
     6th parameter -> line color
     7th parameter -> text color*/

void change_pt_units(struct soft_setup *,struct pos *, int, int);
   /*changes point units
     1st parameter -> pointer to software configuration structure
     2nd parameter -> pointer to a position structure
     3rd parameter -> new units
     4th parameter -> new auxiliary units*/

double change_aux_unit(struct soft_setup *, double, int);
   /*changes point units
     1st parameter -> pointer to software configuration structure
     2nd parameter -> distance to convert
     3rd parameter -> new units*/

double change_unit(struct soft_setup *, double, int);
   /*changes point units
     1st parameter -> pointer to software configuration structure
     2nd parameter -> distance to convert
     3rd parameter -> new units*/

void rotate_x(struct soft_setup *, struct hard_setup *, struct pos *);

void rotate_y(struct soft_setup *, struct hard_setup *, struct pos *);

void rotate_z(struct soft_setup *, struct hard_setup *, struct pos *);

void switch_z_a(struct soft_setup *, struct hard_setup *, struct pos *);


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?