VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
vrvDiGuy
DtDiGuyModelInstance.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2008 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtDiGuyModelInstance.h,v $ $Revision: 1.15 $ $State: Exp $
7
******************************************************************************/
8
12
13
#ifndef DtDiGuyModelInstance_H_
14
#define DtDiGuyModelInstance_H_
15
16
#include <
vrvDiGuy/vrvDiGuy.h
>
17
#include <
vrvOsg/DtOsgModelInstance.h
>
18
19
#include <osg/MatrixTransform>
20
21
#include <list>
22
23
class
diguyCharacter;
24
25
namespace
makVrv
26
{
27
28
class
DtSceneObject;
29
32
class
DT_DLL_VRVDIGUY
DtDiGuyModelInstance
:
public
DtOsgModelInstance
33
{
34
public
:
35
36
//Let the creator class make instances.
37
friend
class
DtDiGuyModelInstanceCreator
;
38
40
virtual
~
DtDiGuyModelInstance
();
41
42
virtual
void
resetLink();
43
45
virtual
void
addToConnector(
DtOsgSceneConnector
* connector );
46
49
virtual
bool
removeFromConnector(
DtOsgSceneConnector
* connector );
50
53
virtual
bool
realize(
DtModelDefinition
& definition);
54
56
void
setObjectToMove(
DtSceneObject
*
object
);
57
59
diguyCharacter* character();
60
61
virtual
void
setVisible(
bool
isVisible);
62
65
virtual
void
updateBoundingBoxViaContents();
66
67
protected
:
68
69
void
destroyCharacter();
70
72
DtDiGuyModelInstance
(
DtDe
& de);
73
76
virtual
void
updateColorBlending();
77
78
protected
:
79
80
diguyCharacter*
myCharacter
;
81
osg::MatrixTransform*
myLastTransform
;
82
DtSceneObject
*
myLastObject
;
83
84
bool
myNodeVisible
;
85
bool
myCanBeRecycled
;
86
bool
myCastsShadows
;
87
bool
myReceivesShadows
;
88
};
89
92
class
DT_DLL_VRVDIGUY
DtDiGuyModelInstanceCreator
:
public
DtModelInstanceCreator
93
{
94
public
:
95
97
static
void
registerCreator(
DtDe
& de);
98
100
virtual
~
DtDiGuyModelInstanceCreator
();
101
103
virtual
DtModelInstance
* create(
DtDe
& de);
104
105
protected
:
106
107
DtDiGuyModelInstanceCreator
();
108
109
};
110
}
111
112
#endif
113
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
)