OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
CSVRender::TerrainStorage Class Reference

A bridge between the terrain component and OpenCS's terrain data storage. More...

#include <terrainstorage.hpp>

Inheritance diagram for CSVRender::TerrainStorage:
Collaboration diagram for CSVRender::TerrainStorage:

Public Member Functions

 TerrainStorage (const CSMWorld::Data &data)
 
- Public Member Functions inherited from ESMTerrain::Storage
 Storage (const VFS::Manager *vfs, const std::string &normalMapPattern="", const std::string &normalHeightMapPattern="", bool autoUseNormalMaps=false, const std::string &specularMapPattern="", bool autoUseSpecularMaps=false)
 
virtual bool getMinMaxHeights (float size, const osg::Vec2f &center, float &min, float &max)
 
virtual void fillVertexBuffers (int lodLevel, float size, const osg::Vec2f &center, osg::ref_ptr< osg::Vec3Array > positions, osg::ref_ptr< osg::Vec3Array > normals, osg::ref_ptr< osg::Vec4Array > colours)
 
virtual void getBlendmaps (float chunkSize, const osg::Vec2f &chunkCenter, bool pack, ImageVector &blendmaps, std::vector< Terrain::LayerInfo > &layerList)
 
virtual float getHeightAt (const osg::Vec3f &worldPos)
 
virtual float getCellWorldSize ()
 Get the transformation factor for mapping cell units to world units. More...
 
virtual int getCellVertices ()
 Get the number of vertices on one side for each cell. Should be (power of two)+1. More...
 
virtual int getBlendmapScale (float chunkSize)
 
- Public Member Functions inherited from Terrain::Storage
virtual ~Storage ()
 

Private Member Functions

virtual osg::ref_ptr< const
ESMTerrain::LandObject
getLand (int cellX, int cellY)
 
virtual const ESM::LandTexturegetLandTexture (int index, short plugin)
 
virtual void getBounds (float &minX, float &maxX, float &minY, float &maxY)
 Get bounds of the whole terrain in cell units. More...
 

Private Attributes

const CSMWorld::DatamData
 

Additional Inherited Members

- Public Types inherited from Terrain::Storage
typedef std::vector
< osg::ref_ptr< osg::Image > > 
ImageVector
 

Detailed Description

A bridge between the terrain component and OpenCS's terrain data storage.

Constructor & Destructor Documentation

CSVRender::TerrainStorage::TerrainStorage ( const CSMWorld::Data data)

Member Function Documentation

void CSVRender::TerrainStorage::getBounds ( float &  minX,
float &  maxX,
float &  minY,
float &  maxY 
)
privatevirtual

Get bounds of the whole terrain in cell units.

Implements ESMTerrain::Storage.

osg::ref_ptr< const ESMTerrain::LandObject > CSVRender::TerrainStorage::getLand ( int  cellX,
int  cellY 
)
privatevirtual

Implements ESMTerrain::Storage.

Here is the call graph for this function:

const ESM::LandTexture * CSVRender::TerrainStorage::getLandTexture ( int  index,
short  plugin 
)
privatevirtual

Implements ESMTerrain::Storage.

Here is the call graph for this function:

Member Data Documentation

const CSMWorld::Data& CSVRender::TerrainStorage::mData
private

The documentation for this class was generated from the following files: