#include <ColorLayerImageViewPanel.h>
Public Member Functions | |
wxDlgTransformByDimensionBySpacingByPixel () | |
~wxDlgTransformByDimensionBySpacingByPixel () | |
void | GetTransformType (wxWindow *parent, wxString message, int &typeOfTransformation, bool &dlgWxOK) |
Definition at line 23 of file ColorLayerImageViewPanel.h.
wxDlgTransformByDimensionBySpacingByPixel::wxDlgTransformByDimensionBySpacingByPixel | ( | ) |
Definition at line 13 of file ColorLayerImageViewPanel.cxx.
wxDlgTransformByDimensionBySpacingByPixel::~wxDlgTransformByDimensionBySpacingByPixel | ( | ) |
Definition at line 17 of file ColorLayerImageViewPanel.cxx.
void wxDlgTransformByDimensionBySpacingByPixel::GetTransformType | ( | wxWindow * | parent, | |
wxString | message, | |||
int & | typeOfTransformation, | |||
bool & | dlgWxOK | |||
) |
Definition at line 22 of file ColorLayerImageViewPanel.cxx.
Referenced by ColorLayerImageViewPanel::onReadImage().
00023 { 00024 wxDialog* dial = new wxDialog (parent,-1,_T("Tools"),wxDefaultPosition, wxSize(590,190)); 00025 wxSizer* buttonsSizer = dial->CreateSeparatedButtonSizer(wxOK|wxCANCEL); 00026 wxBoxSizer *dialSizer = new wxBoxSizer(wxVERTICAL); 00027 00028 wxString lstOptOperation[3]; 00029 lstOptOperation[0]=_T("By Dimension"); 00030 lstOptOperation[1]=_T("By Spacing"); 00031 lstOptOperation[2]=_T("By Pixel"); 00032 wxRadioBox * radioOpts = new wxRadioBox(dial, -1, _T("Type of Transformation"), wxDefaultPosition, wxSize(270,45), 3 , lstOptOperation, 3, wxRA_SPECIFY_COLS); 00033 00034 dialSizer->Add( new wxStaticText(dial,-1,message) , 0, wxGROW ); 00035 // dialSizer->Add( new wxStaticText(dial,-1,_T("selected Roi file. Do you want to tranform it?")) , 0, wxGROW ); 00036 dialSizer->Add( new wxStaticText(dial,-1,_T(" ")) , 0, wxGROW ); 00037 dialSizer->Add(radioOpts,0,wxGROW); 00038 dialSizer->Add( new wxStaticText(dial,-1,_T(" ")) , 0, wxGROW ); 00039 dialSizer->Add(buttonsSizer,0,wxGROW); 00040 dial->SetSizer(dialSizer, true); 00041 dial->Layout(); 00042 dial->ShowModal(); 00043 00044 typeOfTransformation = -1; 00045 dlgWxOK = false; 00046 00047 if (dial->GetReturnCode() == wxID_OK) 00048 { 00049 typeOfTransformation = radioOpts->GetSelection(); 00050 dlgWxOK = true; 00051 } 00052 }