BRL-CAD
tabdata.h File Reference
#include "common.h"
#include "vmath.h"
#include "bn/defines.h"
#include "bu/magic.h"
#include "bu/vls.h"
Include dependency graph for tabdata.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  bn_table
 
struct  bn_tabdata
 

Macros

#define BN_CK_TABLE(_p)   BU_CKMAG(_p, BN_TABLE_MAGIC, "bn_table")
 
#define BN_TABLE_NULL   ((struct bn_table *)NULL)
 
#define BN_GET_TABLE(_table, _nx)
 
#define BN_CK_TABDATA(_p)   BU_CKMAG(_p, BN_TABDATA_MAGIC, "bn_tabdata")
 
#define BN_TABDATA_NULL   ((struct bn_tabdata *)NULL)
 
#define BN_SIZEOF_TABDATA_Y(_tabdata)   sizeof(fastf_t)*((_tabdata)->ny)
 
#define BN_SIZEOF_TABDATA(_table)
 
#define BN_GET_TABDATA(_data, _table)
 

Functions

void bn_table_free (struct bn_table *tabp)
 
void bn_tabdata_free (struct bn_tabdata *data)
 
void bn_ck_table (const struct bn_table *tabp)
 
struct bn_tablebn_table_make_uniform (size_t num, double first, double last)
 
void bn_tabdata_add (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2)
 
void bn_tabdata_mul (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2)
 
void bn_tabdata_mul3 (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2, const struct bn_tabdata *in3)
 
void bn_tabdata_incr_mul3_scale (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2, const struct bn_tabdata *in3, double scale)
 
void bn_tabdata_incr_mul2_scale (struct bn_tabdata *out, const struct bn_tabdata *in1, const struct bn_tabdata *in2, double scale)
 
void bn_tabdata_scale (struct bn_tabdata *out, const struct bn_tabdata *in1, double scale)
 
void bn_table_scale (struct bn_table *tabp, double scale)
 
void bn_tabdata_join1 (struct bn_tabdata *out, const struct bn_tabdata *in1, double scale, const struct bn_tabdata *in2)
 
void bn_tabdata_join2 (struct bn_tabdata *out, const struct bn_tabdata *in1, double scale2, const struct bn_tabdata *in2, double scale3, const struct bn_tabdata *in3)
 
void bn_tabdata_blend2 (struct bn_tabdata *out, double scale1, const struct bn_tabdata *in1, double scale2, const struct bn_tabdata *in2)
 
void bn_tabdata_blend3 (struct bn_tabdata *out, double scale1, const struct bn_tabdata *in1, double scale2, const struct bn_tabdata *in2, double scale3, const struct bn_tabdata *in3)
 
double bn_tabdata_area1 (const struct bn_tabdata *in)
 
double bn_tabdata_area2 (const struct bn_tabdata *in)
 
double bn_tabdata_mul_area1 (const struct bn_tabdata *in1, const struct bn_tabdata *in2)
 
double bn_tabdata_mul_area2 (const struct bn_tabdata *in1, const struct bn_tabdata *in2)
 
fastf_t bn_table_lin_interp (const struct bn_tabdata *samp, double wl)
 
struct bn_tabdatabn_tabdata_resample_max (const struct bn_table *newtable, const struct bn_tabdata *olddata)
 
struct bn_tabdatabn_tabdata_resample_avg (const struct bn_table *newtable, const struct bn_tabdata *olddata)
 
int bn_table_write (const char *filename, const struct bn_table *tabp)
 
struct bn_tablebn_table_read (const char *filename)
 
void bn_pr_table (const char *title, const struct bn_table *tabp)
 
void bn_pr_tabdata (const char *title, const struct bn_tabdata *data)
 
int bn_print_table_and_tabdata (const char *filename, const struct bn_tabdata *data)
 
struct bn_tabdatabn_read_table_and_tabdata (const char *filename)
 
struct bn_tabdatabn_tabdata_binary_read (const char *filename, size_t num, const struct bn_table *tabp)
 
struct bn_tabdatabn_tabdata_malloc_array (const struct bn_table *tabp, size_t num)
 
void bn_tabdata_copy (struct bn_tabdata *out, const struct bn_tabdata *in)
 
struct bn_tabdatabn_tabdata_dup (const struct bn_tabdata *in)
 
struct bn_tabdatabn_tabdata_get_constval (double val, const struct bn_table *tabp)
 
void bn_tabdata_constval (struct bn_tabdata *data, double val)
 
void bn_tabdata_to_tcl (struct bu_vls *vp, const struct bn_tabdata *data)
 
struct bn_tabdatabn_tabdata_from_array (const double *array)
 
void bn_tabdata_freq_shift (struct bn_tabdata *out, const struct bn_tabdata *in, double offset)
 
size_t bn_table_interval_num_samples (const struct bn_table *tabp, double low, double hi)
 
size_t bn_table_delete_sample_pnts (struct bn_table *tabp, size_t i, size_t j)
 
struct bn_tablebn_table_merge2 (const struct bn_table *a, const struct bn_table *b)
 
struct bn_tabdatabn_tabdata_mk_linear_filter (const struct bn_table *spectrum, double lower_wavelen, double upper_wavelen)