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

#include <cellwater.hpp>

Inheritance diagram for CSVRender::CellWater:
Collaboration diagram for CSVRender::CellWater:

Public Member Functions

 CellWater (CSMWorld::Data &data, osg::Group *cellNode, const std::string &id, const CSMWorld::CellCoordinates &cellCoords)
 
 ~CellWater ()
 
void updateCellData (const CSMWorld::Record< CSMWorld::Cell > &cellRecord)
 

Private Slots

void cellDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 

Private Member Functions

void recreate ()
 

Private Attributes

CSMWorld::DatamData
 
std::string mId
 
osg::Group * mParentNode
 
osg::ref_ptr
< osg::PositionAttitudeTransform > 
mWaterTransform
 
osg::ref_ptr< osg::Geode > mWaterNode
 
osg::ref_ptr< osg::Geometry > mWaterGeometry
 
bool mDeleted
 
bool mExterior
 
bool mHasWater
 

Static Private Attributes

static const int CellSize = ESM::Land::REAL_SIZE
 

Detailed Description

For exterior cells, this adds a patch of water to fit the size of the cell. For interior cells with water, this adds a large patch of water much larger than the typical size of a cell.

Constructor & Destructor Documentation

CSVRender::CellWater::CellWater ( CSMWorld::Data data,
osg::Group *  cellNode,
const std::string &  id,
const CSMWorld::CellCoordinates cellCoords 
)

Here is the call graph for this function:

CSVRender::CellWater::~CellWater ( )

Member Function Documentation

void CSVRender::CellWater::cellDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
privateslot

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::CellWater::recreate ( )
private

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::CellWater::updateCellData ( const CSMWorld::Record< CSMWorld::Cell > &  cellRecord)

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

const int CSVRender::CellWater::CellSize = ESM::Land::REAL_SIZE
staticprivate
CSMWorld::Data& CSVRender::CellWater::mData
private
bool CSVRender::CellWater::mDeleted
private
bool CSVRender::CellWater::mExterior
private
bool CSVRender::CellWater::mHasWater
private
std::string CSVRender::CellWater::mId
private
osg::Group* CSVRender::CellWater::mParentNode
private
osg::ref_ptr<osg::Geometry> CSVRender::CellWater::mWaterGeometry
private
osg::ref_ptr<osg::Geode> CSVRender::CellWater::mWaterNode
private
osg::ref_ptr<osg::PositionAttitudeTransform> CSVRender::CellWater::mWaterTransform
private

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