|
|
|
@ -11,17 +11,17 @@ static double AutoStep(double b, double e)
|
|
|
|
|
return div; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ObjectBase* GMT_Header(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_Header(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
return new ObjectString(header); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ObjectBase* GMT_Footer(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_Footer(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
return new ObjectString(footer); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ObjectBase* GMT_ColorGray(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_ColorGray(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
struct gmt_color c; |
|
|
|
|
bool suc=true; |
|
|
|
@ -36,7 +36,7 @@ ObjectBase* GMT_ColorGray(const ObjectList* input)
|
|
|
|
|
else return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ObjectBase* GMT_ColorRGB(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_ColorRGB(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
struct gmt_color c; |
|
|
|
|
bool suc=true; |
|
|
|
@ -53,7 +53,7 @@ ObjectBase* GMT_ColorRGB(const ObjectList* input)
|
|
|
|
|
else return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ObjectBase* GMT_ColorHSV(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_ColorHSV(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
struct gmt_color c; |
|
|
|
|
bool suc=true; |
|
|
|
@ -71,7 +71,7 @@ ObjectBase* GMT_ColorHSV(const ObjectList* input)
|
|
|
|
|
else return 0; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
ObjectBase* GMT_ColorCMYK(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_ColorCMYK(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
struct gmt_color c; |
|
|
|
|
bool suc=true; |
|
|
|
@ -95,7 +95,7 @@ Input:
|
|
|
|
|
1) Three arguments, first is Layer, second and third are double. Interprets as new absolute position in cm. |
|
|
|
|
2) Pairs list. Names are l (layer), x, y, xrel (xr), yrel (yr). Pair with name l may be absent, in this case search in list and using as layer object with ObjectGMTLayer type. x and y are absolute positions in cm, xrel and yrel are shift from current position. x (y) and xrel (yrel) are mutually exlusive, but x (y) and yrel (xrel) can be used simultaneously. If position for some axis is absent, then this position is unchanged. |
|
|
|
|
*/ |
|
|
|
|
ObjectBase* GMT_LayerShift(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_LayerShift(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
auto size=input->Size(); |
|
|
|
|
struct gmt_layer layer; |
|
|
|
@ -165,7 +165,7 @@ transpmodel - transparency model, string. Choose from Color, ColorBurn, ColorDod
|
|
|
|
|
x, xr or xrel - shift layer on x cm in horisontal direction. Default is 0. |
|
|
|
|
y, yr or yrel - shift layer on y cm in vertical direction. Default is 0. |
|
|
|
|
*/ |
|
|
|
|
ObjectBase* GMT_DrawFrame(const ObjectList* input) |
|
|
|
|
const ObjectBase* GMT_DrawFrame(const ObjectList* input) |
|
|
|
|
{ |
|
|
|
|
std::string opts="-P -O -K "; |
|
|
|
|
bool suc=true; |
|
|
|
|