1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-01-16 00:49:54 +00:00
openmw-tes3mp/apps/opencs/view/render/cellmarker.hpp
Rob Cutmore a34a08c212 Render cell markers
Adds rendering of cell markers. Markers are displayed at center of
cell and contain cell's coordinates.
2016-02-07 13:52:18 -05:00

48 lines
1.1 KiB
C++

#ifndef OPENCS_VIEW_CELLMARKER_H
#define OPENCS_VIEW_CELLMARKER_H
#include <osg/ref_ptr>
#include "../../model/world/cellcoordinates.hpp"
namespace osg
{
class AutoTransform;
class Group;
}
namespace CSVRender
{
/// \brief Marker to display cell coordinates.
class CellMarker
{
private:
osg::Group* mCellNode;
osg::ref_ptr<osg::AutoTransform> mMarkerNode;
CSMWorld::CellCoordinates mCoordinates;
// Not implemented.
CellMarker(const CellMarker&);
CellMarker& operator=(const CellMarker&);
/// \brief Build marker containing cell's coordinates.
void buildMarker();
/// \brief Position marker above center of cell.
void positionMarker();
public:
/// \brief Constructor.
/// \param cellNode Cell to create marker for.
/// \param coordinates Coordinates of cell.
CellMarker(
osg::Group *cellNode,
const CSMWorld::CellCoordinates& coordinates);
~CellMarker();
};
}
#endif