dl_dxf.cpp in DXF.rar


DXF reading source code...Original Link
    Sponsored links

			
/****************************************************************************
** $Id: dl_dxf.cpp 8865 2008-02-04 18:54:02Z andrew $
**
** Copyright (C) 2001-2003 RibbonSoft. All rights reserved.
**
** This file is part of the dxflib project.
**
** This file may be distributed and/or modified under the terms of the
** GNU General Public License version 2 as published by the Free Software
** Foundation and appearing in the file LICENSE.GPL included in the
** packaging of this file.
**
** Licensees holding valid dxflib Professional Edition licenses may use 
** this file in accordance with the dxflib Commercial License
** Agreement provided with the Software.
**
** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
**
** See http://www.ribbonsoft.com for further details.
**
** Contact info@ribbonsoft.com if any conditions of this licensing are
** not clear to you.
**
**********************************************************************/

#include <stdafx.h>
#include "dl_dxf.h"

#include <algorithm>
#include <string>
#include <cstdio>
#include <cassert>
#include <cmath>

#include "dl_attributes.h"
#include "dl_codes.h"
#include "dl_creationinterface.h"
#include "dl_writer_ascii.h"


/**
 * Default constructor.
 */
DL_Dxf::DL_Dxf() {
    styleHandleStd = 0;
    version = VER_2000;

    vertices = NULL;
    maxVertices = 0;
    vertexIndex = 0;

    knots = NULL;
    maxKnots = 0;
    knotIndex = 0;

    controlPoints = NULL;
    maxControlPoints = 0;
    controlPointIndex = 0;

    leaderVertices = NULL;
    maxLeaderVertices = 0;
    leaderVertexIndex = 0;

    hatchLoops = NULL;
    maxHatchLoops = 0;
    hatchLoopIndex = -1;
    hatchEdges = NULL;
    maxHatchEdges = NULL;
    hatchEdgeIndex = NULL;
    dropEdges = false;
}



/**
 * Destructor.
 */
DL_Dxf::~DL_Dxf() {
    if (vertices!=NULL) {
        delete[] vertices;
    }
    if (knots!=NULL) {
        delete[] knots;
    }
    if (controlPoints!=NULL) {
        			

			...
			...
			... to be continued.

  This is a preview. To get the complete source file, 
  please click here to download the whole source code package.

			
			


Project Files

    Sponsored links
NameSizeDate
 3dface.dxf29.87 kB05-02-08 00:16
 <Debug>0.00 B07-04-09 20:39
 demo.bak98.73 kB18-09-07 13:43
 demo.dxf101.99 kB06-04-09 16:18
 dl_attributes.h3.80 kB04-04-09 16:02
 dl_codes.h20.92 kB20-11-07 01:11
 dl_creationadapter.h4.07 kB04-04-09 15:03
 dl_creationinterface.h7.86 kB04-04-09 15:03
 dl_dxf.cpp137.00 kB07-04-09 18:27
 dl_dxf.h14.88 kB05-02-08 00:24
 dl_entities.h30.72 kB04-01-08 22:26
 dl_exception.h1.49 kB18-09-07 13:43
 dl_extrusion.h3.07 kB18-09-07 13:43
 dl_writer.h12.68 kB20-11-07 01:11
 dl_writer_ascii.cpp3.35 kB30-03-09 18:53
 dl_writer_ascii.h2.21 kB18-09-07 13:43
 dxftest.aps20.63 kB07-04-09 15:20
 dxftest.clw1.15 kB07-04-09 18:33
 dxftest.cpp2.03 kB30-03-09 18:51
 dxftest.dsp5.07 kB30-03-09 19:06
 dxftest.dsw537.00 B30-03-09 18:51
 dxftest.h1.30 kB30-03-09 18:51
 dxftest.ncb577.00 kB07-04-09 18:33
 dxftest.opt55.50 kB07-04-09 18:33
 dxftest.plg1.01 kB07-04-09 18:29
 dxftest.rc5.30 kB06-04-09 20:26
 dxftestDlg.cpp6.10 kB06-04-09 21:01
 dxftestDlg.h1.39 kB04-04-09 20:06
 main.h8.09 kB07-04-09 18:25
 memdc.h3.79 kB07-04-09 15:22
 myfile.dxf12.62 kB05-02-08 00:23
 ReadMe.txt3.51 kB30-03-09 18:51
 dxftest.ico1.05 kB30-03-09 18:51
 dxftest.rc2399.00 B30-03-09 18:51
 Thumbs.db3.00 kB30-03-09 19:04
 <res>0.00 B07-04-09 20:39
 resource.h731.00 B04-04-09 20:06
 RF67_Fl200_2.dxf38.69 kB19-01-00 16:55
 sample.dxf2.71 kB21-11-03 22:07
 StdAfx.cpp209.00 B30-03-09 18:51
 StdAfx.h1.03 kB30-03-09 18:51
 test_creationclass.cpp9.62 kB07-04-09 17:27
 test_creationclass.h2.44 kB06-04-09 21:00
 <dxftest>0.00 B07-04-09 20:39
 <DXF>0.00 B07-04-09 20:39
...

Related Items

    Sponsored links