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
10{
11}
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
Definition: ColorPalette.h:12
@ COLOR_PALETTE_TRANSPARENT
Definition: ColorPalette.h:21
@ COLOR_PALETTE_GREEN
Definition: ColorPalette.h:17
@ COLOR_PALETTE_MAGENTA
Definition: ColorPalette.h:18
@ COLOR_PALETTE_BLACK
Definition: ColorPalette.h:13
@ COLOR_PALETTE_GOLD
Definition: ColorPalette.h:16
@ COLOR_PALETTE_RED
Definition: ColorPalette.h:19
@ COLOR_PALETTE_BLUE
Definition: ColorPalette.h:14
@ COLOR_PALETTE_CYAN
Definition: ColorPalette.h:15
@ COLOR_PALETTE_YELLOW
Definition: ColorPalette.h:20
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.