BRL-CAD
|
#include "common.h"
#include <stdio.h>
#include "vmath.h"
#include "rt/defines.h"
#include "rt/rt_instance.h"
Go to the source code of this file.
Data Structures | |
struct | command_tab |
Functions | |
char * | rt_read_cmd (FILE *fp) |
int | rt_do_cmd (struct rt_i *rtip, const char *ilp, const struct command_tab *tp) |
int | rt_cmd_attr (struct bu_vls *msg, struct db_i *dbip, int argc, const char **argv) |
Convert an ASCII v5 "attr" command into a .g attribute. More... | |
int | rt_cmd_color (struct bu_vls *msg, struct db_i *dbip, int argc, const char **argv) |
Convert an ASCII v5 "color" command into a .g coloribute. More... | |
int | rt_cmd_put (struct bu_vls *msg, struct rt_wdb *wdbp, int argc, const char **argv) |
Convert an ASCII v5 "put" command into a .g object. More... | |
int | rt_cmd_title (struct bu_vls *msg, struct db_i *dbip, int argc, const char **argv) |
Convert an ASCII v5 "title" command into a .g title. More... | |
int | rt_cmd_units (struct bu_vls *msg, struct db_i *dbip, int argc, const char **argv) |
Convert an ASCII v5 "units" command into a .g units. More... | |
char * rt_read_cmd | ( | FILE * | fp | ) |
int rt_do_cmd | ( | struct rt_i * | rtip, |
const char * | ilp, | ||
const struct command_tab * | tp | ||
) |
Convert an ASCII v5 "attr" command into a .g attribute.
Given an array of strings formatted as a BRL-CAD v5 ASCII "attr" command, translate the information in that command into an attribute setting for the dbip.
The msg parameter is optional - if present, rt_cmd_attr will output diagnostic messages to the vls in the event of an error.
Returns BRLCAD_OK on success, BRLCAD_ERROR on failure.
Convert an ASCII v5 "color" command into a .g coloribute.
Given an array of strings formatted as a BRL-CAD v5 ASCII "color" command, translate the information in that command into an coloribute setting for the dbip.
The msg parameter is optional - if present, rt_cmd_color will output diagnostic messages to the vls in the event of an error.
Returns BRLCAD_OK on success, BRLCAD_ERROR on failure.
Convert an ASCII v5 "put" command into a .g object.
Given an array of strings formatted as a BRL-CAD v5 ASCII "put" command, translate the information in that command into an object in the dbip.
The msg parameter is optional - if present, rt_cmd_put will output diagnostic messages to the vls in the event of an error.
Returns BRLCAD_OK on success, BRLCAD_ERROR on failure.
Convert an ASCII v5 "title" command into a .g title.
Given an array of strings formatted as a BRL-CAD v5 ASCII "title" command, translate the information in that command into a new title for the dbip.
The msg parameter is optional - if present, rt_cmd_title will output diagnostic messages to the vls in the event of an error.
Returns BRLCAD_OK on success, BRLCAD_ERROR on failure.
Convert an ASCII v5 "units" command into a .g units.
Given an array of strings formatted as a BRL-CAD v5 ASCII "units" command, translate the information in that command into a new units for the dbip.
The msg parameter is optional - if present, rt_cmd_units will output diagnostic messages to the vls in the event of an error.
Returns BRLCAD_OK on success, BRLCAD_ERROR on failure.