|
Revision 13041, 1.1 kB
(checked in by robert, 14 months 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 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 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 | |
|---|
| 24 | class dxfFile; |
|---|
| 25 | class codeValue; |
|---|
| 26 | class dxfEntity; |
|---|
| 27 | |
|---|
| 28 | typedef std::vector<osg::ref_ptr<dxfEntity> > EntityList; |
|---|
| 29 | |
|---|
| 30 | class dxfBlock : public osg::Referenced |
|---|
| 31 | { |
|---|
| 32 | public: |
|---|
| 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 | |
|---|
| 40 | protected: |
|---|
| 41 | EntityList _entityList; |
|---|
| 42 | dxfEntity* _currentEntity; |
|---|
| 43 | std::string _name; |
|---|
| 44 | osg::Vec3d _position; |
|---|
| 45 | }; |
|---|
| 46 | |
|---|
| 47 | #endif |
|---|