VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
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
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
58
bool
myGroundClampable
;
59
bool
myAlwaysUpright
;
60
float
myScale
;
61
62
};
63
66
class
DT_DLL_VRVOSG
DtOsgSimpleModelInstanceCreator
:
67
public
DtModelInstanceCreator
68
{
69
public
:
70
72
static
void
registerCreator(
DtDe
& de);
73
75
virtual
~
DtOsgSimpleModelInstanceCreator
();
76
78
virtual
DtModelInstance
* create(
DtDe
& de);
79
80
protected
:
81
82
DtOsgSimpleModelInstanceCreator
();
83
};
84
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)