OpenIndy-Core  0.2.0.43
scalarentityangle.h
Go to the documentation of this file.
1 #ifndef SCALARENTITYANGLE_H
2 #define SCALARENTITYANGLE_H
3 
4 #include <QObject>
5 #include <QtXml>
6 
7 #include "geometry.h"
8 
9 namespace oi{
10 
15 {
16  Q_OBJECT
17 
18 public:
19  ScalarEntityAngle(const bool &isNominal, QObject *parent = 0);
20  ScalarEntityAngle(const bool &isNominal, const double &angle, QObject *parent = 0);
21 
22  ScalarEntityAngle(const ScalarEntityAngle &copy, QObject *parent = 0);
23 
24  ScalarEntityAngle &operator=(const ScalarEntityAngle &copy);
25 
27 
28  //########################################
29  //order of unknown parameters (Qxx-matrix)
30  //########################################
31 
33  unknownAngle = 0
34  };
35 
36  //###########################
37  //get or set angle parameters
38  //###########################
39 
40  const double &getAngle() const;
41 
42  void setAngle(const double &angle);
43 
44  //#############################
45  //get or set unknown parameters
46  //#############################
47 
48  virtual QMap<GeometryParameters, QString> getUnknownParameters(const QMap<DimensionType, UnitType> &displayUnits,
49  const QMap<DimensionType, int> &displayDigits) const;
50  virtual void setUnknownParameters(const QMap<GeometryParameters, double> &parameters);
51 
52  //###########################
53  //reexecute the function list
54  //###########################
55 
56  void recalc();
57 
58  //#################
59  //save and load XML
60  //#################
61 
62  QDomElement toOpenIndyXML(QDomDocument &xmlDoc) const;
63  bool fromOpenIndyXML(QDomElement &xmlElem);
64 
65  //###############
66  //display methods
67  //###############
68 
69  QString getDisplayAngle(const UnitType &type, const int &digits, const bool &showDiff = false) const;
70 
71 private:
72 
73  //################
74  //angle attributes
75  //################
76 
77  double angle;
78 
79 };
80 
81 }
82 
83 #endif // SCALARENTITYANGLE_H
The ScalarEntityAngle class.
Definition: scalarentityangle.h:14
Definition: coordinatesystem.h:15
The Geometry class.
Definition: geometry.h:26
UnitType
Definition: types.h:354
AngleUnknowns
Definition: scalarentityangle.h:32
#define OI_CORE_EXPORT
Definition: types.h:11