Esempio n. 1
0
boolean PSArrowSpline::Definition (ostream& out) {
    ArrowSplineComp* comp = (ArrowSplineComp*) GetSubject();
    ArrowOpenBSpline* aml = comp->GetArrowOpenBSpline();

    const Coord* x, *y;
    int n = aml->GetOriginal(x, y);
    float arrow_scale = aml->ArrowScale();

    out << "Begin " << MARK << " " << Name() << "\n";
    MinGS(out);
    out << MARK << " " << n << "\n";
    for (int i = 0; i < n; i++) {
        out << x[i] << " " << y[i] << "\n";
    }
    out << n << " " << Name() << "\n";
    out << MARK << " " << arrow_scale << "\n";
    out << "End\n\n";

    return out.good();
}
Esempio n. 2
0
void ArrowSplineComp::Write (ostream& out) {
    SplineComp::Write(out);
    ArrowOpenBSpline* as = GetArrowOpenBSpline();

    out << as->Head() << " " << as->Tail() << " " << as->ArrowScale() << " ";
}