creaContours_lib
interfSegmentationPanelITK Class Reference

#include <interfSegmentationPanels.h>

Inheritance diagram for interfSegmentationPanelITK:
Collaboration diagram for interfSegmentationPanelITK:

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 82 of file interfSegmentationPanels.h.

Constructor & Destructor Documentation

interfSegmentationPanelITK::interfSegmentationPanelITK ( wxWindow *  parent)

start of new implementation interfSegmentationPanelITK

Definition at line 153 of file interfSegmentationPanels.cxx.

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

154 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN)
155 {
156  double range[2];
158 
159 // int min = (int)floor (range[0]);
160 // int max = (int)ceil (range[1]);
161 
162  //The labels
163  //wxStaticText * distance =
164  new wxStaticText(this, wxID_ANY, wxT("Initial Distance"), wxPoint(5, 5));
165  //wxStaticText * sigma =
166  new wxStaticText(this, wxID_ANY, wxT("Sigma"), wxPoint(5, 30));
167  //wxStaticText * alfa =
168  new wxStaticText(this, wxID_ANY, wxT("Sigmoid Alfa"), wxPoint(5, 55));
169  //wxStaticText * beta =
170  new wxStaticText(this, wxID_ANY, wxT("Sigmoid Beta"), wxPoint(5, 80));
171  //wxStaticText * propagation =
172  new wxStaticText(this, wxID_ANY, wxT("Propagation Scaling"),wxPoint(5, 105));
173  //wxStaticText * iterations =
174  new wxStaticText(this, wxID_ANY, wxT("Iterations"), wxPoint(5, 130));
175  //wxStaticText * infStrength =
176  new wxStaticText(this, wxID_ANY, wxT("Inflation Strength"), wxPoint(5, 155));
177 
178  //Text Controls
179 
180  _distance = new wxTextCtrl(this, wxID_ANY, wxT("5.0"), wxPoint(98,5), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
181  _sigma = new wxTextCtrl(this, wxID_ANY, wxT("1.2"), wxPoint(98,30), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
182  _alfa = new wxTextCtrl(this, wxID_ANY, wxT("-1.0"), wxPoint(98,55), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
183  _beta = new wxTextCtrl(this, wxID_ANY, wxT("5.0"), wxPoint(98,80), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
184  _propagation = new wxTextCtrl(this, wxID_ANY, wxT("6.0"), wxPoint(98,105), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
185  _iterations = new wxTextCtrl(this, wxID_ANY, wxT("800"), wxPoint(98,130), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
186  _infStrength = new wxTextCtrl(this, wxID_ANY, wxT("3.0"), wxPoint(98,155), wxSize(80, 20), 0, wxDefaultValidator, wxTextCtrlNameStr);
187 
188  //El boton
189  //wxButton * bot =
190  new wxButton(this, 6, wxT("One Slice"), wxPoint(98, 180), wxSize(70, 25), 0, wxDefaultValidator, wxT("button"));
191 
192  //Conexion del boton con su respectivo manejador
193  Connect(6, wxEVT_COMMAND_BUTTON_CLICKED,(wxObjectEventFunction) &interfSegmentationPanelITK::onSegmentationOneSlice);
194 
195 
196 }

Here is the call graph for this function:

interfSegmentationPanelITK::~interfSegmentationPanelITK ( )

Definition at line 197 of file interfSegmentationPanels.cxx.

197  {
198 
199 }

Member Function Documentation

void interfSegmentationPanelITK::onSegmentationAllSlice ( wxCommandEvent &  event)

Definition at line 214 of file interfSegmentationPanels.cxx.

215 {
216 
217  /*int minZ=_mbarrange->GetStart();
218  int maxZ=_mbarrange->GetEnd();
219 
220  int isovalue = _isovalue->GetValue();
221  int sampling = _sampling->GetValue();
222  int method = methodRadiobox->GetSelection();
223 
224 
225  interfMainPanel::getInstance()->onSegmentationAllSlice(minZ, maxZ, isovalue, sampling, method);*/
226 
227 }
void interfSegmentationPanelITK::onSegmentationOneSlice ( wxCommandEvent &  event)

Definition at line 201 of file interfSegmentationPanels.cxx.

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

Referenced by interfSegmentationPanelITK().

202 {
203  wxString distanc=_distance->GetValue();
204  wxString sigm=_sigma->GetValue();
205  wxString alf=_alfa->GetValue();
206  wxString bet=_beta->GetValue();
207  wxString prop=_propagation->GetValue();
208  wxString iter=_iterations->GetValue();
209  wxString infS=_infStrength->GetValue();
210 
211  interfMainPanel::getInstance()->onSegmentationOneSliceITK(distanc, sigm, alf, bet, prop, iter, infS);
212 
213 }

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::_distance
private
wxTextCtrl* interfSegmentationPanelITK::_infStrength
private
wxTextCtrl* interfSegmentationPanelITK::_iterations
private
wxTextCtrl* interfSegmentationPanelITK::_propagation
private
wxTextCtrl* interfSegmentationPanelITK::_sigma
private

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