Ejemplo n.º 1
0
Glyph* GraphicMaster::clone () const {
    Graphic31* pg = new GraphicMaster((Graphic31*)this);

    GlyphIndex count = _body->count();
    for (GlyphIndex i = 0; i < count; i++) {
        Glyph* gr = _body->component(i);
        pg->append(gr->clone());
    }
    return pg;
}
Ejemplo n.º 2
0
Glyph* PolyGraphic::clone () const {
    Graphic* pg = new PolyGraphic((Graphic*)this);

    GlyphIndex count = _body->count();
    for (GlyphIndex i = 0; i < count; i++) {
        Glyph* gr = _body->component(i);
        pg->append(gr->clone());
    }
    return pg;
}