1 #ifndef OPENCS_VIEW_PAGEDWORLDSPACEWIDGET_H
2 #define OPENCS_VIEW_PAGEDWORLDSPACEWIDGET_H
6 #include "../../model/world/cellselection.hpp"
13 class SceneToolToggle;
14 class SceneToolToggle2;
28 std::map<CSMWorld::CellCoordinates, Cell *>
mCells;
43 const QModelIndex& bottomRight);
53 virtual void referenceAdded (
const QModelIndex& index,
int start,
int end);
55 virtual void pathgridDataChanged (
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
59 virtual void pathgridAdded (
const QModelIndex& parent,
int start,
int end);
96 virtual bool handleDrop (
const std::vector<CSMWorld::UniversalId>& data,
115 virtual void selectAll (
int elementMask);
123 virtual std::string
getCellId (
const osg::Vec3f& point)
const;
125 virtual Cell*
getCell(
const osg::Vec3d& point)
const;
127 virtual std::vector<osg::ref_ptr<TagBase> >
getSelection (
unsigned int elementMask)
130 virtual std::vector<osg::ref_ptr<TagBase> >
getEdited (
unsigned int elementMask)
133 virtual void setSubMode (
int subMode,
unsigned int elementMask);
136 virtual void reset (
unsigned int elementMask);
152 virtual void cellDataChanged (
const QModelIndex& topLeft,
const QModelIndex& bottomRight);
154 virtual void cellRemoved (
const QModelIndex& parent,
int start,
int end);
156 virtual void cellAdded (
const QModelIndex& index,
int start,
int end);
std::string mWorldspace
Definition: pagedworldspacewidget.hpp:29
virtual void selectAllWithSameParentId(int elementMask)
Definition: pagedworldspacewidget.cpp:641
static const struct @2 signals[]
void addCellSelection(int x, int y)
Definition: pagedworldspacewidget.cpp:401
virtual std::vector< osg::ref_ptr< TagBase > > getSelection(unsigned int elementMask) const
Definition: pagedworldspacewidget.cpp:676
Selection of cells in a paged worldspace.
Definition: cellselection.hpp:15
void loadEastCell()
Definition: pagedworldspacewidget.cpp:770
virtual void addVisibilitySelectorButtons(CSVWidget::SceneToolToggle2 *tool)
Definition: pagedworldspacewidget.cpp:120
virtual dropRequirments getDropRequirements(DropType type) const
Definition: pagedworldspacewidget.cpp:589
CSVWidget::SceneToolToggle2 * mControlElements
Definition: pagedworldspacewidget.hpp:30
virtual void cellDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: pagedworldspacewidget.cpp:742
void loadWestCell()
Definition: pagedworldspacewidget.cpp:780
virtual std::string getStartupInstruction()
Definition: pagedworldspacewidget.cpp:354
virtual void invertSelection(int elementMask)
Definition: pagedworldspacewidget.cpp:623
void moveCellSelection(int x, int y)
Definition: pagedworldspacewidget.cpp:417
virtual unsigned int getVisibilityMask() const
Definition: pagedworldspacewidget.cpp:609
virtual bool handleDrop(const std::vector< CSMWorld::UniversalId > &data, DropType type)
Definition: pagedworldspacewidget.cpp:560
PagedWorldspaceWidget(QWidget *parent, CSMDoc::Document &document)
Definition: pagedworldspacewidget.cpp:460
void cellSelectionChanged(const CSMWorld::CellSelection &selection)
bool adjustCells()
Definition: pagedworldspacewidget.cpp:24
virtual void referenceAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: pagedworldspacewidget.cpp:260
virtual void addEditModeSelectorButtons(CSVWidget::SceneToolMode *tool)
Definition: pagedworldspacewidget.cpp:128
void loadSouthCell()
Definition: pagedworldspacewidget.cpp:785
Definition: worldspacewidget.hpp:40
virtual void referenceableDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: pagedworldspacewidget.cpp:215
void addCellToSceneFromCamera(int offsetX, int offsetY)
Definition: pagedworldspacewidget.cpp:439
virtual void pathgridDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: pagedworldspacewidget.cpp:278
void removeCellFromScene(const CSMWorld::CellCoordinates &coordinates)
Definition: pagedworldspacewidget.cpp:389
virtual Cell * getCell(const osg::Vec3d &point) const
Definition: pagedworldspacewidget.cpp:661
virtual void cellRemoved(const QModelIndex &parent, int start, int end)
Definition: pagedworldspacewidget.cpp:750
CSMWorld::CellSelection mSelection
Definition: pagedworldspacewidget.hpp:27
virtual void pathgridAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: pagedworldspacewidget.cpp:310
Definition: pagedworldspacewidget.hpp:22
virtual void pathgridAdded(const QModelIndex &parent, int start, int end)
Definition: pagedworldspacewidget.cpp:332
virtual std::string getCellId(const osg::Vec3f &point) const
Definition: pagedworldspacewidget.cpp:650
const CSMWorld::CellSelection & getCellSelection() const
Definition: pagedworldspacewidget.cpp:546
void addCellToScene(const CSMWorld::CellCoordinates &coordinates)
Definition: pagedworldspacewidget.cpp:370
virtual void setSubMode(int subMode, unsigned int elementMask)
Definition: pagedworldspacewidget.cpp:710
Definition: cellcoordinates.hpp:12
void setCellSelection(const CSMWorld::CellSelection &selection)
Definition: pagedworldspacewidget.cpp:536
virtual void referenceableAdded(const QModelIndex &index, int start, int end)
Definition: pagedworldspacewidget.cpp:233
Definition: document.hpp:57
virtual void referenceAdded(const QModelIndex &index, int start, int end)
Definition: pagedworldspacewidget.cpp:269
void loadNorthCell()
Definition: pagedworldspacewidget.cpp:775
virtual void referenceDataChanged(const QModelIndex &topLeft, const QModelIndex &bottomRight)
Definition: pagedworldspacewidget.cpp:251
virtual void reset(unsigned int elementMask)
Erase all overrides and restore the visual representation to its true state.
Definition: pagedworldspacewidget.cpp:717
std::map< CSMWorld::CellCoordinates, Cell * > mCells
Definition: pagedworldspacewidget.hpp:28
virtual void referenceableAboutToBeRemoved(const QModelIndex &parent, int start, int end)
Definition: pagedworldspacewidget.cpp:224
virtual void cellAdded(const QModelIndex &index, int start, int end)
Definition: pagedworldspacewidget.cpp:757
void loadCameraCell()
Definition: pagedworldspacewidget.cpp:765
virtual void clearSelection(int elementMask)
Definition: pagedworldspacewidget.cpp:614
CSMDoc::Document & mDocument
Definition: pagedworldspacewidget.hpp:26
virtual CSVWidget::SceneToolToggle2 * makeControlVisibilitySelector(CSVWidget::SceneToolbar *parent)
Definition: pagedworldspacewidget.cpp:724
void useViewHint(const std::string &hint)
Decodes the the hint string to set of cell that are rendered.
Definition: pagedworldspacewidget.cpp:500
bool mDisplayCellCoord
Definition: pagedworldspacewidget.hpp:31
virtual ~PagedWorldspaceWidget()
Definition: pagedworldspacewidget.cpp:491
std::pair< int, int > getCoordinatesFromId(const std::string &record) const
Definition: pagedworldspacewidget.cpp:551
virtual void handleInteractionPress(const WorldspaceHitResult &hit, InteractionType type)
Definition: pagedworldspacewidget.cpp:148
virtual std::vector< osg::ref_ptr< TagBase > > getEdited(unsigned int elementMask) const
Definition: pagedworldspacewidget.cpp:693
virtual void selectAll(int elementMask)
Definition: pagedworldspacewidget.cpp:632