]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBullEyeSector.cpp
7f666dee245735308b48de597fe36aa413944091
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewBullEyeSector.cpp
1 #include "manualViewBullEyeSector.h"
2
3 // ----------------------------------------------------------------------------
4 // ----------------------------------------------------------------------------
5 // ----------------------------------------------------------------------------
6 manualViewBullEyeSector::manualViewBullEyeSector()
7 {
8 }
9
10 // ----------------------------------------------------------------------------
11 void manualViewBullEyeSector::RefreshContour()
12 {
13 //EED004
14         int i,nps;
15         double x,y,z;
16 //----------------------------------
17
18         _manContModel->UpdateSpline();
19     nps = _manContModel->GetNumberOfPointsSpline();
20
21         if ( _pts!=NULL )
22         {
23                 for( i = 0; i < nps; i++ )
24                 {
25                         _manContModel->GetSpline_i_Point(i,&x,&y,&z);
26                         _pts->SetPoint(i , x*_spc[0] , y*_spc[1] , z*_spc[2] );
27                 }// for
28         }
29
30 }