1 #ifndef OPENCS_VIEW_CELL_H
2 #define OPENCS_VIEW_CELL_H
8 #include <boost/shared_ptr.hpp>
10 #include <osg/ref_ptr>
33 class CellCoordinates;
66 std::map<std::string, Object *>::iterator iter);
87 bool deleted =
false);
97 const QModelIndex& bottomRight);
113 bool referenceAdded (
const QModelIndex& parent,
int start,
int end);
135 std::vector<osg::ref_ptr<TagBase> >
getSelection (
unsigned int elementMask)
const;
137 std::vector<osg::ref_ptr<TagBase> >
getEdited (
unsigned int elementMask)
const;
139 void setSubMode (
int subMode,
unsigned int elementMask);
143 void reset (
unsigned int elementMask);
std::auto_ptr< CellBorder > mCellBorder
Definition: cell.hpp:52
bool addObjects(int start, int end)
Definition: cell.cpp:44
bool referenceableAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:146
void setCellArrows(int mask)
Definition: cell.cpp:345
bool referenceableDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: cell.cpp:133
std::string mId
Definition: cell.hpp:45
CSMWorld::CellCoordinates mCoordinates
Definition: cell.hpp:49
void pathgridModified()
Definition: cell.cpp:271
bool referenceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: cell.cpp:162
osg::ref_ptr< osg::Group > mCellNode
Definition: cell.hpp:46
Cell(CSMWorld::Data &data, osg::Group *rootNode, const std::string &id, bool deleted=false)
Definition: cell.cpp:73
bool removeObject(const std::string &id)
Definition: cell.cpp:24
void selectAllWithSameParentId(int elementMask)
Definition: cell.cpp:323
std::vector< osg::ref_ptr< TagBase > > getEdited(unsigned int elementMask) const
Definition: cell.cpp:407
bool referenceAdded(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:260
unsigned int mSubModeElementMask
Definition: cell.hpp:57
void setSubMode(int subMode, unsigned int elementMask)
Definition: cell.cpp:420
bool mDeleted
Definition: cell.hpp:55
void setSelection(int elementMask, Selection mode)
Definition: cell.cpp:281
std::auto_ptr< Terrain::TerrainGrid > mTerrain
Definition: cell.hpp:48
Definition: pathgrid.hpp:50
Selection
Definition: cell.hpp:75
void setCellMarker()
Set marker for this cell.
Definition: cell.cpp:363
CSMWorld::Data & mData
Definition: cell.hpp:44
bool isDeleted() const
Definition: cell.cpp:386
Definition: cellcoordinates.hpp:12
bool referenceAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: cell.cpp:236
int mSubMode
Definition: cell.hpp:56
std::auto_ptr< CellMarker > mCellMarker
Definition: cell.hpp:51
std::auto_ptr< CellArrow > mCellArrows[4]
Definition: cell.hpp:50
Pathgrid * getPathgrid() const
Definition: cell.cpp:128
std::vector< osg::ref_ptr< TagBase > > getSelection(unsigned int elementMask) const
Definition: cell.cpp:391
CSMWorld::CellCoordinates getCoordinates() const
Returns 0, 0 in case of an unpaged cell.
Definition: cell.cpp:381
std::auto_ptr< Pathgrid > mPathgrid
Definition: cell.hpp:54
void pathgridRemoved()
Definition: cell.cpp:276
~Cell()
Definition: cell.cpp:119
void reset(unsigned int elementMask)
Definition: cell.cpp:431
std::auto_ptr< CellWater > mCellWater
Definition: cell.hpp:53
std::map< std::string, Object * > mObjects
Definition: cell.hpp:47