]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualBaseModel.h
Clean code
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualBaseModel.h
index 7a227bc06026318818000fbbd2f53f88ecbe46c0..25057a2bf126302ecd3c59d44a0a3ed068c8dd02 100644 (file)
@@ -42,7 +42,7 @@
 #include <vtkDataSetMapper.h>
 #include <vtkUnstructuredGrid.h>
 
-#include "wxVTKRenderWindowInteractor.h"
+#include "creawxVTKRenderWindowInteractor.h"
 
 #include <vector>
 #include "wxVtkBaseView.h"
@@ -84,7 +84,7 @@ public:
        virtual int                             GetIdPoint(double x, double y, double z, int i_range,int type);
        virtual manualPoint*    GetManualPoint(int id);
        virtual int                             GetSizeLstPoints();
-       virtual double                  GetPathSize();
+       virtual double                  GetPathSize(double *spc);
        virtual void                    Transform_Ax_Plus_B (double Ax, double Bx, double Ay, double By);
        virtual void                    GetSpline_i_Point(int i, double *x, double *y, double *z);
        virtual void                    GetSpline_t_Point(double t, double *x, double *y, double *z);
@@ -101,7 +101,7 @@ public:
        // @return std::vector<manualBaseModel*>
        //
        virtual std::vector<manualBaseModel*> ExploseModel(  );
-       virtual double                  GetPathArea();
+       virtual double                  GetPathArea(double *spc);
        virtual void                    GetNearestPointAndNormal(double *p, double *rp,  double *rn);
 
        virtual void                    SetCloseContour(bool closeContour);
@@ -124,7 +124,10 @@ public:
        * Assigns the parameter value to the label
        * @param newLabel New label of the contour
        */
-       virtual void SetLabel(std::string newLabel);
+       void SetLabel(std::string newLabel);
+       std::string GetLabel();
+       void SetLabel2(std::string newLabel);
+       std::string GetLabel2();
        
        /*
        * Assigns the parameter value to the real size
@@ -132,10 +135,6 @@ public:
        */
        virtual void SetRealSize(double newRealSize);
        
-       /**
-       * Returns the label of the contour
-       */
-       virtual std::string GetLabel();
 
        /**
        * Returns the real size in milimeters of the contour
@@ -158,6 +157,12 @@ protected:
        int                                                     _sizePointsContour;
        std::vector<manualPoint*>       _lstPoints;
 
+       /**
+       * Represents the label associated with the contour
+       */
+       std::string                                     _label;
+       std::string                                     _label2;
+
 };