]> Shamusworld >> Repos - architektonas/blobdiff - src/base/rs_linetypepattern.h
Changed RS_Graphic to Drawing; this is less confusing as a drawing is
[architektonas] / src / base / rs_linetypepattern.h
index dbc3e20e96cb48a03a155667edbd1366a7ada59b..93ef8b7e6d05a215b0b095df4d49fcb0cf0a435f 100644 (file)
@@ -1,30 +1,3 @@
-/****************************************************************************
-** $Id: rs_linetypepattern.h 1676 2003-08-08 14:05:26Z 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_LINETYPEPATTERN_H
 #define RS_LINETYPEPATTERN_H
 
 /**
  * Stores a line type pattern.
  */
-class RS_LineTypePattern {
-public:
-    RS_LineTypePattern(int count ...) {
-        va_list ap;
-        int i=0;
-        num = count;
-
-        va_start(ap, count);
-        pattern = new double[num];
-        for (i=0; i<count; i++) {
-            pattern[i] = va_arg(ap, double);
-        }
-        va_end(ap);
-    }
-
-    ~RS_LineTypePattern() {
-        delete[] pattern;
-    }
-
-public:
-    double* pattern;
-    int num;
+class RS_LineTypePattern
+{
+       public:
+               RS_LineTypePattern(int count ...);
+               ~RS_LineTypePattern();
+
+       public:
+               double * pattern;
+               int num;
 };
 
 // Create line patterns
@@ -78,7 +38,7 @@ static RS_LineTypePattern patternDivideLine2(
     6, 6.0, -2.9, 0.15, -2.9, 0.15, -2.9);
 static RS_LineTypePattern patternDivideLineX2(
     6, 24.0, -11.9, 0.15, -11.9, 0.15, -11.9);
-       
+
 static RS_LineTypePattern patternCenterLine(4, 32.0, -6.0, 6.0, -6.0);
 static RS_LineTypePattern patternCenterLine2(4, 16.0, -3.0, 3.0, -3.0);
 static RS_LineTypePattern patternCenterLineX2(4, 64.0, -12.0, 12.0, -12.0);