OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellarrow.hpp
Go to the documentation of this file.
1 #ifndef OPENCS_VIEW_CELLARROW_H
2 #define OPENCS_VIEW_CELLARROW_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 PositionAttitudeTransform;
13  class Group;
14 }
15 
16 namespace CSVRender
17 {
18  class CellArrow;
19 
20  class CellArrowTag : public TagBase
21  {
23 
24  public:
25 
26  CellArrowTag (CellArrow *arrow);
27 
28  CellArrow *getCellArrow() const;
29 
30  virtual QString getToolTip (bool hideBasics) const;
31  };
32 
33 
34  class CellArrow
35  {
36  public:
37 
38  enum Direction
39  {
44  };
45 
46  private:
47 
48  // not implemented
49  CellArrow (const CellArrow&);
51 
53  osg::Group* mParentNode;
54  osg::ref_ptr<osg::PositionAttitudeTransform> mBaseNode;
56 
57  void adjustTransform();
58 
59  void buildShape();
60 
61  public:
62 
63  CellArrow (osg::Group *cellNode, Direction direction,
64  const CSMWorld::CellCoordinates& coordinates);
65 
66  ~CellArrow();
67 
69 
70  Direction getDirection() const;
71  };
72 }
73 
74 #endif
Definition: cellarrow.hpp:34
Direction getDirection() const
Definition: cellarrow.cpp:192
Definition: cellarrow.hpp:20
Direction mDirection
Definition: cellarrow.hpp:52
Definition: cellarrow.hpp:41
CellArrow * mArrow
Definition: cellarrow.hpp:22
Definition: cellarrow.hpp:40
Direction
Definition: cellarrow.hpp:38
virtual QString getToolTip(bool hideBasics) const
Definition: cellarrow.cpp:24
~CellArrow()
Definition: cellarrow.cpp:182
CSMWorld::CellCoordinates getCoordinates() const
Definition: cellarrow.cpp:187
osg::Group * mParentNode
Definition: cellarrow.hpp:53
Definition: tagbase.hpp:12
CSMWorld::CellCoordinates mCoordinates
Definition: cellarrow.hpp:55
Definition: cellarrow.hpp:42
Definition: cellcoordinates.hpp:12
void adjustTransform()
Definition: cellarrow.cpp:57
CellArrowTag(CellArrow *arrow)
Definition: cellarrow.cpp:15
CellArrow(const CellArrow &)
osg::ref_ptr< osg::PositionAttitudeTransform > mBaseNode
Definition: cellarrow.hpp:54
CellArrow * getCellArrow() const
Definition: cellarrow.cpp:19
void buildShape()
Definition: cellarrow.cpp:89
Definition: cellarrow.hpp:43
CellArrow & operator=(const CellArrow &)