VR-Forces Development_Version 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
DtOsgSimpleModel.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2015 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
9
10
#pragma once
11
12
#include <
vrvOsg/vrvOsg.h
>
13
#include <
vrvCore/DtModel.h
>
14
#include <
vrvCore/DtUniqueID.h
>
15
#include <matrix/vlVector.h>
16
#include <matrix/vlTaitBryan.h>
17
18
#include <osg/MatrixTransform>
19
namespace
osg
20
{
21
class
Group
;
22
}
23
24
namespace
makVrv
25
{
26
class
DtDe;
27
class
DtOsgSceneConnector;
28
34
class
DT_DLL_VRVOSG
DtOsgSimpleModel
:
public
DtModel
35
{
36
public
:
37
DtOsgSimpleModel
(
DtDe
& de,
DtUniqueID
&
id
);
38
39
virtual
~
DtOsgSimpleModel
();
40
41
//@name Distributed Interface
43
45
virtual
void
setModelDefinition(
const
std::string& str);
46
virtual
void
setVisible(
bool
visible);
47
virtual
void
setPosition(
int
vtx,
const
DtVector
& position );
48
virtual
void
setOrientation(
int
vtx,
const
DtTaitBryan& orientation );
50
51
//@name Local Interface
53
virtual
void
addToScene(
const
DtUniqueID
& sceneObjectId,
int
modelSet,
54
int
visualizerType );
55
56
// Add to scene as a prop ( no modelset / visualizer type specified )
57
virtual
void
addToSceneAsProp(
const
DtUniqueID
& sceneObjectId );
58
virtual
void
removeFromScene();
59
63
virtual
void
setIsSupportModel(
bool
isSupport);
64
66
virtual
void
getBoundingBoxComponents(
DtVector
& minimum,
DtVector
& maximum );
68
70
virtual
void
setElementId(
DtUniqueID
id
);
71
73
virtual
void
enableColorBlending(
bool
b );
74
76
virtual
void
setBlendColor(
float
r,
float
g,
float
b,
float
a);
77
78
protected
:
81
virtual
void
calculateInstancedBounds(
double
& radius,
DtVector
& center );
82
83
protected
:
88
class
BoundingBoxCache
:
public
DtVirtualBaseClass
89
{
90
public
:
91
virtual
~
BoundingBoxCache
();
92
DtVector
boundMin
;
93
DtVector
boundMax
;
94
};
95
96
DtOsgSceneConnector
*
mySceneConnector
;
97
bool
myIsInstanced
;
98
std::string
myModelDefinition
;
99
DtUniqueID
mySceneObjectId
;
100
bool
myInitialPositionSet
;
101
DtVector
mySetPosition
;
102
bool
myInitialOrientationSet
;
103
DtTaitBryan
mySetOrientation
;
104
DtVector
myBoundMin
, myBoundMax;
105
};
106
}
Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (
www.mak.com
)