VR-Vantage API Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Tutorials
File List
File Members
include
vrvCore
DtEntityFacade.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2011 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
/******************************************************************************
6
** $RCSfile: DtEntityFacade.h,v $ $Revision: 1.68 $ $State: Exp $
7
******************************************************************************/
8
12
13
#pragma once
14
#include <
vrvCore/vrvCore.h
>
15
#include <
vrvCore/DtEntity3dFacade.h
>
16
#include <
vrvCore/DtEntity2dFacade.h
>
17
#include <
vrvCore/DtModelSetRealizationManager.h
>
18
19
namespace
makVrv
20
{
25
class
DtEntityFacade
26
{
27
public
:
28
30
DtEntityFacade
(
DtAgentManagerInterface
& sceneInterface,
DtElementID
id
,
31
const
DtModelSetRealizationManager::ModelSetRealizations
& modelSets,
32
bool
distribute =
false
);
33
35
virtual
~DtEntityFacade
();
36
40
41
43
virtual
void
setVisible
(
bool
visible
);
44
46
virtual
bool
visible
()
const
;
47
49
virtual
DtElementID
elementId
()
const
;
50
51
const
DtEntity3dFacade
*
findFacadeFor3d
()
const
;
52
DtEntity3dFacade
*
findFacadeFor3d
();
53
54
const
DtEntity3dFacade
*
findFacadeForColorized
()
const
;
55
DtEntity3dFacade
*
findFacadeForColorized
();
56
57
const
DtEntity2dFacade
*
findFacadeFor2d
()
const
;
58
DtEntity2dFacade
*
findFacadeFor2d
();
59
61
64
65
69
virtual
void
setPosition
(
const
DtVector&
position
);
70
76
virtual
DtVector
position
()
const
;
77
81
virtual
void
setVelocity
(
const
DtVector&
velocity
);
82
87
virtual
DtVector
velocity
()
const
;
88
90
virtual
void
setAcceleration
(
const
DtVector&
acceleration
);
91
96
virtual
DtVector
acceleration
()
const
;
97
99
virtual
void
setOrientation
(
const
DtTaitBryan&
orientation
);
100
102
virtual
DtTaitBryan
orientation
()
const
;
103
105
virtual
void
setAngularVelocity
(
const
DtVector&
angularVelocity
);
106
108
virtual
DtVector
angularVelocity
()
const
;
109
111
115
116
119
virtual
void
setDeadReckoningEnabled
(
bool
position,
bool
velocity,
120
bool
orientation);
121
123
virtual
void
setSmoothingEnabled
(
bool
enabled);
124
126
virtual
void
setSmoothingPeriod
(
float
period);
127
130
virtual
void
setGroundClampingMode
(
131
DtGroundClampingUpdater::GroundClampingMode
mode);
132
134
135
protected
:
136
137
DtElementID
myElementId
;
138
139
DtEntity3dFacade
*
my3dFacade
;
140
DtEntity3dFacade
*
myColorizedFacade
;
141
DtEntity2dFacade
*
my2dFacade
;
142
};
143
}
144
145
#define DtEntityFacade_INL_
146
#include "
DtEntityFacade.inl
"
147
#undef DtEntityFacade_INL_
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)