void LineComp::Write (ostream& out) { GraphicComp::Write(out); Line* line = GetLine(); Coord x0, y0, x1, y1; line->GetOriginal(x0, y0, x1, y1); out << x0 << " " << y0 << " " << x1 << " " << y1 << " "; WriteBgFilled(line->BgFilled(), out); WriteColor(line->GetFgColor(), out); WriteColor(line->GetBgColor(), out); WriteBrush(line->GetBrush(), out); WriteTransformer(line->GetTransformer(), out); }
/* ============ idBrushMap::WriteBrushList ============ */ void idBrushMap::WriteBrushList( const idBrushList& brushList ) { idBrush* b; if( !fp ) { return; } for( b = brushList.Head(); b; b = b->Next() ) { WriteBrush( b ); } }
void MultiLineComp::Write (ostream& out) { VerticesComp::Write(out); SF_MultiLine* ml = GetMultiLine(); const Coord* x, *y; int count = ml->GetOriginal(x, y); WriteVertices(x, y, count, out); WriteBgFilled(ml->BgFilled(), out); WriteColor(ml->GetFgColor(), out); WriteColor(ml->GetBgColor(), out); WriteBrush(ml->GetBrush(), out); WritePattern(ml->GetPattern(), out); WriteTransformer(ml->GetTransformer(), out); }
void PadComp::Write (ostream& out) { Connector::Write(out); PadGraphic* pad = GetPad(); Coord l, b, r, t; int mobility = _mobility; pad->GetOriginal(l, b, r, t); out << l << " " << b << " " << r << " " << t << " " << mobility << " "; WriteBgFilled(pad->BgFilled(), out); WriteColor(pad->GetFgColor(), out); WriteColor(pad->GetBgColor(), out); WriteBrush(pad->GetBrush(), out); WriteTransformer(pad->GetTransformer(), out); }
void RectComp::Write (ostream& out) { GraphicComp::Write(out); SF_Rect* rect = GetRect(); Coord x0, y0, x1, y1; rect->GetOriginal(x0, y0, x1, y1); out << x0 << " " << y0 << " " << x1 << " " << y1 << " "; WriteBgFilled(rect->BgFilled(), out); WriteColor(rect->GetFgColor(), out); WriteColor(rect->GetBgColor(), out); WriteBrush(rect->GetBrush(), out); WritePattern(rect->GetPattern(), out); WriteTransformer(rect->GetTransformer(), out); }
void SplineComp::Write (ostream& out) { VerticesComp::Write(out); SFH_OpenBSpline* spline = GetSpline(); const Coord* x, *y; int count = spline->GetOriginal(x, y); WriteVertices(x, y, count, out); WriteBgFilled(spline->BgFilled(), out); WriteColor(spline->GetFgColor(), out); WriteColor(spline->GetBgColor(), out); WriteBrush(spline->GetBrush(), out); WritePattern(spline->GetPattern(), out); WriteTransformer(spline->GetTransformer(), out); }
void PinComp::Write (ostream& out) { Connector::Write(out); PinGraphic* pin = GetPin(); Coord x0, y0; int mobility = _mobility; pin->GetOriginal(x0, y0); out << x0 << " " << y0 << " " << mobility << " "; WriteBgFilled(pin->BgFilled(), out); WriteColor(pin->GetFgColor(), out); WriteColor(pin->GetBgColor(), out); WriteBrush(pin->GetBrush(), out); WriteTransformer(pin->GetTransformer(), out); }
void EllipseComp::Write (ostream& out) { GraphicComp::Write(out); SF_Ellipse* ellipse = GetEllipse(); Coord x0, y0; int r1, r2; ellipse->GetOriginal(x0, y0, r1, r2); out << x0 << " " << y0 << " " << r1 << " " << r2 << " "; WriteBgFilled(ellipse->BgFilled(), out); WriteColor(ellipse->GetFgColor(), out); WriteColor(ellipse->GetBgColor(), out); WriteBrush(ellipse->GetBrush(), out); WritePattern(ellipse->GetPattern(), out); WriteTransformer(ellipse->GetTransformer(), out); }
void LinkComp::Write (ostream& out) { GraphicComp::Write(out); Line* line = GetLine(); WriteTransformer(line->GetTransformer(), out); unidraw->GetCatalog()->WriteComponent(_conn1, out); unidraw->GetCatalog()->WriteComponent(_conn2, out); Graphic* parent = line->Parent(); WriteBgFilled(parent->BgFilled(), out); WriteColor(parent->GetFgColor(), out); WriteColor(parent->GetBgColor(), out); WriteBrush(parent->GetBrush(), out); WriteTransformer(parent->GetTransformer(), out); }