X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fbase%2Frs_polyline.h;h=00668479a31a7fbee04cab2d47d3fd7941742e24;hb=d774c2655ba2c3657a565f325411144452392277;hp=daa303e2c831d58ec17d23f6047432da127018ff;hpb=16ce54abf01ca3032e42a5bb11a4afcf9014dcca;p=architektonas diff --git a/src/base/rs_polyline.h b/src/base/rs_polyline.h index daa303e..0066847 100644 --- a/src/base/rs_polyline.h +++ b/src/base/rs_polyline.h @@ -1,29 +1,3 @@ -/**************************************************************************** -** $Id: rs_polyline.h 2367 2005-04-04 16:57:36Z andrew $ -** -** Copyright (C) 2001-2003 RibbonSoft. All rights reserved. -** -** This file is part of the qcadlib Library project. -** -** This file may be distributed and/or modified under the terms of the -** GNU General Public License version 2 as published by the Free Software -** Foundation and appearing in the file LICENSE.GPL included in the -** packaging of this file. -** -** Licensees holding valid qcadlib Professional Edition licenses may use -** this file in accordance with the qcadlib Commercial License -** Agreement provided with the Software. -** -** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE -** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. -** -** See http://www.ribbonsoft.com for further details. -** -** Contact info@ribbonsoft.com if any conditions of this licensing are -** not clear to you. -** -**********************************************************************/ - #ifndef RS_POLYLINE_H #define RS_POLYLINE_H @@ -82,35 +56,28 @@ class RS_Polyline: public RS_EntityContainer Vector getStartpoint(); void setEndpoint(Vector & v); Vector getEndpoint(); - double getClosingBulge(); void updateEndpoints(); - bool isClosed() const; void setClosed(bool cl); virtual VectorSolutions getRefPoints(); virtual Vector getNearestRef(const Vector & coord, double * dist = NULL); virtual Vector getNearestSelectedRef(const Vector & coord, double * dist = NULL); - virtual RS_Entity * addVertex(const Vector & v, double bulge = 0.0, bool prepend = false); virtual void setNextBulge(double bulge); virtual void addEntity(RS_Entity * entity); //virtual void addSegment(RS_Entity* entity); virtual void removeLastVertex(); virtual void endPolyline(); - //virtual void reorder(); - virtual void move(Vector offset); virtual void rotate(Vector center, double angle); virtual void scale(Vector center, Vector factor); virtual void mirror(Vector axisPoint1, Vector axisPoint2); virtual void moveRef(const Vector& ref, const Vector& offset); virtual void stretch(Vector firstCorner, Vector secondCorner, Vector offset); - - // virtual void draw(RS_Painter* painter, RS_GraphicView* view, double patternOffset=0.0); - virtual void draw(PaintInterface * painter, RS_GraphicView * view, double patternOffset = 0.0); + virtual void draw(PaintInterface * painter, GraphicView * view, double patternOffset = 0.0); friend std::ostream & operator<<(std::ostream & os, const RS_Polyline & l);