// Class definition
//------------------------------------------------------------------------------------------------------------
-class wxContourViewPanel : public wxPanel {// public wxScrolledWindow {
-
+class wxContourViewPanel : public wxPanel
+{
public:
-
//------------------------------------------------------------------------------------------------------------
// Constructors & Destructors
//------------------------------------------------------------------------------------------------------------
-
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 );
-
~wxContourViewPanel();
-
//------------------------------------------------------------------------------------------------------------
// Creational and initialization methods
//------------------------------------------------------------------------------------------------------------
-
void setWxEventHandler( wxEvtHandler * theEventHandler );
-
void createHorizontalBar(int horzStart, int horzEnd);
-
void createVerticalBar(int vertStart, int vertEnd);
-
void createViewPanel();
-
//------------------------------------------------------------------------------------------------------------
// Methods for capturing events from the horizontal bar
//------------------------------------------------------------------------------------------------------------
-
/**
* Handles the event wxEVT_TSBAR from the horizontal bar
*/
int GetX();
int GetY();
int GetZ();
+ void SetXY(int x, int y);
void Refresh();
void changeDeep();
void setImageSlice(int z);
+
+
private:
//------------------------------------------------------------------------------------------------------------
// Attributtes
//------------------------------------------------------------------------------------------------------------
- wxVtkBaseView_SceneManager* _sceneManager;
+ wxVtkBaseView_SceneManager *_sceneManager;
/*
* Represents the outer sizer of the ContourViewPanel
*/
- wxFlexGridSizer* outSizer;
+ wxFlexGridSizer *outSizer;
/*
* Represents the panel for viewing
*/
- wxMaracas_N_ViewersWidget * theViewPanel;
+ wxMaracas_N_ViewersWidget *theViewPanel;
/*
* Represents the vertical barrange
*/
- mBarRange * _verticalBar;
+ mBarRange *_verticalBar;
/*
* Represents the horizontal barrange
*/
- mBarRange * _horizontalBar;
-
- vtkImageData * showingVID;
-
- std::string _verticalConceptName;
+ mBarRange *_horizontalBar;
+ vtkImageData *showingVID;
+ std::string _verticalConceptName;
+ std::string _horizontalConceptName;
+ double last_spacing[3];
+ bool _useVerticalBar;
+ bool _useHorizontalBar;
- std::string _horizontalConceptName;
-
- double last_spacing[3];
-
- bool _useVerticalBar;
-
- bool _useHorizontalBar;
-
- wxEvtHandler * _eventHandler;
+ wxEvtHandler *_eventHandler;
//EED