WRAPPER_API virtual ClassType get_Class() const
The get_Class method returns an element of the ClassType enumeration that indicates the type of this instance of CoordPoint.
void CoordPoint_getClass(GeoCalcPBW::CoordPoint * pt)
{
if(pt->get_Class() == GeoCalcPBW::CoordPoint::ClassType::Projected)
{
double north = 1303;
double east = -53;
double height = 0;
if(pt->get_Dimensions() == 2)
{
if(! pt->set_InUnits(east, north))
{
MessageBox(0, "set_InUnits failed", "", 0);
}
}
else if(pt->get_Dimensions() == 3)
{
if(! pt->set_InUnits(east, north, height))
{
MessageBox(0, "set_InUnits failed", "", 0);
}
}
}
}