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
vrfGuiCore
entityExtentVisualizer.h
Go to the documentation of this file.
1
/*********************************************************************
2
** Copyright (c) 2012 MaK Technologies, Inc.
3
** All rights reserved.
4
*********************************************************************/
5
/*********************************************************************
6
** $RCSfile: DtEntityExtentVisualizer.h,v $ $Revision: 1.1 $ $State: Exp $
7
*********************************************************************/
11
12
#pragma once
13
14
#include <
vrfGuiCore/vrfGuiCore.h
>
15
#include <
vrvCore/DtStateVisualizer.h
>
16
#include <vrvCore/DtSceneObjectAgent.hpp>
17
#include <matrix/vlVector.h>
18
#include <
vrvCore/DtShowHideContext.h
>
19
20
const
makVrv::DtShowHideContext::ShowHideContext
EntityExtentsHidden
= (
makVrv::DtShowHideContext::ShowHideContext
)(
makVrv::DtShowHideContext::UserBase
+ 10);
21
const
makVrv::DtShowHideContext::ShowHideContext
EntityExtentHiddenBySelection
= (
makVrv::DtShowHideContext::ShowHideContext
)(
makVrv::DtShowHideContext::UserBase
+ 11);
22
23
namespace
makVrv
24
{
25
class
DtModelAgent;
26
class
DtAttachableUpdaterAgent;
27
}
28
29
namespace
makVrf
30
{
33
class
DT_DLL_VRFGUICORE
DtEntityExtentVisualizer
:
public
makVrv::DtStateVisualizer
34
{
35
public
:
37
DtEntityExtentVisualizer
(
makVrv::DtBaseConnection
& simulation,
makVrv::DtStateListener
& listener,
38
int
modelSet);
39
41
virtual
~
DtEntityExtentVisualizer
();
42
44
virtual
void
setDimensions(
const
DtVector
& dim);
45
48
virtual
void
setOffset(
const
DtVector
& offset);
49
51
virtual
void
setColor(
float
r,
float
g,
float
b,
float
a);
52
54
virtual
void
setShowExtents(
bool
);
55
57
virtual
void
setShowOnlyIfSelected(
bool
);
58
bool
showOnlyIfSelected()
const
59
{
60
return
myShowOnlyIfSelected;
61
}
62
63
virtual
void
setVisible(
bool
yesNo);
64
66
virtual
void
setSelected(
bool
);
67
68
virtual
void
setLockUpdates(
bool
b);
69
bool
updatesLocked()
const
;
70
71
protected
:
72
virtual
void
createModelAgents();
73
74
virtual
void
destroyModelAgents();
75
76
virtual
void
setModelDefinitionForAgents();
77
79
virtual
makVrv::DtModelAgent* createExtentModelAgent() = 0;
80
81
protected
:
82
makVrv::DtModelAgent*
myEntityExtentModelAgent
;
83
makVrv::DtAttachableUpdaterAgent*
myUpdater
;
84
makVrv::DtSceneObjectAgent*
myExtentVisualizerAgent
;
85
float
myColor[4];
86
DtVector
myDimensions
;
87
DtVector
myOffset
;
88
bool
myShowOnlyIfSelected
;
89
90
bool
myLockUpdates
;
91
};
92
}
93
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
)