]> Creatis software - creaContours.git/blobdiff - lib/Interface_ManagerContour_NDimensions/wxContourViewPanel.h
Version with out wxEventHandler
[creaContours.git] / lib / Interface_ManagerContour_NDimensions / wxContourViewPanel.h
index 5c63d1b5c5bc4e2e1431b2090d88bc74d465dcf8..729bdb3f959fa3428d7e3f4bd2ea696d14e21135 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 "wxVtkBaseView.h"
 #include <iostream>
 #include <wx/event.h>
+#include "wxVtkBaseView_SceneManager.h"
+#include "manualContour.h"
+
+#include <vtkImageMapToWindowLevelColors.h>
+
+
 //------------------------------------------------------------------------------------------------------------
 // Events declaration
 //------------------------------------------------------------------------------------------------------------
@@ -276,14 +282,55 @@ 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,manualContourModel* 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);
+private:
+       
        //------------------------------------------------------------------------------------------------------------
        // Attributtes
        //------------------------------------------------------------------------------------------------------------
+       wxVtkBaseView_SceneManager* _sceneManager;
        /*
        * Represents the outer sizer of the ContourViewPanel
        */
@@ -318,6 +365,13 @@ private:
        wxEvtHandler * _eventHandler;
        
 //EED
+
+       //------------------------------------------------------------------------------------------------------------
+       //  Private methods
+       //------------------------------------------------------------------------------------------------------------
+
+       
+       
        wxVtkMPR2DView * GetwxVtkMPR2DView();