-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDXFOutputDevice.h
More file actions
38 lines (29 loc) · 1.02 KB
/
DXFOutputDevice.h
File metadata and controls
38 lines (29 loc) · 1.02 KB
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
// DXFOutputDevice.h: interface for the CDXFOutputDevice class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_DXFOUTPUTDEVICE_H__B1A20901_C3FE_11D6_9551_00047660C89A__INCLUDED_)
#define AFX_DXFOUTPUTDEVICE_H__B1A20901_C3FE_11D6_9551_00047660C89A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <fstream>
#include "kernel/OutputDevice.h"
#include "kernel/PointT.h"
class CDXFOutputDevice : public COutputDevice
{
public:
CDXFOutputDevice(const char* path);
virtual ~CDXFOutputDevice();
virtual void MoveTo(int iStream, const PointT& pt);
virtual void LineTo(int iStream, const PointT& pt);
virtual void Label(int iStream, const char* psz);
virtual void Home();
virtual void Flush();
private:
void writeHeader();
void writeFooter();
std::ofstream os;
PointT last[2]; // last position for each stream
int lastStream; // last stream that altered its position
};
#endif // !defined(AFX_DXFOUTPUTDEVICE_H__B1A20901_C3FE_11D6_9551_00047660C89A__INCLUDED_)