forked from Blackfrosch/VAGEDCSuite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
SymbolHelper.cs
305 lines (242 loc) · 6.95 KB
/
SymbolHelper.cs
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
using System;
using System.Collections.Generic;
using System.Text;
namespace VAGSuite
{
public class SymbolHelper
{
internal bool Is1D = false;
internal bool Is2D = false;
internal bool Is3D = false;
private string m_xaxisUnits = string.Empty;
public string XaxisUnits
{
get { return m_xaxisUnits; }
set { m_xaxisUnits = value; }
}
private string m_yaxisUnits = string.Empty;
public string YaxisUnits
{
get { return m_yaxisUnits; }
set { m_yaxisUnits = value; }
}
private MapSelector _mapSelector = new MapSelector();
internal MapSelector MapSelector
{
get { return _mapSelector; }
set { _mapSelector = value; }
}
private int _bitMask = 0x00000;
public int BitMask
{
get { return _bitMask; }
set { _bitMask = value; }
}
System.Drawing.Color _color = System.Drawing.Color.Black;
public System.Drawing.Color Color
{
get { return _color; }
set { _color = value; }
}
private byte[] _currentdata;
public byte[] Currentdata
{
get { return _currentdata; }
set { _currentdata = value; }
}
int symbol_number = 0;
public int Symbol_number
{
get { return symbol_number; }
set { symbol_number = value; }
}
bool _selected = false;
public bool Selected
{
get { return _selected; }
set { _selected = value; }
}
int symbol_type = 0;
public int Symbol_type
{
get { return symbol_type; }
set { symbol_type = value; }
}
int internal_address = 0x00000;
public int Internal_address
{
get { return internal_address; }
set { internal_address = value; }
}
Int64 start_address = 0x00000;
Int64 flash_start_address = 0x00000;
public Int64 Flash_start_address
{
get { return flash_start_address; }
set { flash_start_address = value; }
}
int symbol_number_ECU = 0;
public int Symbol_number_ECU
{
get { return symbol_number_ECU; }
set { symbol_number_ECU = value; }
}
public Int64 Start_address
{
get { return start_address; }
set { start_address = value; }
}
int length = 0x00;
public int Length
{
get { return length; }
set { length = value; }
}
string _userdescription = string.Empty;
public string Userdescription
{
get { return _userdescription; }
set { _userdescription = value; }
}
string varname = string.Empty;
public string Varname
{
get { return varname; }
set { varname = value; }
}
string _description = string.Empty;
public string Description
{
get { return _description; }
set { _description = value; }
}
string _category = "Unknown maps";
public string Category
{
get { return _category; }
set { _category = value; }
}
string _subcategory = "Unknown";
public string Subcategory
{
get { return _subcategory; }
set { _subcategory = value; }
}
private int _x_axis_length = 1;
public int X_axis_length
{
get { return _x_axis_length; }
set { _x_axis_length = value; }
}
private int _y_axis_length = 1;
public int Y_axis_length
{
get { return _y_axis_length; }
set { _y_axis_length = value; }
}
private int _x_axis_ID = 0;
public int X_axis_ID
{
get { return _x_axis_ID; }
set { _x_axis_ID = value; }
}
private int _y_axis_ID = 0;
public int Y_axis_ID
{
get { return _y_axis_ID; }
set { _y_axis_ID = value; }
}
private int _x_axis_address = 0;
public int X_axis_address
{
get { return _x_axis_address; }
set { _x_axis_address = value; }
}
private int _y_axis_address = 0;
public int Y_axis_address
{
get { return _y_axis_address; }
set { _y_axis_address = value; }
}
private bool _xaxisAssigned = false;
public bool XaxisAssigned
{
get { return _xaxisAssigned; }
set { _xaxisAssigned = value; }
}
private bool _yaxisAssigned = false;
public bool YaxisAssigned
{
get { return _yaxisAssigned; }
set { _yaxisAssigned = value; }
}
private string _x_axis_descr = string.Empty;
public string X_axis_descr
{
get { return _x_axis_descr; }
set
{
_x_axis_descr = value;
_xaxisAssigned = true;
}
}
private string _y_axis_descr = string.Empty;
public string Y_axis_descr
{
get { return _y_axis_descr; }
set
{
_y_axis_descr = value;
_yaxisAssigned = true;
}
}
private string _z_axis_descr = string.Empty;
public string Z_axis_descr
{
get { return _z_axis_descr; }
set { _z_axis_descr = value; }
}
private double _x_axis_correction = 1;
public double X_axis_correction
{
get { return _x_axis_correction; }
set { _x_axis_correction = value; }
}
private double _x_axis_offset = 0;
public double X_axis_offset
{
get { return _x_axis_offset; }
set { _x_axis_offset = value; }
}
private double _y_axis_correction = 1;
public double Y_axis_correction
{
get { return _y_axis_correction; }
set { _y_axis_correction = value; }
}
private double _y_axis_offset = 0;
public double Y_axis_offset
{
get { return _y_axis_offset; }
set { _y_axis_offset = value; }
}
private double _correction = 1;
public double Correction
{
get { return _correction; }
set { _correction = value; }
}
private double _offset = 0;
public double Offset
{
get { return _offset; }
set { _offset = value; }
}
private int _codeBlock = 0;
public int CodeBlock
{
get { return _codeBlock; }
set { _codeBlock = value; }
}
}
}