Changeset 13041 for OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfEntity.h
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfEntity.h
r9993 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 */ … … 51 51 ay = ocsaxis ^ ax; 52 52 ay.normalize(); 53 m = osg::Matrixd( ax.x(), ax.y(), ax.z(), 0, 53 m = osg::Matrixd( ax.x(), ax.y(), ax.z(), 0, 54 54 ay.x(), ay.y(), ay.z(), 0, 55 55 ocsaxis.x(), ocsaxis.y(), ocsaxis.z(), 0, … … 93 93 virtual ~dxfCircle() {} 94 94 virtual dxfBasicEntity* create() { // we create a copy which uses our accuracy settings 95 dxfBasicEntity* circle=new dxfCircle; 95 dxfBasicEntity* circle=new dxfCircle; 96 96 circle->setAccuracy(_useAccuracy,_maxError,_improveAccuracyOnly); 97 97 return circle; … … 112 112 virtual ~dxfArc() {} 113 113 virtual dxfBasicEntity* create() { // we create a copy which uses our accuracy settings 114 dxfBasicEntity* arc=new dxfArc; 114 dxfBasicEntity* arc=new dxfArc; 115 115 arc->setAccuracy(_useAccuracy,_maxError,_improveAccuracyOnly); 116 116 //std::cout<<"dxfArc::create with _useAccuracy="<<_useAccuracy<<" maxError="<<_maxError<<" improveAccuracyOnly="<<_improveAccuracyOnly<<std::endl; … … 161 161 { 162 162 public: 163 dxf3DFace() 163 dxf3DFace() 164 164 { 165 165 _vertices[0] = osg::Vec3d(0,0,0); … … 200 200 { 201 201 public: 202 dxfPolyline() : _currentVertex(NULL), 203 _elevation(0.0), 204 _flag(0), 205 _mcount(0), 206 _ncount(0), 207 _nstart(0), 202 dxfPolyline() : _currentVertex(NULL), 203 _elevation(0.0), 204 _flag(0), 205 _mcount(0), 206 _ncount(0), 207 _nstart(0), 208 208 _nend(0), 209 209 _ocs(osg::Vec3d(0,0,1)), … … 239 239 { 240 240 public: 241 dxfLWPolyline() : 242 _elevation(0.0), 243 _flag(0), 244 _vcount(0), 241 dxfLWPolyline() : 242 _elevation(0.0), 243 _flag(0), 244 _vcount(0), 245 245 _ocs(osg::Vec3d(0,0,1)), 246 246 _lastv(0,0,0) … … 266 266 { 267 267 public: 268 dxfInsert() : _block(NULL), 269 _done(false), 270 _rotation(0), 268 dxfInsert() : _block(NULL), 269 _done(false), 270 _rotation(0), 271 271 _scale(1,1,1), 272 272 _point(osg::Vec3d(0,0,0)), … … 339 339 static void registerEntity(dxfBasicEntity*); 340 340 static void unregisterEntity(dxfBasicEntity*); 341 static dxfBasicEntity* findByName(std::string s) 341 static dxfBasicEntity* findByName(std::string s) 342 342 { 343 343 dxfBasicEntity* be = _registry[s].get(); … … 382 382 dxfEntity::unregisterEntity(_rw.get()); 383 383 } 384 384 385 385 T* get() { return _rw.get(); } 386 386 387 387 protected: 388 388 osg::ref_ptr<T> _rw;
