]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourModelLine.cpp
use uint32_t instead of ulong, etc
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualContourModelLine.cpp
1 #include "manualContourModelLine.h"
2
3 // ----------------------------------------------------------------------------
4 // ----------------------------------------------------------------------------
5 // ----------------------------------------------------------------------------
6
7 //AD: 02-09
8
9 manualContourModelLine::manualContourModelLine()
10 : manualContourModel()
11 {
12         SetNumberOfPointsSpline(20);
13         this->SetCloseContour(false);
14 }
15
16 manualContourModelLine::~manualContourModelLine()
17 {
18 }
19
20
21 // ----------------------------------------------------------------------------
22 manualContourModelLine * manualContourModelLine :: Clone()  // virtual 
23 {
24         manualContourModelLine * clone = new manualContourModelLine();
25         CopyAttributesTo(clone);
26         return clone;
27 }
28
29 // ---------------------------------------------------------------------------
30
31 void manualContourModelLine::CopyAttributesTo( manualContourModelLine * cloneObject)
32 {
33         manualContourModel::CopyAttributesTo(cloneObject);
34 }
35
36 //----------------------------------------------------------------
37 int manualContourModelLine::GetTypeModel() //virtual 
38 {
39         return 6;
40 }
41
42
43 //----------------------------------------------------------------
44 /*
45 void manualContourModelLine::GetSpline_i_Point(int i, double *x, double *y, double *z) // virtual
46 {
47         int np  = GetSizeLstPoints();
48         if (np==0)
49         {
50                 *x      = 0;
51                 *y      = 0;
52                 *z      = 0;
53         }
54         if (np==1)
55         {
56                 manualPoint     *mp;
57                 mp      = GetManualPoint(0);
58                 *x      = mp->GetX();
59                 *y      = mp->GetY();
60                 *z      = mp->GetZ();
61         }
62         if (np==2)
63         {
64                 manualPoint     *mp;
65
66                 if (i==0)
67                 {
68                         mp = GetManualPoint(0);
69                 } 
70                 else if (i==1)
71                 {
72                         mp = GetManualPoint(1);
73                 }
74
75                 *x      = mp->GetX();
76                 *y      = mp->GetY();
77                 *z      = mp->GetZ();
78         }
79
80 }
81 */
82