コード例 #1
0
ファイル: line.cpp プロジェクト: PNCG/neuron
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);
}
コード例 #2
0
ファイル: Brush.cpp プロジェクト: Yetta1/OpenTechBFG
/*
============
idBrushMap::WriteBrushList
============
*/
void idBrushMap::WriteBrushList( const idBrushList& brushList )
{
	idBrush* b;
	
	if( !fp )
	{
		return;
	}
	
	for( b = brushList.Head(); b; b = b->Next() )
	{
		WriteBrush( b );
	}
}
コード例 #3
0
ファイル: line.cpp プロジェクト: PNCG/neuron
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);
}
コード例 #4
0
ファイル: pad.c プロジェクト: LambdaCalculus379/SLS-1.02
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);
}
コード例 #5
0
ファイル: rect.cpp プロジェクト: PNCG/neuron
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);
}
コード例 #6
0
ファイル: spline.c プロジェクト: LambdaCalculus379/SLS-1.02
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);
}
コード例 #7
0
ファイル: pin.cpp プロジェクト: PNCG/neuron
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);
}
コード例 #8
0
ファイル: ellipse.cpp プロジェクト: PNCG/neuron
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);
}
コード例 #9
0
ファイル: link.c プロジェクト: barak/ivtools-cvs
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);
}