wxDlgTransformByDimensionBySpacingByPixel Class Reference

#include <ColorLayerImageViewPanel.h>

List of all members.

Public Member Functions

 wxDlgTransformByDimensionBySpacingByPixel ()
 ~wxDlgTransformByDimensionBySpacingByPixel ()
void GetTransformType (wxWindow *parent, wxString message, int &typeOfTransformation, bool &dlgWxOK)

Detailed Description

Definition at line 23 of file ColorLayerImageViewPanel.h.


Constructor & Destructor Documentation

wxDlgTransformByDimensionBySpacingByPixel::wxDlgTransformByDimensionBySpacingByPixel (  ) 

Definition at line 13 of file ColorLayerImageViewPanel.cxx.

00014 {
00015 }

wxDlgTransformByDimensionBySpacingByPixel::~wxDlgTransformByDimensionBySpacingByPixel (  ) 

Definition at line 17 of file ColorLayerImageViewPanel.cxx.

00018 {
00019 }


Member Function Documentation

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 }

Here is the caller graph for this function:


The documentation for this class was generated from the following files:

Generated on 20 Oct 2010 for creaMaracasVisu_lib by  doxygen 1.6.1