VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 
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 
double maxAmount() const
Definition: levelBarData.h:42
void setAmount(double amount)
Definition: levelBarData.h:43
const DtLevelBarData & operator=(const DtLevelBarData &orig)
Definition: levelBarData.h:33
DtLevelBarData(double amount=1, double maxAmount=100)
Definition: levelBarData.h:23
double myAmount
Definition: levelBarData.h:47
~DtLevelBarData()
Definition: levelBarData.h:31
double myMaxAmount
Definition: levelBarData.h:48
DtLevelBarData(const DtLevelBarData &orig)
Definition: levelBarData.h:27
Q_DECLARE_METATYPE(DtArticulatedPartEditDialogShdPtr)
void setMaxAmount(double maxAmount)
Definition: levelBarData.h:44
double amount() const
Definition: levelBarData.h:41
#define DT_DLL_VRFGUIOBJECTINFORMATIONQT
Contains DLL export macros.
Definition: vrfGuiObjectInformationQt.h:24
Stores the data for a level bar.
Definition: levelBarData.h:19

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)