VR-Forces 4.3 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
DtInstanceDofProcessor.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2014 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
11
#include <
vrvOsg/vrvOsg.h
>
12
#include <
vrvOsg/DtInstanceManager.h
>
13
#include <
vrvOsg/DtInstanceProcessor.h
>
14
15
namespace
makVrv
16
{
19
class
DT_DLL_VRVOSG
DtInstanceDofProcessor
:
public
DtInstanceProcessor
20
{
21
public
:
23
DtInstanceDofProcessor
(
DtInstanceManager
& instanceMgr);
24
26
virtual
~
DtInstanceDofProcessor
();
27
29
virtual
void
processRange(
unsigned
int
instanceStride,
unsigned
int
instanceOffset,
unsigned
int
instanceCount);
30
31
protected
:
32
34
struct
DofUpdateStorage
35
{
36
InstanceMatrixVal
matTmp[16];
37
osg::Quat
quat
;
38
osg::Quat
quatTemp
;
39
InstanceMatrix
mat
;
40
std::vector<InstanceMatrix>
matStack
;
41
std::vector<unsigned int>
childCountStack
;
42
};
43
45
void
updateDofRange(
unsigned
int
instanceStride,
unsigned
int
instanceOffset,
unsigned
int
instanceCount);
46
48
bool
isRangeVisible(
unsigned
int
offset,
unsigned
int
count);
49
53
void
updateDofs(
DofUpdateStorage
& localStorage,
InstanceMatrix
& baseSpatial,
54
unsigned
int
templateIx,
const
ArrayRange
& dofRange,
unsigned
int
drawableOffset);
55
56
protected
:
57
DtInstanceManager
&
myInstanceManager
;
58
};
59
}
Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (
www.mak.com
)