-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvertice.h
More file actions
31 lines (25 loc) · 716 Bytes
/
vertice.h
File metadata and controls
31 lines (25 loc) · 716 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef __VERTICE_H
#define __VERTICE_H
#include "point.h"
typedef void* Vertice;
/*Create
Função responsável para criar vertice.
PRE: id do vertice; coordenadas x,y;
POS: Retorna um pointer instanciado.
*/
Vertice createVertice(char* id, float x, float y);
/*
Getters: Retorna o atributo do título da função
PRE: Objeto
POS: Atributo especificado
*/
char* verticeGetNome(Vertice vertice);
Point verticeGetPoint(Vertice vertice);
float verticeGetX(Vertice vertice);
float verticeGetY(Vertice vertice);
/*
Escreve uma tag SVG de circulo e texto no arquivo passado
PRE: Vertice e arquivo onde irá ser salvo o SVG
*/
void desenhaVerticeSvg(Vertice vertice, char* corVertice, FILE* fileSvg);
#endif