1 #ifndef __ContourPropagation_h_INCLUDED__
2 #define __ContourPropagation_h_INCLUDED__
4 #include "Propagation.h"
5 #include "ExtractControlPoints2D.h"
6 #include "vtkImageData.h"
7 #include "vectorFunctions.h"
10 class creaMaracasVisu_EXPORT ContourPropagation
14 ~ContourPropagation();
16 void appendContour ( std::vector<double>*InX,
17 std::vector<double>*InY,
18 std::vector<double>*InZ );
19 void GetContour ( int id, std::vector<double>*vecX,
20 std::vector<double>*vecY,
21 std::vector<double>*vecZ );
23 void GetInitialControlPoints ( int id, std::vector<double>*vecX,
24 std::vector<double>*vecY,
25 std::vector<double>*vecZ);
26 void GetControlPoints ( int id, std::vector<double>*vecX,
27 std::vector<double>*vecY,
28 std::vector<double>*vecZ );
31 void CalculeSplinePropagation();
32 void GetControlPoints ( int id, double samp,
33 std::vector<double>*vecX,
34 std::vector<double>*vecY,
35 std::vector<double>*vecZ );
37 int FindIdWithZ ( double z);
40 void getMaxMinZ ( double *minz, double *maxz);
41 void setInterpolationNumber ( int num );
44 //TEST CLASSES FOR BBTK
45 void appendContour ( );
46 vtkImageData* GetKeyContours ( std::vector<double>*vecX,
47 std::vector<double>*vecY,
48 std::vector<double>*vecZ,
49 std::vector<int>*vecS );
51 bool ifSliceKeyContourExist(int slice);
55 bool mustOrderAppend( );
57 void OrdenarSliceKeyContourVec();
61 AutoControlPoints *_autoc;
62 ExtractControlPoints2D *_ext2D;
64 std::vector<double> _InX;
65 std::vector<double> _InY;
66 std::vector<double> _InZ;
67 std::vector<int> _InS;
68 std::vector<int> _sliceKeyContourVec;
70 std::vector<Vector> _planevector;
73 #endif //__ContourPropagation_h_INCLUDED__