CGAugmentedRealityProject is an open source project powered by Assembla

Assembla offers free public and private SVN/Git repositories and project hosting with bug/issue tracking and collaboration tools.

CGAugmentedRealityProject

/projetocg
 
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
32
33
34
35
36
37
38
39
/*
 * File:   defineplanos.h
 * Author: artur
 *
 * Created on 12 de Dezembro de 2009, 14:04
 */

#ifndef _DEFINEPLANOS_H
#define    _DEFINEPLANOS_H

#include <vector>
#include <auto_ptr.h>
#include <iostream>
#include <fstream>
#include <math.h>
#include "Forma.h"

using namespace std;

class Cenario : public Forma{
public:
    Cenario & adicionar(Plano & plano){
        planos.push_back(plano);
    };
protected:
    void desenhar(){
        for(int i =0; i<planos.size(); i++)
            planos[i].desenharForma();
    }
private:
    vector<Plano> planos;
};

void recebeDeArquivo(const char *caminhoCenario,vector< vector<int> >  & destino);
void criaCenario(int largura, int altura,const char * caminhoArquivo,Cenario & destino);


#endif    /* _DEFINEPLANOS_H */
Ajax-loader Loading, please wait...