Engauge Digitizer 2
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MigrateToVersion6 Class Reference

Converts old (=pre version 6) enums to new (=version 6) enums, for reading of old document files. More...

#include <MigrateToVersion6.h>

Collaboration diagram for MigrateToVersion6:
Collaboration graph

Public Member Functions

 MigrateToVersion6 ()
 Single constructor.
 
ColorPalette colorPalette (int preVersion6) const
 Color from color palette.
 
CurveConnectAs curveConnectAs (int preVersion6) const
 Line drawn between points.
 
PointShape pointShape (int preVersion6) const
 Point shape.
 
int pointRadius (int preVersion6) const
 Point radius.
 

Detailed Description

Converts old (=pre version 6) enums to new (=version 6) enums, for reading of old document files.

Definition at line 15 of file MigrateToVersion6.h.

Constructor & Destructor Documentation

◆ MigrateToVersion6()

MigrateToVersion6::MigrateToVersion6 ( )

Single constructor.

Definition at line 9 of file MigrateToVersion6.cpp.

10{
11}

Member Function Documentation

◆ colorPalette()

ColorPalette MigrateToVersion6::colorPalette ( int preVersion6) const

Color from color palette.

Definition at line 13 of file MigrateToVersion6.cpp.

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}
@ 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
const int INNER_RADIUS_MIN

◆ curveConnectAs()

CurveConnectAs MigrateToVersion6::curveConnectAs ( int preVersion6) const

Line drawn between points.

Definition at line 48 of file MigrateToVersion6.cpp.

49{
50 switch (preVersion6) {
51 case 0:
53
54 case 1:
56
57 default:
59 }
60}
@ CONNECT_AS_FUNCTION_STRAIGHT
@ CONNECT_AS_RELATION_STRAIGHT

◆ pointRadius()

int MigrateToVersion6::pointRadius ( int preVersion6) const

Point radius.

Definition at line 85 of file MigrateToVersion6.cpp.

86{
87 // From pointsetstyles.h
88 return 2 * (preVersion6 + 1);
89}

◆ pointShape()

PointShape MigrateToVersion6::pointShape ( int preVersion6) const

Point shape.

Definition at line 62 of file MigrateToVersion6.cpp.

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}
@ 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

The documentation for this class was generated from the following files: