]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.h
*** empty log message ***
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.h
index 80ca4e22caa7914be03f8bf2ceaf041824b4edbf..46b6a2ab7bc0ba6314cf110c1ddc81af0f16b274 100644 (file)
 #include "wxInstantChooserPanel.h"
 #include "wxContourViewPanel.h"
 
-
-
 //#include "ContourWorkspace.h"
 #include "ContourExtractData.h"
 #include "PerformingOperation.h"
 
-
+#include "manualLineControler.h"
+#include "manualContourModelLine.h"
+#include "manualViewLine.h"
 
 //#include "ContourThing.h"
 //#include "AxeThing.h"
@@ -134,11 +134,11 @@ class wxContourMainFrame : public wxPanel {
        // Creational and initialization methods
        //------------------------------------------------------------------------------------------------------------
 
-       void setVectImages( std::vector<vtkImageData*> images );
+       void setVectImages(std::vector<vtkImageData*> imgs);
 
-       bool configurePanels(wxAuiNotebook * theNoteBook );
+       bool configurePanels( );
 
-       void setNotebook( wxAuiNotebook * theNoteBook );
+       bool addNewPanel(wxPanel* panel);
 
        wxAuiNotebook * createNotebook();
 
@@ -153,6 +153,12 @@ class wxContourMainFrame : public wxPanel {
        void setInstantChooserPanel(  wxInstantChooserPanel * theInstantChooserPanel );
 
 
+       void getMaskValue(vtkImageData ** mask,vtkImageData ** value,int typeContourGroup);
+
+       void SaveImageResult(std::string directory,std::string namefile, vtkImageData* mask,vtkImageData* value);
+
+       void ShowToolsPanel(bool show);
+
 
 //     void setButtonsBar(  wxContour_ButtonsBar * theButtonsBar );
 //     void setGrid(  wxContour_Grid * theGridPanel );
@@ -232,7 +238,7 @@ class wxContourMainFrame : public wxPanel {
        void onLoad();
        void onSave();
        
-       void openContours( FILE *pFile, bool staticContour );
+       void openContours( FILE *pFile, int version );
 
        void RefreshInterface();
 
@@ -255,8 +261,13 @@ class wxContourMainFrame : public wxPanel {
 
        //AD
        void onMirror();
+       void onThreshold();
+       void onThresholdChange();
+       void onThresholdInterpolation(bool interpolate);
+       void onThresholdChangeOpacity (int opacity);
+       void onThresholdRemove();
 
-       void onThreshold(int minVal, int maxVal);
+//==================================================================================================== 
 
        void showAxis(bool show);
 
@@ -285,11 +296,12 @@ class wxContourMainFrame : public wxPanel {
 
        void onInformationContourLabels(int typeContourGroup,int selection,int minimumZ,int maximumZ);
 
-       void onSaveResults(std::string directory,std::string namefile, std::string filename, int typeContourGroup);
+       void onSaveResults(std::string directory,std::string namefile, std::string filename, 
+               int typeContourGroup, bool XYZValues, bool contourImage, bool statistics);
 
        void SaveValuesXYZ(std::string directory,std::string namefile, int typeContourGroup);
 
-       void SaveImageResult(std::string directory,std::string namefile, int typeContourGroup);
+       
 
        void onChangeInstantInstantPanel(std::string name,int value, int minshow, int maxshow);
 
@@ -328,13 +340,20 @@ private:
 
 
        wxAuiManager m_mgr;
-    /*
-       wxArrayString m_perspectives;
-        wxMenu* m_perspectives_menu;
-   */
-        long m_notebook_style;
-        long m_notebook_theme;
-        int _numberOfVariablesStatistics;
+       wxAuiNotebook * notebook;
+
+    long m_notebook_style;
+    long m_notebook_theme;
+    int _numberOfVariablesStatistics;
+       
+       vtkImageReslice * _imageReslicer;
+       vtkLookupTable * _thresholdTable;
+       vtkImageMapToColors * _thresholdMapper;
+       vtkImageActor * _thresholdActor;
+
+       std::vector<vtkImageData*> _images;
+
+       bool _actorPresent;
 
        //OutlineModelManager * _modelManager;
 
@@ -377,6 +396,7 @@ private:
 
        void saveState();
        void loadState(std::string filename);
+       void loadContours( FILE *pFile );
 
        void saveFileWithContours( std::string filename );