MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / ResetControlPoints

Method ResetControlPoints

ogl/basic2.cpp:552–568  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

550}
551
552void wxPolygonShape::ResetControlPoints()
553{
554 wxObjectList::compatibility_iterator node = m_points->GetFirst();
555 wxObjectList::compatibility_iterator controlPointNode = m_controlPoints.GetFirst();
556 while (node && controlPointNode)
557 {
558 wxRealPoint *point = (wxRealPoint *)node->GetData();
559 wxPolygonControlPoint *controlPoint = (wxPolygonControlPoint *)controlPointNode->GetData();
560
561 controlPoint->m_xoffset = point->x;
562 controlPoint->m_yoffset = point->y;
563 controlPoint->m_polygonVertex = point;
564
565 node = node->GetNext();
566 controlPointNode = controlPointNode->GetNext();
567 }
568}
569
570
571#if wxUSE_PROLOGIO

Callers 1

OnSizingEndDragLeftMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected