2.2.4.17.15 GraphLayer::GetCoordinateType

Description

Gets the layer's coordinate system type.

Syntax

UINT GetCoordinateType( )

Parameters

Return

a value from the following enumeration indicating the type:

enum {

FRAME_COOR_CART = 0, // XY Cartesian coordinate system

FRAME_COOR_POLAR, // polar

FRAME_COOR_TERNARY, // ternary

FRAME_COOR_SMITH_CHART // Smith chart

};

Examples

EX1

//Get coordinate type of the graphlayer.
void    GraphLayer_GetCoordinateType_ex1()
{
    GraphPage gp;
    gp.Create("origin");
    GraphLayer        lay(gp.GetName(),0);
    
    if (lay.GetCoordinateType() == FRAME_COOR_CART)
        out_str("The coordinate system is Cartesian");
    else
        out_str("The coordinate system is not Cartesian");
}

Remark

See Also

Header to Include

origin.h