-
Notifications
You must be signed in to change notification settings - Fork 0
/
Options.h
95 lines (77 loc) · 2.57 KB
/
Options.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#ifndef OPTIONS_H
#define OPTIONS_H
#include <QTabWidget>
#include <QCheckBox>
#include "Point3D.h"
namespace Ui {
class Options;
}
class Options : public QTabWidget
{
Q_OBJECT
private:
Ui::Options *ui;
QCheckBox * checks[16];
QColor numberToColor(int index) const;
public:
explicit Options(QWidget *parent = nullptr);
~Options();
// accessor functions for Gravity Field
bool displayGravField() const;
bool gravPlaneGoesThroughCenterOfMass() const;
// function that returns three points that define a plane in 3D space.
void getGravityPlane(int &mode, int &planet1, int &planet2, int &planet3, int numberOfPlanets, int &checkedPlanets) const;
void setDisplayGravField(bool value);
void setEnableGravField(bool value);
bool transparentArrows() const;
bool arrowsAdjustLength() const;
int arrowSpacing() const;
int arrowLength() const;
int arrowTransparency() const;
int arrowSquareWidth() const;
// accessor functions for System
bool usePolar() const;
bool displayTrace() const;
int traceNumber() const;
bool systemCentered() const;
double systemVelocityX() const;
double systemVelocityY() const;
double systemVelocityZ() const;
Point3D systemVelocity() const;
void setUsePolar(bool newUsePolar);
void setTrace(bool newTrace);
void setTraceNumber(int newTraceNumber);
void setSystemCentered(bool newSystem);
void setSystemVelocityX(double newX);
void setSystemVelocityY(double newY);
void setSystemVelocityZ(double newY);
void setSystemVelocity(Point3D newSys);
// accessor functions for Display Options
bool displayCenterOfMass() const;
bool displayPlanets() const;
bool displayVelocity() const;
bool displayAccel() const;
QColor velocityColor() const;
QColor accelColor() const;
bool perspectiveView() const;
int getRotateSensitivity() const;
int getPanSensitivity() const;
bool enableMouseRotate() const;
bool enableMousePan() const;
// accessor functions for Relativity
bool newtonian2D() const;
bool newtonian3D() const;
bool deflection() const;
int deflectionSquareWidth() const;
int deflectionSpacing() const;
QColor relativityColor() const;
signals:
void somethingChanged();
void traceChanged(bool traceValue);
void displayTypeChanged();
public slots:
void check3DRadioButton();
void check2DRadioButton();
void checkRelativityRadioButton();
};
#endif // OPTIONS_H