VR-Forces 4.5 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
vrfGuiObjectInformationQt
levelBarData.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 2013 MAK Technologies, Inc.
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#pragma once
10
11
#include <QMetaType>
12
13
#include <
vrfGuiObjectInformationQt/vrfGuiObjectInformationQt.h
>
14
namespace
makVrf
15
{
16
namespace
makVrfGuiObjectInformationQt
17
{
19
class
DT_DLL_VRFGUIOBJECTINFORMATIONQT
DtLevelBarData
20
{
21
public
:
22
23
DtLevelBarData
(
double
amount = 1,
double
maxAmount = 100)
24
: myAmount(amount)
25
, myMaxAmount(maxAmount) {}
26
27
DtLevelBarData
(
const
DtLevelBarData
& orig)
28
: myAmount(orig.amount())
29
, myMaxAmount(orig.maxAmount()) {}
30
31
~DtLevelBarData
() {}
32
33
const
DtLevelBarData
& operator=(
34
const
DtLevelBarData
& orig)
35
{
36
myAmount = orig.
amount
();
37
myMaxAmount = orig.
maxAmount
();
38
return
*
this
;
39
}
40
41
double
amount
()
const
{
return
myAmount; }
42
double
maxAmount
()
const
{
return
myMaxAmount; }
43
void
setAmount
(
double
amount) { myAmount = amount; }
44
void
setMaxAmount
(
double
maxAmount) { myMaxAmount = maxAmount; }
45
46
private
:
47
double
myAmount
;
48
double
myMaxAmount
;
49
};
50
}
51
}
52
53
Q_DECLARE_METATYPE
(
makVrf::makVrfGuiObjectInformationQt::DtLevelBarData
)
54
Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (
www.mak.com
)