nmg_visit.c File Reference

#include "common.h"
#include <stdio.h>
#include <math.h>
#include "machine.h"
#include "vmath.h"
#include "nmg.h"
#include "raytrace.h"

Include dependency graph for nmg_visit.c:

Go to the source code of this file.

Functions

void nmg_visit_vertex (struct vertex *v, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_vertexuse (struct vertexuse *vu, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_edge (struct edge *e, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_edgeuse (struct edgeuse *eu, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_loop (struct loop *l, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_loopuse (struct loopuse *lu, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_face (struct face *f, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_faceuse (struct faceuse *fu, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_shell (struct shell *s, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_region (struct nmgregion *r, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit_model (struct model *model, const struct nmg_visit_handlers *htab, genptr_t state)
void nmg_visit (const long int *magicp, const struct nmg_visit_handlers *htab, genptr_t state)


Detailed Description

A generalized, object-oriented subroutine family to visit all the data structures "below" a given structure.

The caller provides a pointer to the structure to start at, a table of "handlers" for each kind of strucuture, and a generic pointer for private state which will be sent along to the user's handlers. For non-leaf structures, there are two handlers, one called before any recursion starts, and the other called when recursion is finished. Either or both may be omitted.

Author - Michael John Muuss

Source - The U. S. Army Research Laboratory Aberdeen Proving Ground, Maryland 21005-5066

Definition in file nmg_visit.c.


Function Documentation

void nmg_visit const long int *  magicp,
const struct nmg_visit_handlers htab,
genptr_t  state
 

N M G _ V I S I T

Definition at line 301 of file nmg_visit.c.

References bu_identify_magic(), bu_log(), NMG_EDGEUSE_MAGIC, NMG_FACEUSE_MAGIC, NMG_LOOPUSE_MAGIC, NMG_MODEL_MAGIC, NMG_REGION_MAGIC, NMG_SHELL_MAGIC, NMG_VERTEXUSE_MAGIC, nmg_visit_edgeuse(), nmg_visit_faceuse(), nmg_visit_loopuse(), nmg_visit_model(), nmg_visit_region(), nmg_visit_shell(), nmg_visit_vertexuse(), and rt_bomb().

Here is the call graph for this function:


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