Added TextureType and GeometryType parameters to DataSet. These will be used

to control what type of database is generated.
This commit is contained in:
Robert Osfield
2004-03-21 12:17:44 +00:00
parent 88bbdb325d
commit ec1fd733b8
3 changed files with 61 additions and 19 deletions

View File

@@ -878,6 +878,24 @@ class DataSet : public osg::Referenced
void setDatabaseType(DatabaseType type) { _databaseType = type; }
DatabaseType getDatabaseType() const { return _databaseType; }
enum GeometryType
{
HEIGHT_FIELD,
POLYGONAL,
};
void setGeometryType(GeometryType type) { _geometryType = type; }
GeometryType getGeometryType() const { return _geometryType; }
enum TextureType
{
RGB_24_BIT,
RGB_16_BIT,
COMPRESSED_TEXTURE
};
void setTextureType(TextureType type) { _textureType = type; }
TextureType getTextureType() const { return _textureType; }
void writeDestination();
osg::Node* getDestinationRootNode() { return _rootNode.get(); }
@@ -909,6 +927,8 @@ class DataSet : public osg::Referenced
std::string _tileExtension;
osg::Vec4 _defaultColor;
DatabaseType _databaseType;
GeometryType _geometryType;
TextureType _textureType;
osg::ref_ptr<osg::Node> _rootNode;