VR-Forces 4.5 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 
43  virtual void setVisible(bool isVisible) {}
44 
45  protected:
46 
48  osg::ref_ptr<osg::Node> loadNodeFile(DtModelDefinition& definition);
49 
50  protected:
51 
52  float myScale;
53 
54  };
55 
60  {
61  public:
62 
64  static void registerCreator(DtDe& de);
65 
68 
70  virtual DtModelInstance* create(DtDe& de);
71 
72  protected:
73 
75  };
76 }

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)