Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfFile.cpp
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfFile.cpp
r11112 r13041 1 1 /* dxfReader for OpenSceneGraph Copyright (C) 2005 by GraphArchitecture ( grapharchitecture.com ) 2 2 * Programmed by Paul de Repentigny <pdr@grapharchitecture.com> 3 * 3 * 4 4 * OpenSceneGraph is (C) 2004 Robert Osfield 5 * 5 * 6 6 * This library is provided as-is, without support of any kind. 7 7 * 8 8 * Read DXF docs or OSG docs for any related questions. 9 * 9 * 10 10 * You may contact the author if you have suggestions/corrections/enhancements. 11 11 */ … … 23 23 using namespace std; 24 24 25 bool 25 bool 26 26 dxfFile::parseFile() 27 27 { 28 28 if (_fileName == "") return false; 29 29 _reader = new dxfReader; 30 30 31 31 if (_reader->openFile(_fileName)) { 32 32 codeValue cv; … … 46 46 } 47 47 48 osg::Group* 49 dxfFile::dxf2osg() 48 osg::Group* 49 dxfFile::dxf2osg() 50 50 { 51 51 if (!_entities) return NULL; … … 63 63 } 64 64 65 dxfBlock* 65 dxfBlock* 66 66 dxfFile::findBlock(std::string name) 67 67 { … … 74 74 /// contains, call this. pass the complete variable name 75 75 /// including "$", for example: "$EXTMAX" 76 VariableList 76 VariableList 77 77 dxfFile::getVariable(std::string var) 78 78 { … … 81 81 82 82 /// parse the dxf sections 83 short 83 short 84 84 dxfFile::assign(codeValue& cv) 85 85 {
