www.pudn.com > 3dpipe.zip > ReadDXF.h, change:2006-01-21,size:1602b
// ReadDXF.h: interface for the ReadDXF class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_READDXF_H__72BD3F89_7657_497D_B65D_9003E467910A__INCLUDED_)
#define AFX_READDXF_H__72BD3F89_7657_497D_B65D_9003E467910A__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#ifndef _PIPELINE_DATABASE_H
#include "PipelineDatabase.h"
#endif
#define BUFFER_SIZE 100
//static long pointSum,lineSum;
class AFX_EXT_CLASS ReadDXF : public CObject
{
protected:
DECLARE_SERIAL(ReadDXF)
public:
ReadDXF();
virtual ~ReadDXF();
public:
BOX2D aBox2d;
PIPELINE aPipeLine;
PIPEPOINT aPipePoint;
public:
CArray<UINT,UINT> PointArray;
CArray<PIPEPOINT,PIPEPOINT> PointFile;
CArray<PIPELINE,PIPELINE> LineFile;
public:
UINT pointSum,lineSum;
int pointNum;
float Height;
// int VertexNum,Xnum,Ynum; //be used in lwpolyline
// double fXpoly[700],fYpoly[700];//be used in lwpolyline
// char curobj[BUFFER_SIZE];
char linbuf[BUFFER_SIZE];
int groupcode;
// float xcoords[9],ycoords[9],zcoords[9];
// float floats[9],angles[9],ints[9];
// float fXother[9],fYother[9],fZother[9];
// float elevation,thick,extrusion[3];
// float fXup,fYup,fZup,fXdown,fYdown,fZdown;
public:
void Boundary();
int getLine(FILE *fp);
int findEntity(FILE *fp);
int readEntity(FILE *fp);
int ReadDXFToFile(LPCTSTR fileName,MAP& MapFileToBack);
int findLWPOLYLINE(FILE *fp);
float HeightRand(UINT nMax);
};
#endif // !defined(AFX_READDXF_H__72BD3F89_7657_497D_B65D_9003E467910A__INCLUDED_)