1 #ifndef CSV_RENDER_PATHGRID_H
2 #define CSV_RENDER_PATHGRID_H
10 #include "../../model/world/cellcoordinates.hpp"
11 #include "../../model/world/idcollection.hpp"
12 #include "../../model/world/subcellcollection.hpp"
21 class PositionAttitudeTransform;
43 virtual QString
getToolTip (
bool hideBasics)
const;
62 const std::string&
getId()
const;
85 osg::ref_ptr<PathgridTag>
getTag()
const;
115 osg::ref_ptr<PathgridTag>
mTag;
129 unsigned short node2);
131 unsigned short node2);
Pathgrid * getPathgrid() const
Definition: pathgrid.cpp:38
bool mInterior
Definition: pathgrid.hpp:98
void createDragGeometry(const osg::Vec3f &start, const osg::Vec3f &end, bool valid)
Definition: pathgrid.cpp:577
void applyPosition(CSMWorld::CommandMacro &commands)
Definition: pathgrid.cpp:290
void addEdge(CSMWorld::CommandMacro &commands, const CSMWorld::Pathgrid &source, unsigned short node1, unsigned short node2)
Definition: pathgrid.cpp:633
void applyRemoveNodes(CSMWorld::CommandMacro &commands)
Definition: pathgrid.cpp:355
std::vector< unsigned short > NodeList
Definition: pathgrid.hpp:54
CSMWorld::SubCellCollection< CSMWorld::Pathgrid > & mPathgridCollection
Definition: pathgrid.hpp:95
const std::string & getId() const
Definition: pathgrid.cpp:99
void resetIndicators()
Definition: pathgrid.cpp:216
void invertSelected()
Definition: pathgrid.cpp:147
void selectAll()
Definition: pathgrid.cpp:114
virtual QString getToolTip(bool hideBasics) const
Definition: pathgrid.cpp:43
bool mChangeGeometry
Definition: pathgrid.hpp:104
void removeSelectedGeometry()
Definition: pathgrid.cpp:568
std::string mId
Definition: pathgrid.hpp:96
osg::ref_ptr< osg::Geometry > mSelectedGeometry
Definition: pathgrid.hpp:112
PathgridTag(Pathgrid *pathgrid)
Definition: pathgrid.cpp:33
void recreateGeometry()
Definition: pathgrid.cpp:479
osg::ref_ptr< osg::PositionAttitudeTransform > mBaseNode
Definition: pathgrid.hpp:109
void createGeometry()
Definition: pathgrid.cpp:505
void moveSelected(const osg::Vec3d &offset)
Definition: pathgrid.cpp:175
Definition: pathgrid.hpp:35
int clampToCell(int v)
Definition: pathgrid.cpp:667
void clearSelected()
Definition: pathgrid.cpp:169
bool mUseOffset
Definition: pathgrid.hpp:106
void removeGeometry()
Definition: pathgrid.cpp:484
const CSMWorld::CellCoordinates & getCoordinates() const
Definition: pathgrid.cpp:94
void toggleSelected(unsigned short node)
Definition: pathgrid.cpp:132
void setDragOrigin(unsigned short node)
Definition: pathgrid.cpp:183
void removePathgridGeometry()
Definition: pathgrid.cpp:559
Definition: commandmacro.hpp:11
Definition: pathgrid.hpp:50
CSMWorld::Data & mData
Definition: pathgrid.hpp:94
Definition: tagbase.hpp:12
unsigned short mDragOrigin
Definition: pathgrid.hpp:102
osg::Vec3d mMoveOffset
Definition: pathgrid.hpp:101
void update()
Definition: pathgrid.cpp:489
Definition: cellcoordinates.hpp:12
Wrapper for Pathgrid record.
Definition: pathgrid.hpp:19
CSMWorld::CellCoordinates mCoords
Definition: pathgrid.hpp:97
void applyRemoveEdges(CSMWorld::CommandMacro &commands)
Definition: pathgrid.cpp:436
void applyPoint(CSMWorld::CommandMacro &commands, const osg::Vec3d &worldPos)
Definition: pathgrid.cpp:225
NodeList mSelected
Definition: pathgrid.hpp:100
~Pathgrid()
Definition: pathgrid.cpp:89
osg::ref_ptr< osg::Geometry > mDragGeometry
Definition: pathgrid.hpp:113
void removeEdge(CSMWorld::CommandMacro &commands, const CSMWorld::Pathgrid &source, unsigned short node1, unsigned short node2)
const NodeList & getSelected() const
Definition: pathgrid.cpp:109
void applyEdges(CSMWorld::CommandMacro &commands, unsigned short node)
Definition: pathgrid.cpp:343
Pathgrid(CSMWorld::Data &data, osg::Group *parent, const std::string &pathgridId, const CSMWorld::CellCoordinates &coordinates)
Definition: pathgrid.cpp:51
osg::ref_ptr< PathgridTag > mTag
Definition: pathgrid.hpp:115
Pathgrid * mPathgrid
Definition: pathgrid.hpp:47
osg::ref_ptr< PathgridTag > getTag() const
Definition: pathgrid.cpp:474
bool mRemoveGeometry
Definition: pathgrid.hpp:105
int edgeExists(const CSMWorld::Pathgrid &source, unsigned short node1, unsigned short node2)
Definition: pathgrid.cpp:622
osg::Group * mParent
Definition: pathgrid.hpp:108
void applyEdge(CSMWorld::CommandMacro &commands, unsigned short node1, unsigned short node2)
Definition: pathgrid.cpp:334
bool isSelected() const
Definition: pathgrid.cpp:104
const CSMWorld::Pathgrid * getPathgridSource()
Definition: pathgrid.cpp:611
void setDragEndpoint(unsigned short node)
Definition: pathgrid.cpp:188
osg::ref_ptr< osg::Geometry > mPathgridGeometry
Definition: pathgrid.hpp:111
osg::ref_ptr< osg::Geode > mPathgridGeode
Definition: pathgrid.hpp:110
void createSelectedGeometry()
Definition: pathgrid.cpp:538