vlist.c File Reference

#include "common.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "machine.h"
#include "vmath.h"
#include "bu.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

Defines

#define TBAD   0
#define TNONE   1
#define TSHORT   2
#define TIEEE   3
#define TCHAR   4
#define TSTRING   5

Functions

bn_vlblockbn_vlblock_init (struct bu_list *free_vlist_hd, int max_ent)
bn_vlblockrt_vlblock_init (void)
void rt_vlblock_free (struct bn_vlblock *vbp)
bu_listrt_vlblock_find (struct bn_vlblock *vbp, int r, int g, int b)
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)

Variables

const char * rt_vlist_cmd_descriptions []


Detailed Description

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

Author - Michael John Muuss

Source - SECAD/VLD Computing Consortium The U. S. Army Ballistic Research Laboratory Aberdeen Proving Ground, Maryland 21005-5066

Definition in file vlist.c.


Define Documentation

#define TBAD   0
 

Definition at line 546 of file vlist.c.

Referenced by rt_process_uplot_value().

#define TNONE   1
 

Definition at line 547 of file vlist.c.

#define TSHORT   2
 

Definition at line 548 of file vlist.c.

#define TIEEE   3
 

Definition at line 549 of file vlist.c.

#define TCHAR   4
 

Definition at line 550 of file vlist.c.

#define TSTRING   5
 

Definition at line 551 of file vlist.c.


Function Documentation

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 705 of file vlist.c.

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

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 854 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 890 of file vlist.c.

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

Here is the call graph for this function:


Generated on Mon Sep 18 01:25:09 2006 for BRL-CAD by  doxygen 1.4.6