BRL-CAD
db5_bin.c File Reference
#include "common.h"
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <ctype.h>
#include "bio.h"
#include "bu/cv.h"
#include "bu/parse.h"
#include "vmath.h"
#include "db5.h"
#include "rtgeom.h"
#include "raytrace.h"
#include "nurb.h"
Include dependency graph for db5_bin.c:

Go to the source code of this file.

Functions

int rt_bin_unif_export5 (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip, struct resource *resp)
 
int rt_bin_unif_import5 (struct rt_db_internal *ip, const struct bu_external *ep, const mat_t mat, const struct db_i *dbip, struct resource *resp)
 
int rt_bin_mime_import5 (struct rt_db_internal *ip, const struct bu_external *ep, const mat_t mat, const struct db_i *dbip, struct resource *resp)
 
int rt_binunif_import5_minor_type (struct rt_db_internal *ip, const struct bu_external *ep, const mat_t mat, const struct db_i *dbip, struct resource *resp, int minor_type)
 
void rt_binunif_dump (struct rt_binunif_internal *bip)
 
int rt_binunif_export5 (struct bu_external *ep, const struct rt_db_internal *ip, double local2mm, const struct db_i *dbip, struct resource *resp)
 
int rt_binunif_describe (struct bu_vls *str, const struct rt_db_internal *ip, int verbose, double mm2local)
 
void rt_binunif_free (struct rt_binunif_internal *bip)
 
void rt_binunif_ifree (struct rt_db_internal *ip)
 
int rt_retrieve_binunif (struct rt_db_internal *intern, struct db_i *dbip, char *name)
 
void rt_binunif_make (const struct rt_functab *ftp, struct rt_db_internal *intern)
 
int rt_binunif_get (struct bu_vls *logstr, const struct rt_db_internal *intern, const char *attr)
 
int rt_binunif_adjust (struct bu_vls *logstr, struct rt_db_internal *intern, int argc, char **argv)
 

Detailed Description

Handle bulk binary objects

Definition in file db5_bin.c.

Function Documentation

int rt_bin_unif_export5 ( struct bu_external ep,
const struct rt_db_internal ip,
double  local2mm,
const struct db_i dbip,
struct resource resp 
)

XXX these are the interface routines needed for table.c

Definition at line 76 of file db5_bin.c.

References bu_log().

Here is the call graph for this function:

int rt_bin_unif_import5 ( struct rt_db_internal ip,
const struct bu_external ep,
const mat_t  mat,
const struct db_i dbip,
struct resource resp 
)

Definition at line 87 of file db5_bin.c.

References bu_log().

Here is the call graph for this function:

int rt_bin_mime_import5 ( struct rt_db_internal ip,
const struct bu_external ep,
const mat_t  mat,
const struct db_i dbip,
struct resource resp 
)

Definition at line 98 of file db5_bin.c.

References bu_log().

Here is the call graph for this function:

int rt_binunif_export5 ( struct bu_external ep,
const struct rt_db_internal ip,
double  local2mm,
const struct db_i dbip,
struct resource resp 
)

Create the "body" portion of external form

Definition at line 229 of file db5_bin.c.

References bu_bomb(), bu_cv_cookie(), bu_cv_htond(), bu_cv_htonf(), bu_cv_optimize(), bu_cv_w_cookie(), BU_EXTERNAL_INIT, bu_log(), bu_malloc(), rt_binunif_internal::count, bu_external::ext_buf, bu_external::ext_nbytes, rt_db_internal::idb_ptr, RT_CK_BINUNIF, RT_CK_DB_INTERNAL, RT_CK_DBI, RT_CK_RESOURCE, SIZEOF_NETWORK_DOUBLE, SIZEOF_NETWORK_FLOAT, rt_binunif_internal::type, rt_binunif_internal::u, and rt_binunif_internal::uint8.

Referenced by rt_binunif_get().

Here is the call graph for this function:

int rt_binunif_describe ( struct bu_vls str,
const struct rt_db_internal ip,
int  verbose,
double  mm2local 
)

Make human-readable formatted presentation of this object. First line describes type of object. Additional lines are indented one tab, and give parameter values.

Definition at line 324 of file db5_bin.c.

References bu_log(), bu_vls_strcat(), rt_binunif_internal::count, rt_db_internal::idb_ptr, RT_CK_BINUNIF, and rt_binunif_internal::type.

Here is the call graph for this function:

void rt_binunif_ifree ( struct rt_db_internal ip)

Free the storage associated with the rt_db_internal version of this thing.

Definition at line 391 of file db5_bin.c.

References bu_free(), rt_db_internal::idb_ptr, RT_CK_BINUNIF, RT_CK_DB_INTERNAL, rt_binunif_internal::u, and rt_binunif_internal::uint8.

Here is the call graph for this function:

int rt_retrieve_binunif ( struct rt_db_internal intern,
struct db_i dbip,
char *  name 
)
int rt_binunif_get ( struct bu_vls logstr,
const struct rt_db_internal intern,
const char *  attr 
)

Definition at line 516 of file db5_bin.c.

References BRLCAD_ERROR, BRLCAD_OK, bu_free_external(), BU_STR_EQUAL, bu_vls_printf(), bu_vls_strcat(), bu_vls_strcpy(), rt_db_internal::idb_ptr, rt_binunif_export5(), RT_CHECK_BINUNIF, and rt_binunif_internal::type.

Here is the call graph for this function:

int rt_binunif_adjust ( struct bu_vls logstr,
struct rt_db_internal intern,
int  argc,
char **  argv 
)

Definition at line 568 of file db5_bin.c.

References binu_types, BRLCAD_ERROR, brlcad_interp, bu_free(), bu_malloc(), bu_realloc(), BU_STR_EQUAL, bu_vls_printf(), rt_binunif_internal::count, rt_db_internal::idb_ptr, RT_CHECK_BINUNIF, RT_CK_DB_INTERNAL, s, rt_binunif_internal::type, rt_binunif_internal::u, and rt_binunif_internal::uint8.

Here is the call graph for this function: