]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.h
#3058 creaMaracasVisu Feature New Normal - optimizing of manualContourView of a...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewBaseContour.h
index d773a7e3b9e4c63acf57ea4613dad1fa50c05c42..1120152be15da3656d7f4ad19ecc2c2d666279c8 100644 (file)
@@ -130,7 +130,7 @@ public:
 
        virtual void    Refresh();
        int             GetNumberOfPoints();                                            // ??? 
-       //int           GetNumberOfPointsSpline();                              //JSTG 25-02-08 In ContourModel is the same method 
+       //int   GetNumberOfPointsSpline();                                      //JSTG 25-02-08 In ContourModel is the same method 
        //void  SetNumberOfPointsSpline(int size);                      //JSTG 25-02-08 In ContourModel is the same method 
 
        void    CreateNewContour();
@@ -142,7 +142,7 @@ public:
        void    UpdateColorActor();
 
        void    SetRange(double range);
-       double          GetRange();
+       double  GetRange();
        void    SetZ(int z);
        int             GetZ();
 
@@ -189,15 +189,18 @@ public:
 
        virtual void                    ConstructVTKObjects();
 
+       void SetCellArray(bool type);
 //---------------------------------------------------
 // PRIVATE METHODS & ATTS
 //---------------------------------------------------
 
 private:
 
-       vtkPolyData                                             *_pd;
-       vtkActor                                                *_contourVtkActor;
-       vtkPolyDataMapper                               *_bboxMapper;
+       vtkPolyData                                                     *_pd;
+       vtkCellArray                                            *_splineCell;
+       vtkCellArray                                            *_lineCell;
+       vtkActor                                                        *_contourVtkActor;
+       vtkPolyDataMapper                                       *_bboxMapper;
 
        void                    DeleteVtkObjects();
        
@@ -208,46 +211,46 @@ private:
 
 protected:
 
-       double                                  _range;
+       double                                                          _range;
 
-       double                                  _coulorEdit_r;
-       double                                  _coulorEdit_g;
-       double                                  _coulorEdit_b;
-       double                                  _coulorNormal_r;
-       double                                  _coulorNormal_g;
-       double                                  _coulorNormal_b;
-       double                                  _coulorSelection_r;
-       double                                  _coulorSelection_g;
-       double                                  _coulorSelection_b;
-       double                                  _widthline;
+       double                                                          _coulorEdit_r;
+       double                                                          _coulorEdit_g;
+       double                                                          _coulorEdit_b;
+       double                                                          _coulorNormal_r;
+       double                                                          _coulorNormal_g;
+       double                                                          _coulorNormal_b;
+       double                                                          _coulorSelection_r;
+       double                                                          _coulorSelection_g;
+       double                                                          _coulorSelection_b;
+       double                                                          _widthline;
 
        //
        // Reference to VTKBaseView
        //
-       wxVtkBaseView                           *_wxvtkbaseview;
+       wxVtkBaseView                                           *_wxvtkbaseview;
 
        //
        // Is the contour selected
        //
-       bool                                    _selected;
-       bool                                    *_editable;
-       bool                                    _posibleSelected;
-       bool                                    _viewControlPoints;
+       bool                                                            _selected;
+       bool                                                            *_editable;
+       bool                                                            _posibleSelected;
+       bool                                                            _viewControlPoints;
 
        // text
-       bool                                    _show_text;
-       int                                     _id_viewPoint_for_text;
-       vtkTextActor                            *_textActor;
-       vtkTextActor                            *_textActor2;
+       bool                                                            _show_text;
+       int                                                                     _id_viewPoint_for_text;
+       vtkTextActor                                            *_textActor;
+       vtkTextActor                                            *_textActor2;
 
        //
        // Contour model
        //
-       manualBaseModel                         *_manContModel;
+       manualBaseModel                                         *_manContModel;
 
-       vtkPoints                               *_pts;
+       vtkPoints                                                       *_pts;
 // JSTG 25-02-08 --------------------------------------------
-       int                                     _sizePointsContour;
+       int                                                                     _sizePointsContour;
 //-----------------------------------------------------------
 
        //
@@ -258,7 +261,7 @@ protected:
        //
        // Spacing
        //
-       double                                  _spc[3];
+       double                                                          _spc[3];
 
        virtual void    RefreshText();