VR-Forces 4.3.1 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  const char * mapEffect(const char * diguy_effect_name);
47 
48  float getCharacterDrawDistance(){return myCharacterDrawDistance;}
49 
50  protected:
52  virtual void slot_windowDestroyed(DtWindow* window);
53 
55  virtual void slot_windowCreated(DtWindow* window);
56 
58  virtual void slot_reloadShader();
59 
61  virtual void slot_preDraw();
62 
64  virtual void slot_postDraw();
65 
66  protected:
67 
68  void updateScenario(double simTime);
69  void setComponentVisualizationMode(int mode);
70 
71  DtDiGuyScenario(DtDe& de);
72 
73  void create_diguy_scenario();
74 
75  void reload_config_info();
76 
78  diguyScenario* myScenario;
79 
80  osg::ref_ptr<osg::Group> myCharacterRoot;
85 
87 
89 
90  };
91 }

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)