Engauge Digitizer 2
Loading...
Searching...
No Matches
MigrateToVersion6.cpp
Go to the documentation of this file.
1/******************************************************************************************************
2 * (C) 2014 markummitchell@github.com. This file is part of Engauge Digitizer, which is released *
3 * under GNU General Public License version 2 (GPLv2) or (at your option) any later version. See file *
4 * LICENSE or go to gnu.org/licenses for details. Distribution requires prior written permission. *
5 ******************************************************************************************************/
6
7#include "MigrateToVersion6.h"
8
12
14{
15 switch (preVersion6) {
16 case 0:
18
19 case 1:
20 return COLOR_PALETTE_BLUE;
21
22 case 2:
23 return COLOR_PALETTE_CYAN;
24
25 case 3:
26 return COLOR_PALETTE_GOLD;
27
28 case 4:
30
31 case 5:
33
34 case 6:
35 return COLOR_PALETTE_RED;
36
37 case 7:
39
40 case 8:
42
43 default:
45 }
46}
47
49{
50 switch (preVersion6) {
51 case 0:
53
54 case 1:
56
57 default:
59 }
60}
61
63{
64 switch (preVersion6) {
65 case 0:
66 return POINT_SHAPE_CROSS;
67
68 case 1:
69 return POINT_SHAPE_X;
70
71 case 2:
73
74 case 3:
75 return POINT_SHAPE_SQUARE;
76
77 case 4:
79
80 default:
81 return POINT_SHAPE_CROSS;
82 }
83}
84
85int MigrateToVersion6::pointRadius (int preVersion6) const
86{
87 // From pointsetstyles.h
88 return 2 * (preVersion6 + 1);
89}
ColorPalette
@ COLOR_PALETTE_TRANSPARENT
@ COLOR_PALETTE_GREEN
@ COLOR_PALETTE_MAGENTA
@ COLOR_PALETTE_BLACK
@ COLOR_PALETTE_GOLD
@ COLOR_PALETTE_RED
@ COLOR_PALETTE_BLUE
@ COLOR_PALETTE_CYAN
@ COLOR_PALETTE_YELLOW
CurveConnectAs
@ CONNECT_AS_FUNCTION_STRAIGHT
@ CONNECT_AS_RELATION_STRAIGHT
PointShape
Definition PointShape.h:12
@ POINT_SHAPE_X
Definition PointShape.h:18
@ POINT_SHAPE_DIAMOND
Definition PointShape.h:15
@ POINT_SHAPE_TRIANGLE
Definition PointShape.h:17
@ POINT_SHAPE_CROSS
Definition PointShape.h:14
@ POINT_SHAPE_SQUARE
Definition PointShape.h:16
CurveConnectAs curveConnectAs(int preVersion6) const
Line drawn between points.
ColorPalette colorPalette(int preVersion6) const
Color from color palette.
int pointRadius(int preVersion6) const
Point radius.
MigrateToVersion6()
Single constructor.
PointShape pointShape(int preVersion6) const
Point shape.