VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDiGuyOsgGraphicsShape.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #include <vrvDiGuy/vrvDiGuy.h>
11 
12 #include <diguyGraphicsShape.h>
13 
14 #include <osg/Switch>
15 #include <osg/LOD>
16 #include <osg/Geode>
17 
18 #include <osgEarth/ShaderUtils>
19 
20 namespace makVrv
21 {
25 {
26 public:
28  DtDiGuyOsgGraphicsShape(void* internal_data);
29 
31  virtual ~DtDiGuyOsgGraphicsShape();
32 
36  virtual void build();
37 
41  virtual void unbuild();
42 
46  virtual void show();
47 
51  virtual void hide();
52 
54  virtual void set_graphics_lod_ranges(float* lodRanges);
55 
59  virtual void update();
60 
63 
64  std::vector<osg::Geode*> m_geodes;
65 
66 protected:
67  osg::ref_ptr<osg::Switch> mySwitchNode;
68  osg::ref_ptr<osg::LOD> myLodNode;
69 
71  static bool UsePixelLods;
72 
73  //osg::ref_ptr<osg::Uniform> myUniformLinkMatrices;
74  osg::ref_ptr<osg::Uniform> myUniformLinkColor;
75  osg::ref_ptr<osg::StateSet> myStateSet;
76  osg::ref_ptr<osg::Uniform> myUniformLinkMatrices;
77  osg::ref_ptr<osg::Uniform> myUniformLinkMatricesAlt;
78 };
79 }

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)