VR-Forces 4.1.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
examples
exampleRangeLine
DtAttachableRangeTextUpdater.h
Go to the documentation of this file.
1
/*****************************************************************************
2
* Copyright (c) 2011 MAK Technologies, Inc.
3
* All rights reserved.
4
*****************************************************************************/
5
/*****************************************************************************
6
* $RCSfile: DtAttachableRangeTextUpdater.h,v $ $Revision: 1.21 $ $State: Exp $
7
*****************************************************************************/
8
12
13
#pragma once
14
15
#include <
vrvCore/vrvCore.h
>
16
17
#include <
vrvCore/DtAttachableUpdater.h
>
18
19
#include <
vrvCore/DtUniqueID.h
>
20
21
#include <matrix/vlVector.h>
22
23
namespace
makVrv
24
{
25
class
DtDe;
26
class
DtWidgetLabel;
27
}
28
29
namespace
exampleRangeLine
30
{
31
35
class
DtAttachableRangeTextUpdater
:
public
makVrv::DtAttachableUpdater
36
{
37
protected
:
38
41
struct
RangePointInformation
42
{
43
makVrv::DtUniqueID
id
;
44
makVrv::DtSceneObject
*
sceneObject
;
45
makVrv::DtUpdater*
updater
;
46
DtVector
position
;
47
};
48
49
public
:
50
52
DtAttachableRangeTextUpdater
(
makVrv::DtDe
& de,
makVrv::DtUniqueID
id
);
53
55
virtual
~DtAttachableRangeTextUpdater
();
56
58
virtual
void
update
(
double
simTime );
59
60
public
:
62
virtual
void
setRangeFrom
(
makVrv::DtUniqueID
fromID );
63
65
virtual
void
setRangeFrom
(
const
DtVector
& fromPoint );
66
68
virtual
void
setRangeTo
(
makVrv::DtUniqueID
toID );
69
71
virtual
void
setRangeTo
(
const
DtVector
& toPoint );
72
73
virtual
void
updateWidgetLabel
(
makVrv::DtWidgetLabel
* widgetLabel,
double
distanceInMeters );
74
76
virtual
DtVector
position
(
const
RangePointInformation
&,
double
simTime )
const
;
77
78
protected
:
79
virtual
void
cleanup
(
RangePointInformation
&,
bool
isFrom );
80
81
virtual
void
slot_attachedUpdaterToBeDeleted
(
const
makVrv::DtUniqueID
&
id
,
bool
isFrom );
82
virtual
void
slot_attachedSceneObjectToBeDeleted
(
const
makVrv::DtUniqueID
&
id
,
bool
isFrom );
83
84
protected
:
85
86
RangePointInformation
myRangeFrom
;
87
RangePointInformation
myRangeTo
;
88
89
};
90
91
}
Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (
www.mak.com
)