VR-Forces 4.3.1 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
vrvDiGuy
DtDiGuyModelInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#include <
vrvDiGuy/vrvDiGuy.h
>
11
12
#include <
vrvCore/DtModelInstance.h
>
13
14
#include <osg/MatrixTransform>
15
16
#include <
vrvOsg/DtOsgModelInstance.h
>
17
18
#include <list>
19
#include <
vrvDiGuy/DtDiGuyOsgGraphicsLink.h
>
20
class
diguyCharacter;
21
22
namespace
makVrv
23
{
24
25
class
DtSceneObject;
26
29
class
DT_DLL_VRVDIGUY
DtDiGuyModelInstance
:
public
DtOsgModelInstance
30
{
31
public
:
32
33
//Let the creator class make instances.
34
friend
class
DtDiGuyModelInstanceCreator
;
35
37
virtual
~
DtDiGuyModelInstance
();
38
41
virtual
bool
realize(
DtModelDefinition
& definition);
42
44
diguyCharacter* character();
45
46
virtual
void
setVisible(
bool
isVisible);
47
virtual
bool
getVisible
(){
return
myNodeVisible;}
48
51
virtual
void
updateBoundingBoxViaContents();
52
53
//this sets the final position post ground clamping/embarking transforms
54
virtual
void
setPosition(
const
DtVector
& pos);
55
56
//this sets the final Orientation post ground clamping/embarking transforms
57
virtual
void
setOrientation(
const
DtTaitBryan& ori);
58
59
osg::Node* sensorNode()
60
{
61
return
DtDiGuyOsgGraphicsLink::getDiGuyAttachGroup
();
62
}
63
64
const
osg::Node* sensorNode()
const
65
{
66
return
DtDiGuyOsgGraphicsLink::getDiGuyAttachGroup
();
67
}
68
69
protected
:
70
71
void
destroyCharacter();
72
74
DtDiGuyModelInstance
(
DtDe
& de);
75
76
protected
:
77
78
diguyCharacter*
myCharacter
;
79
80
bool
myNodeVisible
;
81
bool
myCanBeRecycled
;
82
bool
myCastsShadows
;
83
bool
myReceivesShadows
;
84
};
85
88
class
DT_DLL_VRVDIGUY
DtDiGuyModelInstanceCreator
:
public
DtModelInstanceCreator
89
{
90
public
:
91
93
static
void
registerCreator(
DtDe
& de);
94
96
virtual
~
DtDiGuyModelInstanceCreator
();
97
99
virtual
DtModelInstance
* create(
DtDe
& de);
100
101
protected
:
102
103
DtDiGuyModelInstanceCreator
();
104
105
};
106
}
Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)