creaContours_lib
interfMirrorPanel Class Reference

#include <interfSegmentationPanels.h>

Inheritance diagram for interfMirrorPanel:
Collaboration diagram for interfMirrorPanel:

Public Member Functions

 interfMirrorPanel (wxWindow *parent)
 
 ~interfMirrorPanel ()
 

Private Member Functions

void onAxisShow (wxCommandEvent &event)
 
void onMirrorGo (wxCommandEvent &event)
 
void onChangeWidth (wxScrollEvent &event)
 

Private Attributes

wxSlider * _thickness
 
bool _axisStatus
 

Detailed Description

Definition at line 106 of file interfSegmentationPanels.h.

Constructor & Destructor Documentation

interfMirrorPanel::interfMirrorPanel ( wxWindow *  parent)

Begin of the mirror panel

Definition at line 236 of file interfSegmentationPanels.cxx.

References _axisStatus, _thickness, onAxisShow(), and onMirrorGo().

237 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN)
238 {
239  _axisStatus = true;
240 
241  wxButton *axisShowBtn = new wxButton(this,wxID_ANY,_T("Show/Hide Axis"), wxDefaultPosition, wxSize(200,35) );
242  wxButton *mirrorGoBtn = new wxButton(this,wxID_ANY,_T("Mirror Contour"), wxDefaultPosition, wxSize(200,35) );
243  _thickness = new wxSlider(this, -1, 4, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
244 
245  Connect( axisShowBtn->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfMirrorPanel::onAxisShow );
246  Connect( mirrorGoBtn->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfMirrorPanel::onMirrorGo );
247 
248  wxFlexGridSizer * sizer = new wxFlexGridSizer(1);
249  sizer -> Add( axisShowBtn, 1, wxGROW );
250  sizer -> Add( new wxStaticText(this,-1,_T(" ")) , 1, wxGROW );
251  sizer -> Add( new wxStaticText(this,-1,_T("Thickness")) , 1, wxGROW );
252  sizer -> Add( _thickness, 1, wxGROW );
253  sizer -> Add( mirrorGoBtn, 1, wxGROW );
254 
255  this->SetSizer( sizer );
256  this->SetAutoLayout( true );
257  this->Layout();
258 }

Here is the call graph for this function:

interfMirrorPanel::~interfMirrorPanel ( )

Definition at line 260 of file interfSegmentationPanels.cxx.

260  {
261 }

Member Function Documentation

void interfMirrorPanel::onAxisShow ( wxCommandEvent &  event)
private

Definition at line 263 of file interfSegmentationPanels.cxx.

References _axisStatus, interfMainPanel::getInstance(), interfMainPanel::onMirrorAxisHide(), and interfMainPanel::onMirrorAxisShow().

Referenced by interfMirrorPanel().

264 {
265 
266  if (!_axisStatus)
267  {
269  _axisStatus=true;
270  }
271  else
272  {
274  _axisStatus=false;
275  }
276 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMirrorPanel::onChangeWidth ( wxScrollEvent &  event)
private

Definition at line 286 of file interfSegmentationPanels.cxx.

References _thickness, interfMainPanel::getInstance(), and interfMainPanel::onMirrorChangeWidth().

287 {
288  int width = _thickness->GetValue();
290 }

Here is the call graph for this function:

void interfMirrorPanel::onMirrorGo ( wxCommandEvent &  event)
private

Definition at line 278 of file interfSegmentationPanels.cxx.

References _axisStatus, interfMainPanel::getInstance(), and interfMainPanel::onMirror().

Referenced by interfMirrorPanel().

279 {
280  if (_axisStatus)
281  {
283  }
284 }

Here is the call graph for this function:

Here is the caller graph for this function:

Member Data Documentation

bool interfMirrorPanel::_axisStatus
private

Definition at line 117 of file interfSegmentationPanels.h.

Referenced by interfMirrorPanel(), onAxisShow(), and onMirrorGo().

wxSlider* interfMirrorPanel::_thickness
private

Definition at line 115 of file interfSegmentationPanels.h.

Referenced by interfMirrorPanel(), and onChangeWidth().


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