VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtDiGuyScenario.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
8 
9 #pragma once
10 #include <vrvDiGuy/vrvDiGuy.h>
12 
13 #include <osg/Group>
14 
15 class diguyScenario;
16 
17 namespace makVrv
18 {
19  class DtDe;
20  class DtWindow;
21 
25  {
26  public:
27 
29  static DtDiGuyScenario& instance(DtDe& de);
30 
32  virtual ~DtDiGuyScenario();
33 
35  diguyScenario& scenario();
36 
37  void clearScene();
38 
40  virtual osg::Node* characterRoot();
41 
42  int get_use_guides(){return m_use_guides;}
43  float get_guide_sync_gain(){return m_guide_sync_gain;}
44  int get_use_instancing(){return m_use_instancing;}
45 
46  protected:
48  virtual void slot_windowDestroyed(DtWindow* window);
49 
51  virtual void slot_windowCreated(DtWindow* window);
52 
54  virtual void slot_reloadShader();
55 
56  protected:
57 
58  void updateScenario(double simTime);
59  void setComponentVisualizationMode(int mode);
60 
61  DtDiGuyScenario(DtDe& de);
62 
63  void create_diguy_scenario();
64 
65  void reload_config_info();
66 
68  diguyScenario* myScenario;
69 
70  osg::ref_ptr<osg::Group> myCharacterRoot;
76  };
77 }

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)