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

#include <cell.hpp>

Collaboration diagram for CSVRender::Cell:

Public Types

enum  Selection { Selection_Clear, Selection_All, Selection_Invert }
 

Public Member Functions

 Cell (CSMWorld::Data &data, osg::Group *rootNode, const std::string &id, bool deleted=false)
 
 ~Cell ()
 
PathgridgetPathgrid () const
 
bool referenceableDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
bool referenceableAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
bool referenceDataChanged (const QModelIndex &topLeft, const QModelIndex &bottomRight)
 
bool referenceAboutToBeRemoved (const QModelIndex &parent, int start, int end)
 
bool referenceAdded (const QModelIndex &parent, int start, int end)
 
void pathgridModified ()
 
void pathgridRemoved ()
 
void setSelection (int elementMask, Selection mode)
 
void selectAllWithSameParentId (int elementMask)
 
void setCellArrows (int mask)
 
void setCellMarker ()
 Set marker for this cell. More...
 
CSMWorld::CellCoordinates getCoordinates () const
 Returns 0, 0 in case of an unpaged cell. More...
 
bool isDeleted () const
 
std::vector< osg::ref_ptr
< TagBase > > 
getSelection (unsigned int elementMask) const
 
std::vector< osg::ref_ptr
< TagBase > > 
getEdited (unsigned int elementMask) const
 
void setSubMode (int subMode, unsigned int elementMask)
 
void reset (unsigned int elementMask)
 

Private Member Functions

bool removeObject (const std::string &id)
 
std::map< std::string, Object * >
::iterator 
removeObject (std::map< std::string, Object * >::iterator iter)
 
bool addObjects (int start, int end)
 

Private Attributes

CSMWorld::DatamData
 
std::string mId
 
osg::ref_ptr< osg::Group > mCellNode
 
std::map< std::string, Object * > mObjects
 
std::auto_ptr
< Terrain::TerrainGrid
mTerrain
 
CSMWorld::CellCoordinates mCoordinates
 
std::auto_ptr< CellArrowmCellArrows [4]
 
std::auto_ptr< CellMarkermCellMarker
 
std::auto_ptr< CellBordermCellBorder
 
std::auto_ptr< CellWatermCellWater
 
std::auto_ptr< PathgridmPathgrid
 
bool mDeleted
 
int mSubMode
 
unsigned int mSubModeElementMask
 

Member Enumeration Documentation

Enumerator
Selection_Clear 
Selection_All 
Selection_Invert 

Constructor & Destructor Documentation

CSVRender::Cell::Cell ( CSMWorld::Data data,
osg::Group *  rootNode,
const std::string &  id,
bool  deleted = false 
)
Note
Deleted covers both cells that are deleted and cells that don't exist in the first place.

Here is the call graph for this function:

CSVRender::Cell::~Cell ( )

Member Function Documentation

bool CSVRender::Cell::addObjects ( int  start,
int  end 
)
private

Add objects from reference table that are within this cell.

Returns
Have any objects been added?

Here is the call graph for this function:

Here is the caller graph for this function:

CSMWorld::CellCoordinates CSVRender::Cell::getCoordinates ( ) const

Returns 0, 0 in case of an unpaged cell.

std::vector< osg::ref_ptr< CSVRender::TagBase > > CSVRender::Cell::getEdited ( unsigned int  elementMask) const
CSVRender::Pathgrid * CSVRender::Cell::getPathgrid ( ) const
Note
Returns the pathgrid representation which will exist as long as the cell exists

Here is the caller graph for this function:

std::vector< osg::ref_ptr< CSVRender::TagBase > > CSVRender::Cell::getSelection ( unsigned int  elementMask) const
bool CSVRender::Cell::isDeleted ( ) const
void CSVRender::Cell::pathgridModified ( )
void CSVRender::Cell::pathgridRemoved ( )
bool CSVRender::Cell::referenceableAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
Returns
Did this call result in a modification of the visual representation of this cell?
bool CSVRender::Cell::referenceableDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
Returns
Did this call result in a modification of the visual representation of this cell?
bool CSVRender::Cell::referenceAboutToBeRemoved ( const QModelIndex &  parent,
int  start,
int  end 
)
Returns
Did this call result in a modification of the visual representation of this cell?

Here is the call graph for this function:

bool CSVRender::Cell::referenceAdded ( const QModelIndex &  parent,
int  start,
int  end 
)
Returns
Did this call result in a modification of the visual representation of this cell?
bool CSVRender::Cell::referenceDataChanged ( const QModelIndex &  topLeft,
const QModelIndex &  bottomRight 
)
Returns
Did this call result in a modification of the visual representation of this cell?

Here is the call graph for this function:

bool CSVRender::Cell::removeObject ( const std::string &  id)
private

Ignored if cell does not have an object with the given ID.

Returns
Was the object deleted?

Here is the call graph for this function:

std::map< std::string, CSVRender::Object * >::iterator CSVRender::Cell::removeObject ( std::map< std::string, Object * >::iterator  iter)
private
void CSVRender::Cell::reset ( unsigned int  elementMask)

Erase all overrides and restore the visual representation of the cell to its true state.

void CSVRender::Cell::selectAllWithSameParentId ( int  elementMask)
void CSVRender::Cell::setCellArrows ( int  mask)

Here is the call graph for this function:

void CSVRender::Cell::setCellMarker ( )

Set marker for this cell.

Here is the call graph for this function:

Here is the caller graph for this function:

void CSVRender::Cell::setSelection ( int  elementMask,
Selection  mode 
)
void CSVRender::Cell::setSubMode ( int  subMode,
unsigned int  elementMask 
)

Here is the caller graph for this function:

Member Data Documentation

std::auto_ptr<CellArrow> CSVRender::Cell::mCellArrows[4]
private
std::auto_ptr<CellBorder> CSVRender::Cell::mCellBorder
private
std::auto_ptr<CellMarker> CSVRender::Cell::mCellMarker
private
osg::ref_ptr<osg::Group> CSVRender::Cell::mCellNode
private
std::auto_ptr<CellWater> CSVRender::Cell::mCellWater
private
CSMWorld::CellCoordinates CSVRender::Cell::mCoordinates
private
CSMWorld::Data& CSVRender::Cell::mData
private
bool CSVRender::Cell::mDeleted
private
std::string CSVRender::Cell::mId
private
std::map<std::string, Object *> CSVRender::Cell::mObjects
private
std::auto_ptr<Pathgrid> CSVRender::Cell::mPathgrid
private
int CSVRender::Cell::mSubMode
private
unsigned int CSVRender::Cell::mSubModeElementMask
private
std::auto_ptr<Terrain::TerrainGrid> CSVRender::Cell::mTerrain
private

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