root/OpenSceneGraph/trunk/src/osgPlugins/dxf/dxfBlock.h @ 13041

Revision 13041, 1.1 kB (checked in by robert, 3 years ago)

Ran script to remove trailing spaces and tabs

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1/* dxfReader for OpenSceneGraph  Copyright (C) 2005 by GraphArchitecture ( grapharchitecture.com )
2 * Programmed by Paul de Repentigny <pdr@grapharchitecture.com>
3 *
4 * OpenSceneGraph is (C) 2004 Robert Osfield
5 *
6 * This library is provided as-is, without support of any kind.
7 *
8 * Read DXF docs or OSG docs for any related questions.
9 *
10 * You may contact the author if you have suggestions/corrections/enhancements.
11 */
12
13#ifndef DXF_BLOCK
14#define DXF_BLOCK 1
15
16#include <map>
17#include <vector>
18#include <string>
19
20#include <osg/Referenced>
21#include <osg/Vec3d>
22#include <osg/ref_ptr>
23
24class dxfFile;
25class codeValue;
26class dxfEntity;
27
28typedef std::vector<osg::ref_ptr<dxfEntity> > EntityList;
29
30class dxfBlock : public osg::Referenced
31{
32public:
33    dxfBlock() : _currentEntity(NULL) {}
34    virtual ~dxfBlock() {}
35    inline const std::string& getName() const { return _name; }
36    virtual void assign(dxfFile* dxf, codeValue& cv);
37    EntityList& getEntityList() { return _entityList; }
38    const osg::Vec3d& getPosition() const;
39
40protected:
41    EntityList _entityList;
42    dxfEntity* _currentEntity;
43    std::string _name;
44    osg::Vec3d _position;
45};
46
47#endif
Note: See TracBrowser for help on using the browser.