VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
DtOsgSimpleModelInstance.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 #include <vrvOsg/vrvOsg.h>
13 #include <osg/ref_ptr>
14 #include <osg/Switch>
15 #include <osg/MatrixTransform>
16 #include <osg/PositionAttitudeTransform>
17 
18 namespace makVrv
19 {
20  class DtOsgRenderer;
21 
25  {
26  public:
27 
30 
32  DtOsgSimpleModelInstance(DtDe& de, osg::Node* rootNode);
33 
35  virtual ~DtOsgSimpleModelInstance();
36 
39  virtual bool realize(DtModelDefinition& definition);
40 
42  virtual bool groundClampable();
43 
45  virtual bool alwaysUpright();
46 
49  virtual void setVisible(bool isVisible) {}
50 
51  protected:
52 
54  osg::ref_ptr<osg::Node> loadNodeFile(DtModelDefinition& definition);
55 
56  protected:
57 
60  float myScale;
61 
62  };
63 
68  {
69  public:
70 
72  static void registerCreator(DtDe& de);
73 
76 
78  virtual DtModelInstance* create(DtDe& de);
79 
80  protected:
81 
83  };
84 }

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)