Line 0
Link Here
|
|
|
1 |
--- src/plotting_contour.cpp.orig 2015-04-22 11:10:10 UTC |
2 |
+++ src/plotting_contour.cpp |
3 |
@@ -789,8 +789,8 @@ namespace lib |
4 |
1, value, |
5 |
static_cast<PLFLT>(( *thick )[i%thick->N_Elements()]), |
6 |
0,0,0,0, |
7 |
- (plstream::fill), (oneDim), |
8 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
9 |
+ (plcallback::fill), (oneDim), |
10 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
11 |
} |
12 |
actStream->psty(0); |
13 |
// if (docolors) gdlSetGraphicsForegroundColorFromKw( e, actStream ); |
14 |
@@ -808,8 +808,8 @@ namespace lib |
15 |
clevel[i], maxmax, |
16 |
1,value, |
17 |
0,0,0,0,0, |
18 |
- plstream::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc |
19 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
20 |
+ plcallback::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc |
21 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
22 |
} |
23 |
} else { //every other case of fill |
24 |
// note that plshades is not protected against 1 level (color formula is |
25 |
@@ -818,8 +818,8 @@ namespace lib |
26 |
if (nlevel>2 && !(docolors)) { //acceleration with shades when no c_colors are given. use continuous table1, decomposed or not. |
27 |
//acceleration is most sensible when a (x,y) transform (rotate, stretch) is in place since plplot does not recompute the map. |
28 |
actStream->shades( map, xEl, yEl, isLog?doIt:NULL, xStart, xEnd, yStart, yEnd, |
29 |
- clevel, nlevel, 1, 0, 0, plstream::fill, (oneDim), |
30 |
- (oneDim)?(plstream::tr1):(plstream::tr2), |
31 |
+ clevel, nlevel, 1, 0, 0, plcallback::fill, (oneDim), |
32 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), |
33 |
(oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
34 |
} |
35 |
else { //fill with colors defined with c_colors or n<=2 |
36 |
@@ -832,8 +832,8 @@ namespace lib |
37 |
clevel[i], maxmax, |
38 |
1,value, |
39 |
0,0,0,0,0, |
40 |
- plstream::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc |
41 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
42 |
+ plcallback::fill, (oneDim), //Onedim is accelerator since rectangles are kept rectangles see plplot doc |
43 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
44 |
} else |
45 |
printf(" Problem, sorry! plplot doesn't like to FILL with a single level!"); |
46 |
} |
47 |
@@ -854,7 +854,7 @@ namespace lib |
48 |
if (doT3d) { //no label in T3D , bug in plplot... |
49 |
actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING, 0 ); |
50 |
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1, |
51 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
52 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
53 |
} else { |
54 |
if (dolabels && i<labels->N_Elements()) |
55 |
{ |
56 |
@@ -862,16 +862,16 @@ namespace lib |
57 |
//else (lables thicker than contours) impossible with plplot... |
58 |
actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING, 0 ); |
59 |
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1, |
60 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); //thick contours, no label |
61 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); //thick contours, no label |
62 |
actStream->Thick(label_thick); |
63 |
} |
64 |
actStream->setcontlabelparam ( LABELOFFSET, (PLFLT) label_size, LABELSPACING*sqrt(label_size),(PLINT)(*labels)[i] ); |
65 |
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1, |
66 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
67 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
68 |
if (!dothick) gdlSetPenThickness(e, actStream); |
69 |
} else { |
70 |
actStream->cont ( map, xEl, yEl, 1, xEl, 1, yEl, &( clevel[i] ), 1, |
71 |
- (oneDim)?(plstream::tr1):(plstream::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
72 |
+ (oneDim)?(plcallback::tr1):(plcallback::tr2), (oneDim)?(void *)&cgrid1:(void *)&cgrid2); |
73 |
} |
74 |
} |
75 |
} |