BRL-CAD
axis.c File Reference
#include "common.h"
#include <stdio.h>
#include <math.h>
#include <string.h>
#include "bu/log.h"
#include "bu/str.h"
#include "vmath.h"
#include "plot3.h"
Include dependency graph for axis.c:

Go to the source code of this file.

Macros

#define TICK_YLEN   (char_width)
 tick is 1 character height More...
 
#define NUM_YOFF   (3*char_width)
 numbers offset from line More...
 
#define TITLE_YOFF   (5*char_width)
 title offset from line More...
 

Functions

void tp_3axis (FILE *fp, char *string, fastf_t *origin, fastf_t *rot, double length, int ccw, int ndigits, double label_start, double label_incr, double tick_separation, double char_width)
 
void PL_FORTRAN (f3axis, F3AXIS)
 

Macro Definition Documentation

#define TICK_YLEN   (char_width)

tick is 1 character height

Definition at line 33 of file axis.c.

Referenced by tp_3axis().

#define NUM_YOFF   (3*char_width)

numbers offset from line

Definition at line 34 of file axis.c.

Referenced by tp_3axis().

#define TITLE_YOFF   (5*char_width)

title offset from line

Definition at line 35 of file axis.c.

Referenced by tp_3axis().

Function Documentation

void tp_3axis ( FILE *  fp,
char *  string,
fastf_t origin,
fastf_t rot,
double  length,
int  ccw,
int  ndigits,
double  label_start,
double  label_incr,
double  tick_separation,
double  char_width 
)
Parameters
fpoutput file
stringlabel for axis
originsimple 3d point
rotrotation angle
lengthlength of axis
ccw0=clockwise, !0=counter clockwise (ccw)
ndigits

digits wide

label_startlabel starting value
label_incrlabel increment between ticks
tick_separationplot distance between ticks
char_widthcharacter scale (size)

Definition at line 39 of file axis.c.

References bn_mat_mul(), bu_bomb(), NUM_YOFF, pdv_3cont(), pdv_3move(), TICK_YLEN, TITLE_YOFF, tp_3symbol(), VSET, X, and ZERO.

Referenced by PL_FORTRAN().

Here is the call graph for this function:

void PL_FORTRAN ( f3axis  ,
F3AXIS   
)

Definition at line 157 of file axis.c.

References bn_mat_angles(), bu_strlcpy, tp_3axis(), and VSET.

Here is the call graph for this function: