VR-Forces 4.5 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
vrvOsg
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
>
12
#include <
vrvOsg/DtOsgModelInstance.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
24
class
DT_DLL_VRVOSG
DtOsgSimpleModelInstance
:
public
DtOsgModelInstance
25
{
26
public
:
27
29
DtOsgSimpleModelInstance
(
DtDe
& de);
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
58
class
DT_DLL_VRVOSG
DtOsgSimpleModelInstanceCreator
:
59
public
DtModelInstanceCreator
60
{
61
public
:
62
64
static
void
registerCreator(
DtDe
& de);
65
67
virtual
~
DtOsgSimpleModelInstanceCreator
();
68
70
virtual
DtModelInstance
* create(
DtDe
& de);
71
72
protected
:
73
74
DtOsgSimpleModelInstanceCreator
();
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
)