#include "common.h"
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "bnetwork.h"
#include "bu/cv.h"
#include "vmath.h"
#include "bn.h"
#include "raytrace.h"
#include "plot3.h"
Include dependency graph for vlist.c:

Go to the source code of this file.

Data Structures

struct  uplot


#define TBAD   0 /* no such command */
#define TNONE   1 /* no arguments */
#define TSHORT   2 /* Vax 16-bit short */
#define TIEEE   3 /* IEEE 64-bit floating */
#define TCHAR   4 /* unsigned chars */
#define TSTRING   5 /* linefeed terminated string */
#define CARG_LEN   256
#define ARG_LEN   6


struct bn_vlblockbn_vlblock_init (struct bu_list *free_vlist_hd, int max_ent)
struct bn_vlblockrt_vlblock_init (void)
void rt_vlblock_free (struct bn_vlblock *vbp)
struct bu_listrt_vlblock_find (struct bn_vlblock *vbp, int r, int g, int b)
const char * rt_vlist_get_cmd_description (int cmd)
int rt_ck_vlist (const struct bu_list *vhead)
void rt_vlist_copy (struct bu_list *dest, const struct bu_list *src)
void bn_vlist_cleanup (struct bu_list *hd)
void rt_vlist_cleanup (void)
void bn_vlist_rpp (struct bu_list *hd, const point_t minn, const point_t maxx)
void rt_vlist_export (struct bu_vls *vls, struct bu_list *hp, const char *name)
void rt_vlist_import (struct bu_list *hp, struct bu_vls *namevls, const unsigned char *buf)
void rt_plot_vlblock (FILE *fp, const struct bn_vlblock *vbp)
void rt_vlist_to_uplot (FILE *fp, const struct bu_list *vhead)
int rt_process_uplot_value (register struct bu_list **vhead, struct bn_vlblock *vbp, FILE *fp, register int c, double char_size, int mode)
int rt_uplot_to_vlist (struct bn_vlblock *vbp, register FILE *fp, double char_size, int mode)
void rt_label_vlist_verts (struct bn_vlblock *vbp, struct bu_list *src, fastf_t *mat, double sz, double mm2local)

Detailed Description

Routines for the import and export of vlist chains as: Network independent binary, BRL-extended UNIX-Plot files.

Definition in file vlist.c.

Macro Definition Documentation

#define TBAD   0 /* no such command */

Definition at line 482 of file vlist.c.

Referenced by rt_process_uplot_value().

#define TNONE   1 /* no arguments */

Definition at line 483 of file vlist.c.

#define TSHORT   2 /* Vax 16-bit short */

Definition at line 484 of file vlist.c.

#define TIEEE   3 /* IEEE 64-bit floating */

Definition at line 485 of file vlist.c.

#define TCHAR   4 /* unsigned chars */

Definition at line 486 of file vlist.c.

Referenced by GetFileNameFromHandle().

#define TSTRING   5 /* linefeed terminated string */

Definition at line 487 of file vlist.c.

#define CARG_LEN   256

Referenced by rt_process_uplot_value().

#define ARG_LEN   6

Referenced by rt_process_uplot_value().

Function Documentation

void bn_vlist_rpp ( struct bu_list hd,
const point_t  minn,
const point_t  maxx 

Definition at line 279 of file vlist.c.

References BN_ADD_VLIST, BN_VLIST_LINE_DRAW, BN_VLIST_LINE_MOVE, RTG, rt_g::rtg_vlfree, VSET, X, Y, and Z.

int rt_process_uplot_value ( register struct bu_list **  vhead,
struct bn_vlblock vbp,
FILE *  fp,
register int  c,
double  char_size,
int  mode 

Definition at line 670 of file vlist.c.

References ARG_LEN, BN_ADD_VLIST, bn_vlist_3string(), BN_VLIST_LINE_DRAW, BN_VLIST_LINE_MOVE, BU_LIST_LAST, BU_LIST_NON_EMPTY, CARG_LEN, bn_vlblock::free_vlist_hd, memset(), uplot::narg, bn_vlist::nused, bn_vlist::pt, rt_vlblock_find(), uplot::targ, TBAD, VSET, VSETALL, and Z.

Referenced by rt_uplot_to_vlist().

Here is the call graph for this function:

int rt_uplot_to_vlist ( struct bn_vlblock vbp,
register FILE *  fp,
double  char_size,
int  mode 

Definition at line 823 of file vlist.c.

References rt_process_uplot_value(), and rt_vlblock_find().

Here is the call graph for this function:

void rt_label_vlist_verts ( struct bn_vlblock vbp,
struct bu_list src,
fastf_t mat,
double  sz,
double  mm2local 

Definition at line 849 of file vlist.c.

References bn_vlist_3string(), BU_LIST_FOR, bn_vlist::cmd, bn_vlblock::free_vlist_hd, OSL::Strings::label, bn_vlist::nused, bn_vlist::pt, and rt_vlblock_find().

Here is the call graph for this function: