code brush
This commit is contained in:
@@ -47,29 +47,16 @@ public:
|
||||
double endpointImageScale() const {return im_end_scale;}
|
||||
void appendPoint(const QPointF & p);
|
||||
void appendPoint(qreal x, qreal y);
|
||||
void testPoint(QPointF pos, int * sel_point, int * sel_segment, bool for_trace = false);
|
||||
void movePolyline(const QPointF & dp);
|
||||
void clear();
|
||||
/*void setStart(const QPointF & p) {pol[0] = p; scene()->update();}
|
||||
void setStart(qreal x, qreal y) {setStart(QPointF(x, y));}
|
||||
void setFinish(const QPointF & p) {pol[pol.size() - 1] = p; scene()->update();}
|
||||
void setFinish(qreal x, qreal y) {setFinish(QPointF(x, y));}
|
||||
void setPoint(int index, const QPointF & p) {pol[index] = p; scene()->update();}
|
||||
void setPoint(int index, qreal x, qreal y) {setPoint(index, QPointF(x, y));}*/
|
||||
void setPen(const QPen & p) {p_ = p; update();}
|
||||
QPen pen() const {return p_;}
|
||||
void setBrush(const QBrush & b) {b_ = b; update();}
|
||||
QBrush brush() const {return b_;}
|
||||
//void disconnectBrick() {BrickBase::disconnect(brickFrom, portFrom, brickTo, portTo);}
|
||||
void movePolyline(const QPointF & dp);
|
||||
void movePoint(int index, const QPointF & dp);
|
||||
double width() const {return pen_width;}
|
||||
void setWidth(const double & w);
|
||||
void setColor(const QColor & c);
|
||||
void setSquareNodes(bool yes);
|
||||
int addPoint(const QPointF & point, bool update = true);
|
||||
int segmentPointPair(int point, int * seg = 0) const;
|
||||
void removePoint(int index);
|
||||
void removeSegment(int index);
|
||||
void markAsInput();
|
||||
void markAsOutput();
|
||||
void unmark();
|
||||
@@ -99,9 +86,15 @@ protected:
|
||||
void updateGeometry();
|
||||
bool checkDelete();
|
||||
void emitAction(BlockItemBase::Action a);
|
||||
void testPoint(QPointF pos, int * sel_point, int * sel_segment, bool for_trace = false);
|
||||
int addPoint(const QPointF & point, bool update = true);
|
||||
int segmentPointPair(int point, int * seg = 0) const;
|
||||
int pointSegmentsCount(int point, QList<int> * segs = 0) const;
|
||||
void removePoint(int index);
|
||||
void removeSegment(int index);
|
||||
void movePoint(int index, const QPointF & dp);
|
||||
QVector<int> endpoints() const;
|
||||
QVector<int> endpointLine(int ep, double angle) const;
|
||||
int pointSegmentsCount(int point, QList<int> * segs = 0) const;
|
||||
int neighborSegmentPoint(int point, int * seg) const;
|
||||
int type() const {return Type;}
|
||||
QRectF boundingRect() const;
|
||||
|
||||
Reference in New Issue
Block a user