Exemple #1
0
void LineView::Update () {
    Graphic* line = GetGraphic();

    IncurDamage(line);
    *line = *GetLineComp()->GetGraphic();
    IncurDamage(line);
    EraseHandles();
}
Exemple #2
0
void StencilView::Update () {
    Graphic* stencil = GetGraphic();

    IncurDamage(stencil);
    *stencil = *GetStencilComp()->GetGraphic();
    IncurDamage(stencil);
    EraseHandles();
}
Exemple #3
0
void RectView::Update () {
    Graphic* rect = GetGraphic();

    IncurDamage(rect);
    *rect = *GetRectComp()->GetGraphic();
    IncurDamage(rect);
    EraseHandles();
}
Exemple #4
0
void EllipseView::Update () {
    Graphic* ellipse = GetGraphic();

    IncurDamage(ellipse);
    *ellipse = *GetEllipseComp()->GetGraphic();
    IncurDamage(ellipse);
    EraseHandles();
}
Exemple #5
0
void PadView::Update () {
    PadGraphic* pad = GetPad();
    Graphic* padgr = pad;
    
    IncurDamage(pad);
    *padgr = *GetPadComp()->GetGraphic();
    IncurDamage(pad);
    EraseHandles();
}
void BitmapView::Update () {
    Graphic* bcomp = GetBitmapComp()->GetBitmapGraphic();
    Graphic* bview = (BitmapGraphic*) GetGraphic();

    IncurDamage(bview);
    *bview = *bcomp;
    IncurDamage(bview);
    EraseHandles();
}
Exemple #7
0
void ArrowSplineView::Update () {
    ArrowOpenBSpline* amline = (ArrowOpenBSpline*) GetGraphic();
    ArrowOpenBSpline* subj = GetArrowSplineComp()->GetArrowOpenBSpline();

    IncurDamage(amline);
    *amline = *subj;
    IncurDamage(amline);
    EraseHandles();
}
Exemple #8
0
void ArrowLineView::Update () {
    ArrowLine* line = (ArrowLine*) GetGraphic();
    ArrowLine* subj = GetArrowLineComp()->GetArrowLine();

    IncurDamage(line);
    *line = *subj;
    IncurDamage(line);
    EraseHandles();
}
Exemple #9
0
void PinView::Update () {
    PinGraphic* pin = GetPin();
    Graphic* pingr = pin;
    
    IncurDamage(pin);
    *pingr = *GetPinComp()->GetGraphic();
    IncurDamage(pin);
    EraseHandles();
}
Exemple #10
0
void TextView::Update () {
    TextGraphic* gview = (TextGraphic*) GetGraphic();
    TextGraphic* gsubj = (TextGraphic*) GetTextComp()->GetGraphic();

    IncurDamage(gview);
    * (Graphic*) gview = * (Graphic*) gsubj;
    gview->SetLineHeight(gsubj->GetLineHeight());
    IncurDamage(gview);
    EraseHandles();
}
Exemple #11
0
void LinkView::Update () {
    LinkComp* linkComp = GetLinkComp();
    Graphic* link = GetGraphic();
    Graphic* line = GetLine();
    Graphic* subjLine = linkComp->GetLine();

    IncurDamage(line);
    *line = *subjLine;
    *link = *linkComp->GetGraphic();
    IncurDamage(line);
    EraseHandles();
}