File size: 523 Bytes
a5ffdcd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #include <iostream>
#include "rs_pen.h"
RS_Pen::RS_Pen() :
RS_Pen(RS_Color{Qt::black}, RS2::WidthByLayer, RS2::LineByLayer)
{}
std::ostream& operator << (std::ostream& os, const RS_Pen& p) {
//os << "style: " << p.style << std::endl;
os << " pen color: " << p.getColor()
<< " pen width: " << p.getWidth()
<< " pen screen width: " << p.getScreenWidth()
<< " pen line type: " << p.getLineType()
<< " flags: " << (p.getFlag(RS2::FlagInvalid) ? "INVALID" : "")
<< std::endl;
return os;
}
|