From Paul de Repentinguy, DXF loader plugin. Ported to Linux by Robert Osfield.

This commit is contained in:
Robert Osfield
2005-04-15 20:39:06 +00:00
parent 08f593a54b
commit 47a2b3aa23
23 changed files with 3094 additions and 1 deletions

View File

@@ -0,0 +1,50 @@
/* dxfReader for OpenSceneGraph Copyright (C) 2005 by GraphArchitecture ( grapharchitecture.com )
* Programmed by Paul de Repentigny <pdr@grapharchitecture.com>
*
* OpenSceneGraph is (C) 2004 Robert Osfield
*
* This library is provided as-is, without support of any kind.
*
* Read DXF docs or OSG docs for any related questions.
*
* You may contact the author if you have suggestions/corrections/enhancements.
*/
#ifndef DXF_CODE_VALUE
#define DXF_CODE_VALUE 1
#include <string>
/// a group code / value pair handler
/// to do: write accessors which check for the correct value
/// being asked for (each group code has a value type
/// associated with it).
class codeValue {
public:
codeValue() { reset(); }
void reset()
{
_groupCode = -100;
_type = 0;
_bool = false;
_short = 0;
_int = 0;
_long = 0;
_double = 0;
_string = "";
}
int _groupCode;
int _type;
std::string _unknown;
std::string _string;
bool _bool;
unsigned short _short;
int _int;
long _long;
double _double;
};
typedef std::vector<codeValue> VariableList; // this may be too big, find another way
#endif