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
vrvCore
DtCuboidStateVisualizer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2013 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
9
10
#pragma once
11
#include <
vrvCore/DtSceneObjectVisualizer.h
>
12
#include <vrvCore/DtAttachableCuboidModelAgent.hpp>
13
#include <
vrvCore/DtRemoteGraphicVisualizerAttributes.h
>
14
#include <
vrvCore/DtVisibilityAdapter.h
>
15
16
class
DtVector
;
17
class
DtTaitBryan;
18
19
namespace
makVrv
20
{
21
class
DtAttachableUpdaterAgent;
22
26
class
DT_DLL_VRVCORE
DtCuboidStateVisualizer
:
27
public
DtSceneObjectVisualizer
,
28
public
DtRemoteGraphicVisualizerAttributes
29
{
30
public
:
32
DtCuboidStateVisualizer
(
DtBaseConnection
& simulation,
33
DtStateListener
& listener,
int
modelSet);
34
36
virtual
~
DtCuboidStateVisualizer
();
37
39
virtual
void
setDimensions(
const
DtVector
& dim);
40
42
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
43
45
virtual
void
setFlashing(
bool
flashing);
46
49
virtual
void
setPosition(
const
DtVector
& pos);
50
52
virtual
void
setOrientation(
const
DtTaitBryan& orientation);
53
59
virtual
void
setAttached(
DtUniqueID
id
,
int
vtx,
double
percentage);
60
62
virtual
void
setHostId(
const
std::string&
id
,
int
vtx,
double
percentage);
63
65
virtual
const
DtStateVisualizer::TypeInfo
& typeInfo()
const
;
66
68
static
const
DtStateVisualizer::TypeInfo
& theTypeInfo();
69
70
protected
:
71
virtual
void
setVisible(
bool
yesNo);
72
73
virtual
void
createModelAgents();
74
75
virtual
void
destroyModelAgents();
76
77
virtual
void
setModelDefinitionForAgents();
78
79
protected
:
80
DtAttachableCuboidModelAgent*
myCuboidModelAgent
;
81
DtAttachableUpdaterAgent*
myAttachedUpdaterAgent
;
82
DtVisibilityAdapter<DtAttachableCuboidModelAgent>
*
myVisibilityAdapter
;
83
};
84
87
typedef
DtStateVisualizerCreatorTemplate<DtCuboidStateVisualizer>
88
DtCuboidStateVisualizerCreator
;
89
}
90
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
)