VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 bool cloneInstance(DtModelDefinition& definition);
44 
47  virtual void setVisible(bool isVisible) {}
48 
50  virtual osg::Node* getOrLoadFromDefinition(DtModelDefinition& definition);
51 
52  protected:
53 
54  float myScale;
55 
56  };
57 
62  {
63  public:
64 
66  static void registerCreator(DtDe& de);
67 
70 
72  virtual DtModelInstance* create(DtDe& de);
73 
74  protected:
75 
77  };
78 }
The base class for all model instances.
Definition: DtModelInstance.h:39
float myScale
Definition: DtOsgSimpleModelInstance.h:54
#define DT_DLL_VRVOSG
Definition: vrvOsg.h:23
A model definition Interaction any number of named parameters, and also can be used to store cached d...
Definition: DtModelDefinition.h:33
Contains makVrv::DtOsgModelInstance class.
A Creator for the makVrv::DtOsgSimpleModelInstance class.
Definition: DtOsgSimpleModelInstance.h:60
The base class for simple OSG based model instances.
Definition: DtOsgModelInstance.h:72
A simple OSG model instance.
Definition: DtOsgSimpleModelInstance.h:24
The polymorphic creator for the DtModelInstance.
Definition: DtModelInstance.h:148
Contains DLL export macros.
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
virtual void setVisible(bool isVisible)
Set whether the model is visible or not.
Definition: DtOsgSimpleModelInstance.h:47

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)