VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 
14 namespace makVrf
15 {
16  namespace makVrfGuiObjectInformationQt
17  {
20  {
21  public:
22 
23  DtLevelBarData(double amount = 1, double maxAmount = 100)
24  : myAmount(amount)
25  , myMaxAmount(maxAmount) {}
26 
28  : myAmount(orig.amount())
29  , myMaxAmount(orig.maxAmount()) {}
30 
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 
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)