]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/Contour/ContourExtractData.h
RaC Changes that includes a Polygon contour in creaMaracasVisu. It includes changes
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / Contour / ContourExtractData.h
index 6196303879cbe1d8471acb1815b76daa103f7971..6123e66b95c40b54b8481e4978c55e8ac90acd2b 100644 (file)
@@ -18,7 +18,7 @@
        void SetImage( vtkImageData* imagedata);
        void SetZtoBeAnalys( int z );
 
-       void SetLstManualContourModel( std::vector<manualContourModel*> lstManConMod);
+       void SetLstManualContourModel( std::vector<manualBaseModel*> lstManConMod);
        void GetValuesInsideCrown(      std::vector<double> *pLstValue,
                                                                std::vector<double> *pLstValuePosX,
                                                                std::vector<double> *pLstValuePosY,
                                                                double *vol_average, double *vol_standardeviation);
          
          void ResetImageResult(int z);
-         
+         void InitLstContoursLinesYPoints();
+         bool isInside(int x, int y, int typeOperation );
+       
+         //
+         // Asigns the sizeImageY.
+         // @param pSizeImageY - int
+         void SetSizeImageY(int pSizeImageY);
          
   private:
        bool                                                            okImagesResults;
-       std::vector<manualContourModel*>        lstManConMod;
+
+       //
+       // List of contours to obtain the respective statistics.
+       //
+       std::vector<manualBaseModel*>   lstManConMod;
+
+       //
+       // Operation Type (AND,OR,XOR...)
+       //
        int                                                                     _typeOperation;
 
        int                                                                     zImage;
        vtkImageData                                            *imagedataValueResult;
        vtkImageData                                            *imagedataMaskResult;
 
-       bool isInside(int x, int y, int typeOperation );
+       //Size Y
+       int _sizeImageY;
+       
+       //
+       // Asigns the minimum and maximum points of the contour model in parameter.
+       // @param *minPoint - int
+       // @param *maxPoint - int
+       // @param *manualcontourmodel - manualBaseModel
+       //
        void GetMinMaxPoint(int *minPoint, 
                                                int *maxPoint, 
-                                               manualContourModel *manualcontourmodel );
+                                               manualBaseModel *manualcontourmodel );
+       //
+       // Obtain the minimum and maximum point among the contours. The value is saved in the parameter
+       // pointers
+       // @param *minPoint - int pointer to the minPoint
+       // @param *maxPoint - int pointer to the maxPoint
+       //
        void GetMinMaxPoint_Of_LstManConMod(    int *minPoint, 
                                                                                        int *maxPoint);
 
          std::vector< std::vector< std::vector<double> > >             _lstlstlstVecX2;
          std::vector< std::vector< std::vector<double> > >             _lstlstlstVecY2;
          void Fill_lstlstlstVecXY(int iContour, int sizeY);
-         void InitLstContoursLinesYPoints();
+         
+
 
   };