1 #ifndef OPENCS_VIEW_CELL_H
2 #define OPENCS_VIEW_CELL_H
11 #include "../../model/world/cellcoordinates.hpp"
50 std::unique_ptr<Terrain::TerrainGrid>
mTerrain;
69 std::map<std::string, Object *>::iterator iter);
93 bool deleted =
false);
103 const QModelIndex& bottomRight);
119 bool referenceAdded (
const QModelIndex& parent,
int start,
int end);
125 void landDataChanged (
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
129 void landAdded (
const QModelIndex& parent,
int start,
int end);
155 std::vector<osg::ref_ptr<TagBase> >
getSelection (
unsigned int elementMask)
const;
157 std::vector<osg::ref_ptr<TagBase> >
getEdited (
unsigned int elementMask)
const;
159 void setSubMode (
int subMode,
unsigned int elementMask);
163 void reset (
unsigned int elementMask);
std::unique_ptr< Pathgrid > mPathgrid
Definition: cell.hpp:56
bool addObjects(int start, int end)
Definition: cell.cpp:77
bool referenceableAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:225
void landDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: cell.cpp:362
Simple terrain implementation that loads cells in a grid, with no LOD. Only requested cells are loade...
Definition: terraingrid.hpp:14
void setCellArrows(int mask)
Definition: cell.cpp:476
void landAdded(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:373
bool referenceableDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: cell.cpp:212
std::string mId
Definition: cell.hpp:47
CSMWorld::CellCoordinates mCoordinates
Definition: cell.hpp:51
void pathgridModified()
Definition: cell.cpp:350
bool referenceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: cell.cpp:241
std::unique_ptr< CellWater > mCellWater
Definition: cell.hpp:55
std::unique_ptr< CellMarker > mCellMarker
Definition: cell.hpp:53
void updateLand()
Definition: cell.cpp:106
osg::ref_ptr< osg::Group > mCellNode
Definition: cell.hpp:48
Cell(CSMWorld::Data &data, osg::Group *rootNode, const std::string &id, bool deleted=false)
Definition: cell.cpp:165
void reloadAssets()
Definition: cell.cpp:394
std::unique_ptr< CellBorder > mCellBorder
Definition: cell.hpp:54
void landAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:367
bool removeObject(const std::string &id)
Definition: cell.cpp:57
void landTextureChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: cell.cpp:379
void selectAllWithSameParentId(int elementMask)
Definition: cell.cpp:454
std::vector< osg::ref_ptr< TagBase > > getEdited(unsigned int elementMask) const
Definition: cell.cpp:538
bool referenceAdded(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:339
unsigned int mSubModeElementMask
Definition: cell.hpp:59
void setSubMode(int subMode, unsigned int elementMask)
Definition: cell.cpp:551
bool mDeleted
Definition: cell.hpp:57
void setSelection(int elementMask, Selection mode)
Definition: cell.cpp:412
std::unique_ptr< Terrain::TerrainGrid > mTerrain
Definition: cell.hpp:50
Definition: pathgrid.hpp:50
Selection
Definition: cell.hpp:81
void setCellMarker()
Set marker for this cell.
Definition: cell.cpp:494
CSMWorld::Data & mData
Definition: cell.hpp:46
bool isDeleted() const
Definition: cell.cpp:517
std::unique_ptr< CellArrow > mCellArrows[4]
Definition: cell.hpp:52
bool mLandDeleted
Definition: cell.hpp:60
bool mUpdateLand
Definition: cell.hpp:60
void landTextureAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:384
Definition: cellcoordinates.hpp:12
bool referenceAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:315
void unloadLand()
Definition: cell.cpp:156
int mSubMode
Definition: cell.hpp:58
Pathgrid * getPathgrid() const
Definition: cell.cpp:207
std::vector< osg::ref_ptr< TagBase > > getSelection(unsigned int elementMask) const
Definition: cell.cpp:522
CSMWorld::CellCoordinates getCoordinates() const
Returns 0, 0 in case of an unpaged cell.
Definition: cell.cpp:512
void landTextureAdded(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:389
void pathgridRemoved()
Definition: cell.cpp:356
~Cell()
Definition: cell.cpp:198
void reset(unsigned int elementMask)
Definition: cell.cpp:562
std::map< std::string, Object * > mObjects
Definition: cell.hpp:49