-
Notifications
You must be signed in to change notification settings - Fork 1
/
visualsettingsitem.h
68 lines (62 loc) · 2.16 KB
/
visualsettingsitem.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
/*!
* \file visualsettingsitem.h
* \author Simon Coakley
* \date 2012
* \copyright Copyright (c) 2012 University of Sheffield
* \brief Header file for visual settings item
*/
#ifndef VISUALSETTINGSITEM_H_
#define VISUALSETTINGSITEM_H_
#include <QString>
#include <QColor>
#include "./shape.h"
#include "./position.h"
#include "./condition.h"
#include "./ruleagent.h"
#include "./dimension.h"
class VisualSettingsItem {
public:
VisualSettingsItem();
VisualSettingsItem(QString agentType, Condition condition,
Position x, Position y, Position z, Shape shape,
QColor colour, bool enabled);
~VisualSettingsItem() {}
void setAgentType(QString n) { agentTypeString = n; }
QString agentType() const { return agentTypeString; }
void setCondition(Condition c) { conditionCondition = c; }
Condition condition() const { return conditionCondition; }
void setX(Position x) { xPosition = x; }
Position x() const { return xPosition; }
void setY(Position y) { yPosition = y; }
Position y() const { return yPosition; }
void setZ(Position z) { zPosition = z; }
Position z() const { return zPosition; }
void setShape(Shape s) { shapeShape = s; }
Shape shape() const { return shapeShape; }
void setColour(QColor c) { colourColor = c; }
QColor colour() const { return colourColor; }
void setEnabled(bool b) { boolEnabled = b; }
bool enabled() const { return boolEnabled; }
void applyOffset(double xoffset, double yoffset, double zoffset);
void applyRatio(double ratio);
void copyAgentDrawDataToRuleAgentDrawData(Dimension * agentDimension);
bool passAgentCondition(Agent *agent);
void populate(QList<Agent *> *a);
QList<RuleAgent *> agents; /*!< The list of agents to draw */
private:
QString agentTypeString;
// QString conditionString;
Condition conditionCondition;
// QString xString;
// QString yString;
// QString zString;
Position xPosition;
Position yPosition;
Position zPosition;
// QString shapeString;
// QString colourString;
Shape shapeShape;
QColor colourColor;
bool boolEnabled;
};
#endif // VISUALSETTINGSITEM_H_