Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

xymvtext.h

Go to the documentation of this file.
00001 //* Módulo   : xymvtext.h                                                         
00002 // _Desc_    : Declara classe XYMultilineVectorText.
00003 // _Autores_ : Carlos Henrique Levy e Jaudênia Cavalcante e Camilo Freire
00004 // _Data_    : 20 jun 97.                                                           
00005 
00006 #ifndef __XYMULTILINEVECTORTEXT_H
00007 #define __XYMULTILINEVECTORTEXT_H
00008 
00009 #include "xyvtext.h"
00010 
00011 //* XYMultilineVectorText 
00012 //    Classe especializada responsável pelo desenho de textos vetoriais.     
00013 class XYMultilineVectorText : public XYVectorText
00014 {
00015    public:
00016 
00017  //* Construtores e Destrutor
00018    //* Construtor A
00019    XYMultilineVectorText (
00020         const char* text,    // texto a ser desenhado
00021         // posição em relação a área ocupada pelo gráfico
00022         XYCoordinate x,      // coordenada x
00023         XYCoordinate y,      // coordenada y
00024         long color,          // cor do texto
00025         double height,       // altura do texto, em coord. normalizadas
00026         double width,        // altura do texto, em coord. normalizadas
00027         Typeface font,       // tipo de fonte usada
00028         Style style,         // estilo de escrita
00029         Alignment alignment,     // alinhamento (rosa dos ventos)
00030         Orientation orientation, // orientação do texto
00031         xybool visible = xytrue);    // visibilidade
00032 
00033    //* Construtor B
00034    XYMultilineVectorText (
00035         const char* text,     // texto a ser desenhado
00036         // posição em relação a área ocupada pelo gráfico
00037         XYCoordinate x,       // coordenada x
00038         XYCoordinate y,       // coordenada y
00039         xybool visible = xytrue); // visibilidade
00040 
00041    //* Construtor C
00042    XYMultilineVectorText (
00043         const char* text,  // texto a ser desenhado
00044         long color,        // cor do texto
00045         double height,     // altura do texto, em coord. normalizadas
00046         double width,      // altura do texto, em coord. normalizadas
00047         Typeface font,     // tipo de fonte usada
00048         Style style,       // estilo de escrita
00049         Alignment alignment,     // alinhamento (rosa dos ventos)
00050         Orientation orientation, // orientação do texto
00051         xybool visible = xytrue);    // visibilidade
00052 
00053    //* Construtor D (atributos)
00054    XYMultilineVectorText (
00055         long color,        // cor
00056         double height,     // altura do texto, em coord. normalizadas
00057         double width,      // altura do texto, em coord. normalizadas
00058         Typeface font,     // tipo de fonte usada
00059         Style style,       // estilo de escrita
00060         Alignment alignment,     // alinhamento (rosa dos ventos)
00061         Orientation orientation, // orientação do texto
00062         xybool visible = xytrue);    // visibilidade
00063 
00064    //* Destrutor da classe XYVectorText
00065    virtual ~XYMultilineVectorText (void);
00066 
00067  //* Métodos de Draw
00068    //* Desenha um texto
00069    virtual void draw (void);
00070    //* Desenha um texto numa região
00071    virtual void draw (int xmin, int ymin, int xmax, int ymax) const;
00072 
00073  //* BoundingBox
00074    //* Retorna menor retângulo que contém o texto, suas coordenadas são dadas em pixel
00075    virtual void boundingBox (int& bxmin, int& bymin, int& bxmax, int& bymax) const;
00076 };
00077 
00078 #endif
00079                                                                                                 

XY
Tecgraf / PUC-Rio - Computer Graphics Technology Group