]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.h
Changes with manualBaseModel. It improves the functionality with the new
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourViewPanel.h
index 5c63d1b5c5bc4e2e1431b2090d88bc74d465dcf8..4b688478afa05f0f15330f341ce184eef9d25c7c 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef __wxContourViewPanel_h_INCLUDED_H__
-#define __wxContourViewPanel_h_INCLUDED_H__
+#ifndef __wxContourViewPaneL_h_INCLUDED_H__
+#define __wxContourViewPaneL_h_INCLUDED_H__
 
 
 // -----------------------------------------------------------------------------------------------------------
 #include "mBarRange.h"
 #include "wxMaracas_N_ViewersWidget.h"
 #include "vtkImageData.h"
-#include <manualContour.h>
 #include "wxVtkBaseView.h"
 #include <iostream>
 #include <wx/event.h>
+#include "wxVtkBaseView_SceneManager.h"
+#include "manualContourModel.h"
+
+#include <vtkImageMapToWindowLevelColors.h>
+
+
 //------------------------------------------------------------------------------------------------------------
 // Events declaration
 //------------------------------------------------------------------------------------------------------------
@@ -37,7 +42,9 @@ BEGIN_DECLARE_EVENT_TYPES()
 END_DECLARE_EVENT_TYPES()
 
 
-/** file wxContourViewPanel.h */
+/** file wx
+
+ViewPanel.h */
 
 //------------------------------------------------------------------------------------------------------------
 // Class definition
@@ -276,14 +283,59 @@ class wxContourViewPanel : public wxPanel {// public wxScrolledWindow {
        void    Refresh();
 
 
-private:
-       //------------------------------------------------------------------------------------------------------------
-       //  Private methods
-       //------------------------------------------------------------------------------------------------------------
+//this method should be deleted
+       wxVtkBaseView_SceneManager* getSceneManager();
+////////////7
+       void initializeScenceManager();
+       bool isEditableCControler(std::string theKeyName);
+       void removeFromScene(std::string theKeyName);
+
+/////////////////////////////////////////////////////
+       void onChangeInstant(wxCommandEvent& event);
+    void onCreateMultipleROI (wxCommandEvent& event);
+       void onCreateROI (wxCommandEvent& event);
+       void onStopCreateROI (wxCommandEvent& event);
+       void onChangedDeep (wxCommandEvent& event);
+       void onActionButtonPressed(wxCommandEvent& event);
+
+       void removeSceneContours();
+       void addNameWrapperToScene();
+       
+       std::vector<std::string> getSelectedObjects();
+
+       void RefreshInterface();
+
+       vtkImageData* getImageData();
+
+       void configureViewControlTo(std::string theName,manualBaseModel* manModelContour,double* spc,int typeofcontour);
+
+       int GetImageDataSizeZ();
+
+       void GetImageDataRange(double *range);
+
+       void SetWidthContour(double width );
 
+       int getColorWindow();
+
+       int getWindowLevel();
+
+       void onBrigthnessColorWindowLevel(int colorwindow,int windowlevel);
+
+       void onInterpolation(bool interpolate);
+
+       void GetPointsOfActualContour( std::vector<double> *vecX, std::vector<double> *vecY, std::vector<double> *vecZ );
+
+       void changeImage(vtkImageData* img);
+
+       void changeDeep();
+
+       void setImageSlice(int z);
+private:
+       
        //------------------------------------------------------------------------------------------------------------
        // Attributtes
        //------------------------------------------------------------------------------------------------------------
+       wxVtkBaseView_SceneManager* _sceneManager;
        /*
        * Represents the outer sizer of the ContourViewPanel
        */
@@ -318,6 +370,13 @@ private:
        wxEvtHandler * _eventHandler;
        
 //EED
+
+       //------------------------------------------------------------------------------------------------------------
+       //  Private methods
+       //------------------------------------------------------------------------------------------------------------
+
+       
+       
        wxVtkMPR2DView * GetwxVtkMPR2DView();