#ifndef H_TRUSS_TO_EPS_H #define H_TRUSS_TO_EPS_H #include "ppc_truss.h" #define TR_PLOT_WITH_NO_LABELS 0 #define TR_PLOT_WITH_LABELS 1 /* Truss image will be scaled to fit in a rectangular box of maximum width or height given by TRUSS_SIZE */ #define TRUSS_SIZE 400 /* Margin widths to add to the overall image */ #define H_MARGIN 25.0 #define V_MARGIN 25.0 /* Horizontal distance between the truss drawing area and the colorbar */ #define SCALE_GAP 25.0 /* Colorbar width */ #define SCALE_WIDTH 10.0 /* Longest arrow */ #define F_MAX 20.0 #define REDHUE(s) (huefunc((s)-23.0/64)) #define GREENHUE(s) (huefunc((s) -7.0/64)) #define BLUEHUE(s) (huefunc((s) +9.0/64)) void arrowdef ( FILE *fp ); void draw_colorscale ( FILE *fp, double height, double smax ); void fixedsupportdef ( FILE *fp ); void header ( FILE *fp ); void hingedef ( FILE *fp ); float huefunc ( float s ); void ppc_truss_to_eps ( struct truss *truss, char *epsfile, int labels ); void rollersupportdef ( FILE *fp ); #endif /* H_TRUSS_TO_EPS_H */