interfMirrorPanel Class Reference

#include <interfSegmentationPanels.h>

List of all members.

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


Constructor & Destructor Documentation

interfMirrorPanel::interfMirrorPanel ( wxWindow *  parent  ) 

Begin of the mirror panel

Definition at line 211 of file interfSegmentationPanels.cxx.

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

00212 : wxPanel(parent, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_SUNKEN)
00213 {
00214         _axisStatus = true;
00215 
00216         wxButton *axisShowBtn = new wxButton(this,wxID_ANY,_T("Show/Hide Axis"), wxDefaultPosition, wxSize(200,35) );
00217         wxButton *mirrorGoBtn = new wxButton(this,wxID_ANY,_T("Mirror Contour"), wxDefaultPosition, wxSize(200,35) );
00218         _thickness = new wxSlider(this, -1, 4, 1, 10, wxDefaultPosition, wxDefaultSize, wxSL_HORIZONTAL|wxSL_LABELS, wxDefaultValidator);
00219         
00220         Connect( axisShowBtn->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfMirrorPanel::onAxisShow );
00221         Connect( mirrorGoBtn->GetId(), wxEVT_COMMAND_BUTTON_CLICKED , (wxObjectEventFunction) &interfMirrorPanel::onMirrorGo ); 
00222 
00223         wxFlexGridSizer * sizer         = new wxFlexGridSizer(1);
00224         sizer -> Add( axisShowBtn, 1, wxGROW );
00225         sizer -> Add( new wxStaticText(this,-1,_T(" "))  , 1, wxGROW );
00226         sizer -> Add( new wxStaticText(this,-1,_T("Thickness"))  , 1, wxGROW );
00227         sizer -> Add( _thickness, 1, wxGROW );
00228         sizer -> Add( mirrorGoBtn, 1, wxGROW );
00229 
00230         this->SetSizer( sizer );
00231         this->SetAutoLayout( true );
00232         this->Layout();
00233 }

Here is the call graph for this function:

interfMirrorPanel::~interfMirrorPanel (  ) 

Definition at line 235 of file interfSegmentationPanels.cxx.

00235                                      {
00236 }


Member Function Documentation

void interfMirrorPanel::onAxisShow ( wxCommandEvent &  event  )  [private]

Definition at line 238 of file interfSegmentationPanels.cxx.

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

Referenced by interfMirrorPanel().

00239 {
00240         
00241         if (!_axisStatus)
00242         {
00243                 interfMainPanel::getInstance()->onMirrorAxisShow();
00244                 _axisStatus=true;
00245         }
00246         else
00247         {       
00248                 interfMainPanel::getInstance()->onMirrorAxisHide();
00249                 _axisStatus=false;              
00250         }
00251 }

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 261 of file interfSegmentationPanels.cxx.

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

00262 {
00263         int width = _thickness->GetValue();
00264         interfMainPanel::getInstance()->onMirrorChangeWidth(width);
00265 }

Here is the call graph for this function:

void interfMirrorPanel::onMirrorGo ( wxCommandEvent &  event  )  [private]

Definition at line 253 of file interfSegmentationPanels.cxx.

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

Referenced by interfMirrorPanel().

00254 {
00255         if (_axisStatus)
00256         {
00257                 interfMainPanel::getInstance()->onMirror();
00258         }
00259 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 92 of file interfSegmentationPanels.h.

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

wxSlider* interfMirrorPanel::_thickness [private]

Definition at line 90 of file interfSegmentationPanels.h.

Referenced by interfMirrorPanel(), and onChangeWidth().


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