/*************************************************************************** * Copyright (C) 2009 by Douglas Castro * * douglas@ime.unicamp.br * * * * This program is free software; you can redistribute it and/or modify * * it under the terms of the GNU General Public License as published by * * the Free Software Foundation; either version 2 of the License, or * * (at your option) any later version. * * * * This program is distributed in the hope that it will be useful, * * but WITHOUT ANY WARRANTY; without even the implied warranty of * * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * * GNU General Public License for more details. * * * * You should have received a copy of the GNU General Public License * * along with this program; if not, write to the * * Free Software Foundation, Inc., * * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * ***************************************************************************/ #ifndef _IMPRIME_H_ #define _IMPRIME_H_ #include #include #include #include #include "definicoes.h" #include "bool.h" #include "pswr.h" /** * Funcao que sai a procura de celulas folhas na arvore e desenha tais celulas */ void desenha_folhas(PSStream *ps, No *r, int ind, int prof, double xmin, double xmax, double ymin, double ymax); /** * A chamada dessa funcao retorna a grade formada por todas as celulas folha da arvore */ void DoMesh(char *prefixo, No *u); void DrawCells(PSStream *ps, double xmin, double xmax, double ymin, double ymax, bool_t fill, bool_t draw, bool_t eo); void MakeTree(char *prefixo, No *u, int niv); void DrawNodes(PSStream *ps, No *u, int prof,int niv, double x,double y); void MakeLines(PSStream *ps, int qual, int prof, double xc, double yc, bool_t arrowheads); /** * escreve os dados de um vetor num arquivo de texto * @param arq [out] arquivo onde sera escrito os dados * @param u [in] arvore cujas folhas serao gravadas no arquivo * @param prof [in] profundidade na arvore * @param xlo [in] extremo inferior do proximo intervalo */ void escrevearquivo1d(FILE *arq, No *u, int prof, double *xlo); void DoEPSTests(char *prefixo); void DrawThings(PSStream *ps); void DrawTexts(PSStream *ps, double xc, double yc); void DrawLines(PSStream *ps, double xc, double yc, bool_t arrowheads); void DrawFigures(PSStream *ps, double xc, double yc, bool_t fill, bool_t draw, bool_t eo); void teste(No *r,int prof); #endif