OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellmarker.hpp
Go to the documentation of this file.
1 #ifndef OPENCS_VIEW_CELLMARKER_H
2 #define OPENCS_VIEW_CELLMARKER_H
3 
4 #include "tagbase.hpp"
5 
6 #include <osg/ref_ptr>
7 
8 #include "../../model/world/cellcoordinates.hpp"
9 
10 namespace osg
11 {
12  class AutoTransform;
13  class Group;
14 }
15 
16 namespace CSVRender
17 {
18  class CellMarker;
19 
20  class CellMarkerTag : public TagBase
21  {
22  private:
23 
25 
26  public:
27 
28  CellMarkerTag(CellMarker *marker);
29 
30  CellMarker *getCellMarker() const;
31  };
32 
34  class CellMarker
35  {
36  private:
37 
38  osg::Group* mCellNode;
39  osg::ref_ptr<osg::AutoTransform> mMarkerNode;
41  bool mExists;
42 
43  // Not implemented.
44  CellMarker(const CellMarker&);
46 
48  void buildMarker();
49 
51  void positionMarker();
52 
53  public:
54 
59  CellMarker(
60  osg::Group *cellNode,
61  const CSMWorld::CellCoordinates& coordinates,
62  const bool cellExists);
63 
64  ~CellMarker();
65  };
66 }
67 
68 #endif
Definition: cellmarker.hpp:20
~CellMarker()
Definition: cellmarker.cpp:89
void positionMarker()
Position marker at center of cell.
Definition: cellmarker.cpp:54
void buildMarker()
Build marker containing cell's coordinates.
Definition: cellmarker.cpp:21
osg::ref_ptr< osg::AutoTransform > mMarkerNode
Definition: cellmarker.hpp:39
CellMarker & operator=(const CellMarker &)
CellMarker * getCellMarker() const
Definition: cellmarker.cpp:16
osg::Group * mCellNode
Definition: cellmarker.hpp:38
Definition: tagbase.hpp:12
CellMarker * mMarker
Definition: cellmarker.hpp:24
Definition: cellcoordinates.hpp:12
CellMarkerTag(CellMarker *marker)
Definition: cellmarker.cpp:12
CSMWorld::CellCoordinates mCoordinates
Definition: cellmarker.hpp:40
bool mExists
Definition: cellmarker.hpp:41
Marker to display cell coordinates.
Definition: cellmarker.hpp:34
CellMarker(const CellMarker &)