OdPrcMarkupLeaderPtr leader = OdPrcMarkupLeader::createObject();
OdPrcGraphics graph; leader->graphics() = graph;
OdPrcMarkupTessPtr mTess = OdPrcMarkupTess::createObject(); mTess->setLabel("test"); OdUInt32Array code_arr; mTess->coordinates().push_back(-1.9); mTess->coordinates().push_back(-1); mTess->coordinates().push_back(0); mTess->coordinates().push_back(-3.7); mTess->coordinates().push_back(-3.8); mTess->coordinates().push_back(0); code_arr.push_back(90177537); // Color code_arr.push_back(0); code_arr.push_back(0); code_arr.push_back(0);//PolyLine code_arr.push_back(6); mTess->codes() = code_arr; leader->tessellation() = mTess;
For additional information about working with markup tessellation, see Work with Markup Tessellation.
Creating markup leaders is illustrated in the OdPrcCreate sample application.