X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualContour%2FmanualViewBaseContour.h;h=1120152be15da3656d7f4ad19ecc2c2d666279c8;hb=c7ed224abb3d3ea251339303f03e8c170d562115;hp=d773a7e3b9e4c63acf57ea4613dad1fa50c05c42;hpb=e6ad041870eb71089ffa29ff8b8c78b84a26b9b3;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.h index d773a7e..1120152 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewBaseContour.h @@ -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();