X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxEmptyPanelWidget_2.h;fp=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxEmptyPanelWidget_2.h;h=0000000000000000000000000000000000000000;hb=a4ee3758aa0477f677fb981e2c4d6e29995e8db8;hp=831a951ffd2a4a795f49e6934c5840c1ca8a546b;hpb=cc20770ee090848c31a8f18c277d89f2b904e087;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxEmptyPanelWidget_2.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxEmptyPanelWidget_2.h deleted file mode 100644 index 831a951..0000000 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxEmptyPanelWidget_2.h +++ /dev/null @@ -1,149 +0,0 @@ - -#ifndef EMPTY_PANEL_WIDGET_2_H -#define EMPTY_PANEL_WIDGET_2_H - -#include - -#include -#include -#include -#include - -#include "wxVTKRenderWindowInteractor.h" -#include "wxSurfaceWidget.h" -#include "wxVtkBaseView.h" -#include -#include -#include -#include - -//------------------------------------------------------------------ -//------------------------------------------------------------------ -//------------------------------------------------------------------ - -class TreeExtraction_MH_JFC : public vtkObject -{ -public: - static TreeExtraction_MH_JFC *New(); - virtual void SetInput(marExperiment *input); - void SetBranchLevel(int branchLevel); - marExperiment *GetInput(); - vtkImageData *GetVolume(); - void Update(); - void SetCleanTreeLevel( int cleanLevel ); - -protected: - TreeExtraction_MH_JFC(); - ~TreeExtraction_MH_JFC(); - void Execute( int count , int sens=1 , double *vit=NULL , int cleanLevel=0); - -private: - double _cleanLevel; - int _branchLevel; - carotidaBifurcacion *_prgov; - vtkImageData *_imagedataResult; - marExperiment *_marExperiment; - void Reset(); - void InitImagaDataResult(); - void BruleVolume( vtkImageData *imagedata, int x,int y,int z,int r,int value ); - void BruleVolume( vtkImageData *imagedata, vtkPolyData *inputAxisRadio,int value ); - void FindVit( marExperiment *newExperiment , int actualAxis , double *pointBif , double *vit ); -}; - -//------------------------------------------------------------------ -//------------------------------------------------------------------ -//------------------------------------------------------------------ - -class wxEmptyPanelWidget_2: public wxPanel{ -public: - wxEmptyPanelWidget_2(wxWindow *parentmar,marInterface *mar); - ~wxEmptyPanelWidget_2(); - void ConfigureVTK(); - void Refresh(); - void OnOpacity_OrigVol(wxScrollEvent& event); // Original Volume - void OnOpacity_Res1VolJF(wxScrollEvent& event); // Result 1 Volume JF - void OnOpacity_Res2VolJF(wxScrollEvent& event); // Result 2 Volume JF - void OnIsoValue(wxScrollEvent& event); - void OnBtnExtractTree1_JF(wxCommandEvent& event); - void OnBtnExtractTree2_JF(wxCommandEvent& event); - void OnBtnEraseTree1_JF(wxCommandEvent& event); - void OnBtnEraseTree2_JF(wxCommandEvent& event); - void OnBtnExtractTree_MH_JFC(wxCommandEvent& event); - void OnBtnEraseTree_MH_JFC(wxCommandEvent& event); - void OnOpacity_ResVolMHJF(wxScrollEvent& event); // Result Volume MH+JFC - void OnBranchLevel(wxScrollEvent& event); // MH+JFC - void OnIsoValue_MH_JFC(wxScrollEvent& event); - void OnCleanTree_MH_JFC(wxScrollEvent& event); - void OnSensibility(wxScrollEvent& event); - -private: - - TreeExtraction_MH_JFC *_treeExtraction; - - // Original Volume - vtkMarchingCubes *_mCubes; - vtkPolyDataMapper *_surfMapper; - vtkActor *_surfActor; - - // Result 1 volume + Axis - axisExtractor *_1_prgov; - vtkPolyDataMapper *_1_mapfinal; - vtkActor *_1_stripfinal; - vtkPolyDataMapper *_1_isoMapperMC6; - vtkActor *_1_isoActorMC6; - vtkMarchingCubes *_1_isoMC6; - - // Result 2 volume + Axis - axisExtractor02 *_2_prgov; - vtkPolyDataMapper *_2_mapfinal; - vtkActor *_2_stripfinal; - vtkPolyDataMapper *_2_isoMapperMC6; - vtkActor *_2_isoActorMC6; - vtkMarchingCubes *_2_isoMC6; - double _sensibility_JF; - - - // Result tree MH_JFC - vtkPolyDataMapper *_isoMapperMC1; - vtkActor *_isoActorMC1; - vtkMarchingCubes *_isoMC1; - vtkImageThreshold *_imageThresholdMC1; - - std::vector< vtkActor* > _lstBranchActor; - std::vector< vtkPolyData* > _lstAxisVtk; - std::vector< vtkPolyDataMapper* > _lstBranchMapper; - - wxSlider *_opacity_OrigVol; - wxSlider *_opacity_Res1VolJF; - wxSlider *_opacity_Res2VolJF; - wxSlider *_sl_sensibility_JF; - wxSlider *_isoValue; - wxSlider *_branchLevel; - wxSlider *_opacity_ResVolMHJF; - wxSlider *_isoValue_MH_JFC; - wxSlider *_cleanTree_MH_JFC; - - wxVtk3DBaseView *_imageviewer3D; - wxPanel *CreateControlPanel(wxWindow *parent); - wxPanel *CreateViewPanel(wxWindow *parent); - - //Maracas - marInterface *_mar; - wxSurfaceWidget *_maracasSurfaceWidget; - - void ResetTree1_JF(); - void ResetTree2_JF(); - void ExtractTree1_JF(int x, int y, int z); - void ExtractTree2_JF(int x, int y, int z); - - void ResetTree_MH_JFC(); - void PaintVascularTree_MH_JFC(marExperiment * newExperiment); - void PaintVascularVolume_MH_JFC(vtkImageData * image); - void WriteSignals(marExperiment *newExperiment); -}; - -#endif // EMPTY_PANEL_WIDGET_2_H - - - -