26 #ifndef __wxContourViewPaneL_h_INCLUDED_H__
27 #define __wxContourViewPaneL_h_INCLUDED_H__
35 #include <wx/wxprec.h>
43 #include <wx/scrolwin.h>
49 #include "mBarRange.h"
50 #include "wxMaracas_N_ViewersWidget.h"
51 #include "vtkImageData.h"
52 #include "wxVtkBaseView.h"
56 #include "manualContourModel.h"
58 #include <vtkImageMapToWindowLevelColors.h>
65 BEGIN_DECLARE_EVENT_TYPES()
66 DECLARE_EVENT_TYPE(wxINSTANT_CHANGE,400)
67 END_DECLARE_EVENT_TYPES()
86 wxContourViewPanel( vtkImageData * theShowingImage, wxWindow *parent,
const wxPoint& pos=wxDefaultPosition,
const wxSize& size = wxDefaultSize,
long style= wxDEFAULT_FRAME_STYLE | wxSUNKEN_BORDER,
int vertStart=1,
int vertEnd=1,
int horzStart=1,
int horzEnd=1 );
94 void setWxEventHandler( wxEvtHandler * theEventHandler );
96 void createHorizontalBar(
int horzStart,
int horzEnd);
98 void createVerticalBar(
int vertStart,
int vertEnd);
100 void createViewPanel();
109 void onBarrange_Horizontal(wxCommandEvent& event);
113 void onActualChange_Bar_Horizontal(wxCommandEvent& event);
117 void onStartChange_Bar_Horizontal(wxCommandEvent& event);
121 void onEndChange_Bar_Horizontal(wxCommandEvent& event);
125 void onSelectionEnd_Horizontal(wxCommandEvent& event);
129 void onMovedBar_Horizontal(wxCommandEvent& event);
139 void onBarrange_Vertical(wxCommandEvent& event);
143 void onActualChange_Bar_Vertical(wxCommandEvent& event);
147 void onStartChange_Bar_Vertical(wxCommandEvent& event);
151 void onEndChange_Bar_Vertical(wxCommandEvent& event);
155 void onSelectionEnd_Vertical(wxCommandEvent& event);
159 void onMovedBar_Vertical(wxCommandEvent& event);
175 void setVerticalRepresentedValues(
int minRepresented,
int maxRepresented );
182 void setHorizontalRepresentedValues(
int minRepresented,
int maxRepresented );
188 int getStartVertical();
193 int getEndVertical();
198 int getActualVertical();
204 void setStartVertical(
int nwValue);
209 void setEndVertical(
int nwValue);
214 void setActualVertical(
int nwValue);
220 int getStartHorizontal();
225 int getEndHorizontal();
230 int getActualHorizontal();
236 void setStartHorizontal(
int nwValue);
241 void setEndHorizontal(
int nwValue);
246 void setActualHorizontal(
int nwValue);
257 void setHorizontalConcept( std::string theHorizontalConcept,
int minRepresent,
int maxRepresent,
int minShowed,
int maxShowed,
int actualShow );
268 void setVerticalConcept( std::string theVerticalConcept,
int minRepresent,
int maxRepresent,
int minShowed,
int maxShowed,
int actualShow );
274 void setHorizontalConceptName( std::string theHorizontalConcept );
280 std::string getHorizontalConceptName( );
286 void setVerticalConceptName( std::string theVerticalConcept );
292 std::string getVerticalConceptName( );
298 void getSpacing(
double * spacing );
300 wxVtkBaseView* getWxVtkBaseView();
302 double getCurrentDeep();
304 void SetVisibleAxis(
bool ok);
314 void initializeScenceManager();
315 bool isEditableCControler(std::string theKeyName);
316 void removeFromScene(std::string theKeyName);
319 void onChangeInstant(wxCommandEvent& event);
320 void onCreateMultipleROI (wxCommandEvent& event);
321 void onCreateROI (wxCommandEvent& event);
322 void onStopCreateROI (wxCommandEvent& event);
323 void onChangedDeep (wxCommandEvent& event);
324 void onActionButtonPressed(wxCommandEvent& event);
326 void removeSceneContours();
327 void addNameWrapperToScene();
329 std::vector<std::string> getSelectedObjects();
331 void RefreshInterface();
333 vtkImageData* getImageData();
335 void configureViewControlTo(std::string theName,manualBaseModel* manModelContour,
double* spc,
int typeofcontour);
337 int GetImageDataSizeZ();
339 void GetImageDataRange(
double *range);
341 void SetWidthContour(
double width );
343 int getColorWindow();
345 int getWindowLevel();
347 void onBrigthnessColorWindowLevel(
int colorwindow,
int windowlevel);
349 void onInterpolation(
bool interpolate);
351 void GetPointsOfActualContour( std::vector<double> *vecX, std::vector<double> *vecY, std::vector<double> *vecZ );
353 void changeImage(vtkImageData* img);
357 void setImageSlice(
int z);
389 double last_spacing[3];
405 wxVtkMPR2DView * GetwxVtkMPR2DView();
413 #endif // __wxContour_ViewPanel__