Bsoft 2.1.4
Bernard's software package
ps_tree.cpp File Reference

Postscript tree output functions. More...

#include "ps_plot.h"
#include "ps_tree.h"
#include "utilities.h"

Functions

int ps_draw_tree (Bstring &filename, Bnode *root, float scale)
 Draws a tree into a postscript file. More...
 
int ps_draw_node (ofstream *fps, Bnode *node, float scale, float x, float y)
 Draws a tree node into a postscript file. More...
 

Variables

int verbose
 

Detailed Description

Postscript tree output functions.

Author
Bernard Heymann
Date
Created: 20010722
Modified: 20120416

Function Documentation

◆ ps_draw_node()

int ps_draw_node ( ofstream *  fps,
Bnode node,
float  scale,
float  x,
float  y 
)

Draws a tree node into a postscript file.

Parameters
*fpsfile pointer.
*nodenode.
scalescale for branch lengths
xx-coordinate for the node.
yy-coordinate for the node.
Returns
int 0.

Requirements: The tree must be well-formed, i.e., it must have branch lengths and angles defined.

◆ ps_draw_tree()

int ps_draw_tree ( Bstring filename,
Bnode root,
float  scale 
)

Draws a tree into a postscript file.

Parameters
&filenamepostscript file name.
*rootroot node.
scalescale for branch lengths.
Returns
int 0.

Requirements: The tree must be well-formed, i.e., it must have branch lengths and angles defined.

Variable Documentation

◆ verbose

int verbose
extern