]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_spline.h
In the middle of major refactoring...
[architektonas] / src / base / rs_spline.h
index eccb2be20776da0e206c977eea8dbdb8941e6d4b..30e613a7792df0d135549d9498a0a8de6ba0e078 100644 (file)
@@ -1,29 +1,3 @@
-/****************************************************************************
-** $Id: rs_spline.h 1914 2004-09-19 11:05:34Z 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_SPLINE_H
 #define RS_SPLINE_H
 
@@ -84,30 +58,22 @@ public:
        int getNumberOfControlPoints();
        bool isClosed();
        void setClosed(bool c);
-
     virtual VectorSolutions getRefPoints();
     virtual Vector getNearestRef(const Vector & coord, double * dist = NULL);
     virtual Vector getNearestSelectedRef(const Vector & coord, double * dist = NULL);
-
        void update();
-
     virtual Vector getNearestEndpoint(const Vector & coord, double * dist = NULL);
     virtual Vector getNearestCenter(const Vector & coord, double * dist = NULL);
     virtual Vector getNearestMiddle(const Vector & coord, double * dist = NULL);
     virtual Vector getNearestDist(double distance, const Vector & coord,                                      double * dist = NULL);
-
        virtual void addControlPoint(const Vector & v);
        virtual void removeLastControlPoint();
-
     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 draw(RS_Painter* painter, RS_GraphicView* view, double patternOffset=0.0);
-    virtual void draw(PaintInterface * painter, RS_GraphicView * view, double patternOffset = 0.0);
-//     Q3ValueList<Vector> getControlPoints();
+    virtual void draw(PaintInterface * painter, GraphicView * view, double patternOffset = 0.0);
        QList<Vector> getControlPoints();
 
     friend std::ostream & operator<<(std::ostream & os, const RS_Spline & l);