void BitmapGraphic::getExtent (
    float& l, float& b, float& cx, float& cy, float& tol, Graphic* gs
) {
    int w, h;
    w = _fg_map->pwidth();
    h = _fg_map->pheight();
    CalcExtent(w, h, l, b, cx, cy, tol, gs);
    tol = 0;
}
Exemple #2
0
void TCadGroup::Del(TCadObjectBasePtr obj)
{
  TCadObjectBasePtrVector::iterator i,e;

  for(i=objects.begin(), e=objects.end(); i!=e; i++)
    if ( (*i) == obj) {  // check if this is the object
      delete (*i);  // delete the object
      objects.erase(i);  // delete the pointer
      break;  // exit loop
    }

  CalcExtent();
}