-#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
//------------------------------------------------------------------------------------------------------------
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
*/
wxEvtHandler * _eventHandler;
//EED
+
+ //------------------------------------------------------------------------------------------------------------
+ // Private methods
+ //------------------------------------------------------------------------------------------------------------
+
+
+
wxVtkMPR2DView * GetwxVtkMPR2DView();