//---------------------------------------------------------------------------------------------------------------- // Class definition include //---------------------------------------------------------------------------------------------------------------- #include "wxThresholdPanel.h" //---------------------------------------------------------------------------------------------------------------- // Other includes //---------------------------------------------------------------------------------------------------------------- //------------------------------------------------------------------------------------------------------------ // Constructors & Destructors //------------------------------------------------------------------------------------------------------------ wxThresholdPanel :: wxThresholdPanel ( vtkImageViewer2 * theViewer, wxWindow *parent, const wxPoint& pos, const wxSize& size,long style, int vertStart, int vertEnd, int horzStart, int horzEnd ) :wxPanel(parent, -1, pos, size, style) { //wxBoxSizer *topsizer = new wxBoxSizer(wxVERTICAL); vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); theViewer->SetupInteractor(iren); //crea::creawxVTKRenderWindowInteractor * mInteractor = new crea::creawxVTKRenderWindowInteractor(this,-1); //mInteractor->UseCaptureMouseOn(); //theViewer->SetupInteractor ( mInteractor ); //theViewer->Render(); //theViewer->GetRenderer()->ResetCamera(); //topsizer-> Add( iren ,1,wxGROW ,0); SetAutoLayout( true ); //SetSizer( topsizer ); Layout(); } wxThresholdPanel :: ~wxThresholdPanel() { }