//#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"
// 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);
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 );
void onLoad();
void onSave();
- void openContours( FILE *pFile, bool staticContour );
+ void openContours( FILE *pFile, int version );
void RefreshInterface();
//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();
//====================================================================================================
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);
wxAuiManager m_mgr;
- /*
- wxArrayString m_perspectives;
- wxMenu* m_perspectives_menu;
- */
+ wxAuiNotebook * notebook;
+
+ long m_notebook_style;
+ long m_notebook_theme;
+ int _numberOfVariablesStatistics;
+
+ vtkImageReslice * _imageReslicer;
+ vtkLookupTable * _thresholdTable;
+ vtkImageMapToColors * _thresholdMapper;
+ vtkImageActor * _thresholdActor;
+
+ std::vector<vtkImageData*> _images;
- wxAuiNotebook * notebook;
- long m_notebook_style;
- long m_notebook_theme;
- int _numberOfVariablesStatistics;
+ bool _actorPresent;
//OutlineModelManager * _modelManager;
void saveState();
void loadState(std::string filename);
+ void loadContours( FILE *pFile );
void saveFileWithContours( std::string filename );