summaryrefslogtreecommitdiffstats
path: root/src/extension/dxf2svg/blocks.h
blob: 27e0b8be1b410203d935b302c1985a82928c6afe (plain)
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
/* Read Blocks from file and convert to vectors of entities
Matt Squires
Google SOC 2005
*/

#ifndef DXF_BLOCKS_H
#define DXF_BLOCKS_H

#include"read_dxf.h"
#include"entities.h"
#include<vector>


class block : public entity, public entities{// : public entities, {
	public:
		block( std::vector< std::vector< dxfpair > > sections ); // Group all of the blocks as entities
		char* name(char* string);
		//void blocks_display();
		
	
	protected:
		char block_name[10000];
		double rotation;
		
	private:
		void block_info(std::vector< dxfpair > info);
};

class blocks{
	public:
		blocks(std::vector< std::vector< dxfpair > > sections);
		block ret_block(char block_name[10000]);
		
	protected:
		std::vector< block > blocks_blocks;
};

#endif