VR-Forces 4.1 Class Documentation
Home
Modules
Namespaces
Classes
Files
Examples
Behavior Models
File List
File Members
include
entityEditorImpl
uiPositionElement.h
Go to the documentation of this file.
1
/*******************************************************************************
2
** Copyright (c) 2007 MAK Technologies, Inc.
3
** All rights reserved.
4
*******************************************************************************/
5
/*******************************************************************************
6
** $RCSfile: uiPositionElement.h,v $ $Revision: 1.2 $ $State: Exp $
7
*******************************************************************************/
8
11
13
14
#ifndef uiPositionElement_h
15
#define uiPositionElement_h
16
17
#include "
entityEditorImpl/uiFrameElement.h
"
18
#include "
vrfutil/rwInt.h
"
19
#include "
vrfutil/rwReal.h
"
20
21
#include <matrix/vlVector.h>
22
23
class
QDoubleValidator;
24
class
QLineEdit
;
25
class
QLabel
;
26
class
DtRwVector
;
27
30
31
#include "
entityEditorImpl/entityEditorImplDefines.h
"
32
33
class
DT_DLL_entityeditorimpl
DtUiPositionElement
:
public
DtUiFrameElement
34
{
35
public
:
36
38
DtUiPositionElement
39
(
40
const
DtString
& name,
41
DtReaderWriterRegistry
*
const
parentRegistry = NULL
42
);
43
45
virtual
~
DtUiPositionElement
();
46
48
DtUiPositionElement
(
const
DtUiPositionElement
& orig);
49
51
DtUiPositionElement
&
operator=
(
const
DtUiPositionElement
& orig);
52
53
virtual
QWidget
*
createLabelWidget
(
QWidget
* parent) {
return
0;};
54
virtual
QWidget
*
createControls
(
QWidget
*);
55
virtual
void
setFromParameters
(
DtReaderWriter
* parentRw);
56
57
virtual
const
DtString
& parameterName()
const
;
58
virtual
const
DtString
& relativeTo()
const
;
59
virtual
void
processUiEvent
(
const
DtUiElementEvent
&);
60
61
protected
:
62
virtual
void
elementChanged
();
63
virtual
void
decorateElement
();
64
65
virtual
void
setModifiedFont(
QLabel
* l,
bool
modified);
66
virtual
void
setPosition(
DtRwVector
* sourceVec);
67
68
virtual
void
sendEvent();
69
70
virtual
DtReaderWriterRegistryData
*
createBackup
(
const
DtString
& backupName);
71
72
virtual
DtVector
relativePosition(
const
DtString
&)
const
;
73
virtual
void
setFromSystemParameterData
(
const
DtSystemParameterData
* data);
74
75
virtual
void
deleteBackup
(
const
DtString
& backupName);
76
77
protected
:
78
virtual
DtUiElement
*
clone
();
79
80
protected
:
81
QDoubleValidator*
myValidator
;
82
83
DtRwInt
myDecimals
;
84
QLabel
*
myForwardLabel
;
85
QLabel
*
myRightLabel
;
86
QLabel
*
myUpLabel
;
87
QLineEdit
*
myForwardLineEdit
;
88
QLineEdit
*
myRightLineEdit
;
89
QLineEdit
*
myUpLineEdit
;
90
double
myForwardDiff
;
91
double
myRightDiff
;
92
double
myUpDiff
;
93
94
DtString
myRelativeTo
;
95
DtString
myParameterName
;
96
97
typedef
std::map<DtString, DtVector>
RelativePositions
;
98
RelativePositions
myRelativePositions
;
99
100
bool
mySendingEvent
;
101
};
102
103
#endif
Document ID: Generated on Tue Jan 29 18:21:16 EST 2013 from SVN revision 123193
Copyright © 2005-2013 VT MÄK Inc. All Rights Reserved (
www.mak.com
)