interfSegmentationPanelITK Class Reference

#include <interfSegmentationPanels.h>

List of all members.

Public Member Functions

 interfSegmentationPanelITK (wxWindow *parent)
 ~interfSegmentationPanelITK ()
void onSegmentationOneSlice (wxCommandEvent &event)
void onSegmentationAllSlice (wxCommandEvent &event)

Private Attributes

wxTextCtrl * _distance
wxTextCtrl * _sigma
wxTextCtrl * _alfa
wxTextCtrl * _beta
wxTextCtrl * _propagation
wxTextCtrl * _iterations
wxTextCtrl * _infStrength


Detailed Description

Definition at line 57 of file interfSegmentationPanels.h.


Constructor & Destructor Documentation

interfSegmentationPanelITK::interfSegmentationPanelITK ( wxWindow *  parent  ) 

start of new implementation interfSegmentationPanelITK

Definition at line 128 of file interfSegmentationPanels.cxx.

References _alfa, _beta, _distance, _infStrength, _iterations, _propagation, _sigma, interfMainPanel::getImageRange(), interfMainPanel::getInstance(), and onSegmentationOneSlice().

00129 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN)
00130 {
00131         double range[2];
00132         interfMainPanel::getInstance()->getImageRange(range);
00133 
00134 //      int min = (int)floor (range[0]);
00135 //      int max = (int)ceil (range[1]);
00136         
00137         //The labels
00138         //wxStaticText * distance =    
00139         new wxStaticText(this, wxID_ANY, wxT("Initial Distance"),   wxPoint(5, 5));
00140         //wxStaticText * sigma =       
00141         new wxStaticText(this, wxID_ANY, wxT("Sigma"),              wxPoint(5, 30));
00142         //wxStaticText * alfa =        
00143         new wxStaticText(this, wxID_ANY, wxT("Sigmoid Alfa"),       wxPoint(5, 55));
00144         //wxStaticText * beta =        
00145         new wxStaticText(this, wxID_ANY, wxT("Sigmoid Beta"),       wxPoint(5, 80));
00146         //wxStaticText * propagation = 
00147         new wxStaticText(this, wxID_ANY, wxT("Propagation Scaling"),wxPoint(5, 105));
00148         //wxStaticText * iterations =  
00149         new wxStaticText(this, wxID_ANY, wxT("Iterations"),         wxPoint(5, 130));
00150         //wxStaticText * infStrength = 
00151         new wxStaticText(this, wxID_ANY, wxT("Inflation Strength"), wxPoint(5, 155));
00152 
00153         //Text Controls
00154 
00155         _distance =      new wxTextCtrl(this, wxID_ANY, wxT("5.0"),  wxPoint(98,5),   wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
00156         _sigma =         new wxTextCtrl(this, wxID_ANY, wxT("1.2"),  wxPoint(98,30),  wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
00157         _alfa =          new wxTextCtrl(this, wxID_ANY, wxT("-1.0"), wxPoint(98,55),  wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);        
00158         _beta =          new wxTextCtrl(this, wxID_ANY, wxT("5.0"),  wxPoint(98,80),  wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);        
00159         _propagation =   new wxTextCtrl(this, wxID_ANY, wxT("6.0"),  wxPoint(98,105), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);        
00160         _iterations =    new wxTextCtrl(this, wxID_ANY, wxT("800"),  wxPoint(98,130), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);        
00161         _infStrength =   new wxTextCtrl(this, wxID_ANY, wxT("3.0"),  wxPoint(98,155), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
00162         
00163         //El boton
00164         //wxButton * bot = 
00165         new wxButton(this, 6, wxT("One Slice"), wxPoint(98, 180), wxSize(70, 25), 0, wxDefaultValidator, wxT("button"));
00166 
00167         //Conexion del boton con su respectivo manejador
00168         Connect(6, wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction) &interfSegmentationPanelITK::onSegmentationOneSlice);
00169         
00170         
00171 }

Here is the call graph for this function:

interfSegmentationPanelITK::~interfSegmentationPanelITK (  ) 

Definition at line 172 of file interfSegmentationPanels.cxx.

00172                                                        {
00173 
00174 }


Member Function Documentation

void interfSegmentationPanelITK::onSegmentationAllSlice ( wxCommandEvent &  event  ) 

Definition at line 189 of file interfSegmentationPanels.cxx.

00190 {
00191 
00192         /*int minZ=_mbarrange->GetStart();
00193         int maxZ=_mbarrange->GetEnd();
00194 
00195         int                             isovalue        = _isovalue->GetValue();
00196         int                             sampling        = _sampling->GetValue();
00197         int method = methodRadiobox->GetSelection();
00198 
00199 
00200         interfMainPanel::getInstance()->onSegmentationAllSlice(minZ, maxZ, isovalue, sampling, method);*/
00201         
00202 }

void interfSegmentationPanelITK::onSegmentationOneSlice ( wxCommandEvent &  event  ) 

Definition at line 176 of file interfSegmentationPanels.cxx.

References _alfa, _beta, _distance, _infStrength, _iterations, _propagation, _sigma, interfMainPanel::getInstance(), and interfMainPanel::onSegmentationOneSliceITK().

Referenced by interfSegmentationPanelITK().

00177 {
00178         wxString distanc=_distance->GetValue();
00179         wxString sigm=_sigma->GetValue();
00180         wxString alf=_alfa->GetValue();
00181         wxString bet=_beta->GetValue();
00182         wxString prop=_propagation->GetValue();
00183         wxString iter=_iterations->GetValue();
00184         wxString infS=_infStrength->GetValue();
00185         
00186         interfMainPanel::getInstance()->onSegmentationOneSliceITK(distanc, sigm, alf, bet, prop, iter, infS);
00187         
00188 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

wxTextCtrl* interfSegmentationPanelITK::_alfa [private]

wxTextCtrl* interfSegmentationPanelITK::_beta [private]

wxTextCtrl* interfSegmentationPanelITK::_sigma [private]


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

Generated on Wed Jun 27 23:28:34 2012 for creaContours_lib by  doxygen 1.5.7.1