mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-11 09:36:37 +00:00
49 lines
1.1 KiB
C++
49 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
|