{ int x, y, x1, x2, y1, y2; unsigned short int r, g, b;
switch (color) { case RED : r = 255; g = b = 0; break; case GREEN : g = 255; r = b = 0; break; case BLUE : b = 255; r = g = 0; break; default : r = g = b = 255; } x1 = Project->x1; x2 = Project->x2; y1 = Project->y1; y2 = Project->y2; if ((x1 <= x2) && (y1 <= y2)) { if (x1 < 0) x1 = 0; if (x2 < 0) x2 = 0; if (y1 < 0) y1 = 0; if (y2 < 0) y2 = 0; if (x1 >= Frame.Screen_Width) x1 = Frame.Screen_Width - 1; if (x2 >= Frame.Screen_Width) x2 = Frame.Screen_Width - 1; if (y1 >= Frame.Screen_Height) y1 = Frame.Screen_Height - 1; if (y2 >= Frame.Screen_Height) y2 = Frame.Screen_Height - 1; for (x = x1; x <= x2; x++) { display_plot (x, y1, r, g, b); display_plot (x, y2, r, g, b); } for (y = y1; y <= y2; y++) { display_plot (x1, y, r, g, b); display_plot (x2, y, r, g, b); } }}*//******************************************************************************* FUNCTION : Draw_Vista** ARGUMENTS : Tree - current node/leaf in the vista tree** MODIFIED ARGS : none** RETURN VALUE : none** AUTHOR : Dieter Bayer, May, 1994** DESCRIPTION** Draws recursively all projections of subnodes in the current node.** CHANGES** -*******************************************************************************/static void Draw_Vista(Tree)PROJECT_TREE_NODE *Tree;{/*
unsigned short i; PROJECT_TREE_LEAF *Leaf; if (Tree->is_leaf) { Leaf = (PROJECT_TREE_LEAF *)Tree; if (Leaf->Object->Type & COMPOUND_OBJECT) { Draw_Projection(&Leaf->Project, BLUE); } else { Draw_Projection(&Leaf->Project, RED); } } else { for (i = 0; i < Tree->Entries; i++) { Draw_Vista(Tree->Entry[i]); } } /* draw bounding object's vista *//* Draw_Projection(&Tree->Project, GREEN);*/*/
}/******************************************************************************* FUNCTION : Draw_Vista_Tree** ARGUMENTS : none** MODIFIED ARGS : none** RETURN VALUE : none** AUTHOR : Dieter Bayer, May, 1994** DESCRIPTION** Draw the vista tree.** CHANGES** -*******************************************************************************/void Draw_Vista_Tree(){/*