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
vrfGuiCore
entityExtentVisualizer.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 <
vrfGuiCore/vrfGuiCore.h
>
13
#include <
vrvCore/DtStateVisualizer.h
>
14
#include <vrvCore/DtSceneObjectAgent.hpp>
15
#include <matrix/vlVector.h>
16
#include <
vrvCore/DtShowHideContext.h
>
17
18
const
makVrv::DtShowHideContext::ShowHideContext
EntityExtentsHidden
= (
makVrv::DtShowHideContext::ShowHideContext
)(
makVrv::DtShowHideContext::UserBase
+ 10);
19
const
makVrv::DtShowHideContext::ShowHideContext
EntityExtentHiddenBySelection
= (
makVrv::DtShowHideContext::ShowHideContext
)(
makVrv::DtShowHideContext::UserBase
+ 11);
20
21
namespace
makVrv
22
{
23
class
DtModelAgent;
24
class
DtAttachableUpdaterAgent;
25
}
26
27
namespace
makVrf
28
{
31
class
DT_DLL_VRFGUICORE
DtEntityExtentVisualizer
:
public
makVrv::DtStateVisualizer
32
{
33
public
:
35
DtEntityExtentVisualizer
(
makVrv::DtBaseConnection
& simulation,
makVrv::DtStateListener
& listener,
36
int
modelSet);
37
39
virtual
~
DtEntityExtentVisualizer
();
40
42
virtual
void
setDimensions(
const
DtVector
& dim);
43
46
virtual
void
setOffset(
const
DtVector
& offset);
47
49
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
50
52
virtual
void
setShowExtents(
bool
);
53
55
virtual
void
setShowOnlyIfSelected(
bool
);
56
bool
showOnlyIfSelected()
const
57
{
58
return
myShowOnlyIfSelected;
59
}
60
61
virtual
void
setVisible(
bool
yesNo);
62
64
virtual
void
setSelected(
bool
);
65
66
protected
:
67
virtual
void
createModelAgents();
68
69
virtual
void
destroyModelAgents();
70
71
virtual
void
setModelDefinitionForAgents();
72
74
virtual
makVrv::DtModelAgent* createExtentModelAgent() = 0;
75
76
protected
:
77
makVrv::DtModelAgent*
myEntityExtentModelAgent
;
78
makVrv::DtAttachableUpdaterAgent*
myUpdater
;
79
makVrv::DtSceneObjectAgent*
myExtentVisualizerAgent
;
80
float
myColor[4];
81
DtVector
myDimensions
;
82
DtVector
myOffset
;
83
bool
myShowOnlyIfSelected
;
84
};
85
}
86
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
)