OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
cellborder.hpp
Go to the documentation of this file.
1 #ifndef OPENCS_VIEW_CELLBORDER_H
2 #define OPENCS_VIEW_CELLBORDER_H
3 
4 #include <cstddef>
5 
6 #include <osg/ref_ptr>
7 
8 namespace osg
9 {
10  class Group;
11  class PositionAttitudeTransform;
12 }
13 
14 namespace ESM
15 {
16  struct Land;
17 }
18 
19 namespace CSMWorld
20 {
21  class CellCoordinates;
22 }
23 
24 namespace CSVRender
25 {
26 
27  class CellBorder
28  {
29  public:
30 
31  CellBorder(osg::Group* cellNode, const CSMWorld::CellCoordinates& coords);
32  ~CellBorder();
33 
34  void buildShape(const ESM::Land& esmLand);
35 
36  private:
37 
38  static const int CellSize;
39  static const int VertexCount;
40 
41  size_t landIndex(int x, int y);
42  float scaleToWorld(int val);
43 
44  // unimplemented
45  CellBorder(const CellBorder&);
47 
48  osg::Group* mParentNode;
49  osg::ref_ptr<osg::PositionAttitudeTransform> mBaseNode;
50 
51  };
52 }
53 
54 #endif
Definition: cellborder.hpp:27
osg::Group * mParentNode
Definition: cellborder.hpp:48
Definition: loadland.hpp:20
static const int VertexCount
Definition: cellborder.hpp:39
CellBorder & operator=(const CellBorder &)
Definition: cellcoordinates.hpp:12
CellBorder(osg::Group *cellNode, const CSMWorld::CellCoordinates &coords)
Definition: cellborder.cpp:19
float scaleToWorld(int val)
Definition: cellborder.cpp:93
void buildShape(const ESM::Land &esmLand)
Definition: cellborder.cpp:34
size_t landIndex(int x, int y)
Definition: cellborder.cpp:88
static const int CellSize
Definition: cellborder.hpp:38
~CellBorder()
Definition: cellborder.cpp:29
osg::ref_ptr< osg::PositionAttitudeTransform > mBaseNode
Definition: cellborder.hpp:49