Example #1
0
void GiCoreView::dynDraw(GiView* view, GiCanvas* canvas)
{
    GcBaseView* aview = impl->_doc->findView(view);
    GiGraphics* gs = aview->graph();

    impl->motion.d2mgs = impl->cmds()->displayMmToModel(1, gs);

    if (aview && gs->beginPaint(canvas)) {
        impl->drawCommand(aview, impl->motion, *gs);
        aview->dynDraw(impl->motion, *gs);
        gs->endPaint();
    }
}
Example #2
0
int GiCoreView::drawAll(GiView* view, GiCanvas* canvas)
{
    GcBaseView* aview = impl->_doc->findView(view);
    GiGraphics* gs = aview->graph();
    int n = 0;

    if (aview && gs->beginPaint(canvas)) {
        n = aview->drawAll(*gs);
        gs->endPaint();
    }
    if (!impl->newids.empty()) {
        impl->newids.push_back(0);
    }
    impl->checkDrawAppendEnded();

    return n;
}