]> Shamusworld >> Repos - architektonas/blob - src/base/rs_linetypepattern.cpp
aab37aced0edf589bd9a78f7d4cdb4980d0ae75c
[architektonas] / src / base / rs_linetypepattern.cpp
1 // rs_linetypepattern.cpp
2 //
3 // Part of the Architektonas Project
4 // Originally part of QCad Community Edition by Andrew Mustun
5 // Extensively rewritten and refactored by James L. Hammons
6 // (C) 2010 Underground Software
7 //
8 // JLH = James L. Hammons <jlhamm@acm.org>
9 //
10 // Who  When        What
11 // ---  ----------  -----------------------------------------------------------
12 // JLH  06/01/2010  Added this text. :-)
13 //
14
15 #include "rs_linetypepattern.h"
16
17 RS_LineTypePattern::RS_LineTypePattern(int count ...)
18 {
19         va_list ap;
20         int i = 0;
21         num = count;
22
23         va_start(ap, count);
24         pattern = new double[num];
25
26         for(i=0; i<count; i++)
27                 pattern[i] = va_arg(ap, double);
28
29         va_end(ap);
30 }
31
32 RS_LineTypePattern::~RS_LineTypePattern()
33 {
34         delete[] pattern;
35 }