]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourMainFrame.h
*** empty log message ***
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourMainFrame.h
index 981eb92192ef7661359d25317c420d66bb6c68cd..d70c1eb7407ae0d48f65a2350d33dff3e737ea95 100644 (file)
 //#include "wxVtkBaseView_SceneManager.h"
 #include "wxInstantChooserPanel.h"
 #include "wxContourViewPanel.h"
-#include "wxThresholdPanel.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"
@@ -135,10 +134,12 @@ class wxContourMainFrame : public wxPanel {
        // Creational and initialization methods
        //------------------------------------------------------------------------------------------------------------
 
-       void setVectImages( std::vector<vtkImageData*> images );
+       void setVectImages(std::vector<vtkImageData*> imgs);
 
        bool configurePanels( );
 
+       bool addNewPanel(wxPanel* panel);
+
        wxAuiNotebook * createNotebook();
 
        void createInstantChooserPanel(wxAuiNotebook * parent);
@@ -152,10 +153,12 @@ class wxContourMainFrame : public wxPanel {
        void setInstantChooserPanel(  wxInstantChooserPanel * theInstantChooserPanel );
 
 
-       void getMaskValue(vtkImageData* mask,vtkImageData* value,int typeContourGroup);
+       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 );
@@ -258,10 +261,11 @@ class wxContourMainFrame : public wxPanel {
 
        //AD
        void onMirror();
-
-       void onThreshold(int minVal, int maxVal);
-
-       bool onThresholdPanel(wxPanel* panel);
+       void onThreshold();
+       void onThresholdChange();
+       void onThresholdInterpolation(bool interpolate);
+       void onThresholdChangeOpacity (int opacity);
+       void onThresholdRemove();
 
 //==================================================================================================== 
 
@@ -292,7 +296,8 @@ 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);
 
@@ -335,15 +340,20 @@ private:
 
 
        wxAuiManager m_mgr;
-    /*
-       wxArrayString m_perspectives;
-        wxMenu* m_perspectives_menu;
-   */
-
-               wxAuiNotebook * notebook;
-        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;