interfMainPanel Class Reference

#include <interfMainPanel.h>

Collaboration diagram for interfMainPanel:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 interfMainPanel (wxWindow *parent, int sizex, int sizey, wxEvtHandler *evtHandler, std::string datadir="data/Icons")
 ~interfMainPanel (void)
void addContourCheckBox (std::string id)
void removeContourCheckBox (std::string id)
void onActionButtonPressed1 (wxCommandEvent &event)
void showPanel (wxWindow *panel)
void hidePanel ()
wxPanel * getInfoPanel ()
void onCreateContourSpline ()
void onCreateContourRectangle ()
void onCreateContourCircle ()
void onCreateContourLine ()
void onCreateContourPoints ()
void onCreateContourPolygon ()
void onCreateContoursBullEye (wxPanel *panBull)
void onDeleteContour ()
void onDeleteContoursActSlice ()
void onDeleteAllContours ()
void onCopy ()
void onPaste ()
void onUndo ()
void onRedo ()
void onLoad ()
void onSave ()
void onImport ()
void onTest ()
void RefreshInterface ()
vtkImageData * getImageData ()
void getImageRange (double[2])
void onSegmentationOneSlice (int isovalue, int sampling, int method)
void onSegmentationOneSliceITK (wxString distance, wxString sigma, wxString alfa, wxString beta, wxString propagation, wxString iterations, wxString inflation)
int GetImageDataSizeZ ()
void onSegmentationAllSlice (int minZ, int maxZ, int isovalue, int sampling, int method)
void onMirrorPressed ()
void onMirror ()
void onMirrorAxisShow ()
void onMirrorAxisHide ()
void onMirrorChangeWidth (int width)
void onThresholdPressed ()
void onColorLayerImagePressed ()
void setLabelSegmentationPanelVTK (wxString tmpString)
void onSegmentationPressed ()
void onSegmentationPressedITK ()
void onRigidPressed ()
void onWidthOfContour (double width)
int getColorWindow ()
int getWindowLevel ()
void onBrigthnessColorWindowLevel (int colorwindow, int windowlevel)
void onInterpolation (bool interpolate)
void onSpreadPressed ()
void onConfigurationPressed ()
void resetAppend ()
void onSpreadAdd ()
void onSpreadAddAll ()
void appendStringSpread (std::string val)
void onSpreadGo (int type)
void setStringSpread (std::string stringtemp)
void onInformationPressed ()
void getInstantVector (std::vector< int > &tempVector)
std::vector< std::string > getOutlinesName (int slide)
void onInformationContourLabels (int typeContourGroup, int selection, int minZ, int maxZ, int grayRangeMin, int grayRangeMax)
void setStringInfoPanel (wxString tmpString)
void setRowLabelInfoPanel (int z, wxString tempString)
int getNumberColsInformationPanel ()
void appendColsInformationPanel (int _numberOfVariablesStatistics)
void setCellValueInfoPanel (int z, int tmpIntA, wxString tempString)
void setColLableInfoPanel (int tmpIntB, wxString tmpTitleString)
void SetScalarRange (int grayRangeMin, int grayRangeMax)
void onSaveResults (std::string directory, std::string namefile, std::string filename, int typeContourGroup, int selection, int minZ, int maxZ, bool XYZValues, bool contourImage, bool statistics)
wxString getCellValue (int j, int i)
void onSnakePressed ()
virtual bool Show (bool show)
void ShowResultImages (int typeContourGroup, int selection, int minZ, int maxZ)
void SetContourGroup (int contourGroup)
void onPrintLabel ()
void onCalibration (wxString size, int unit)
double onePixelSize (double realSize, double sizePixel)
double GetPixelValue ()

Static Public Member Functions

static interfMainPanelgetInstance (wxWindow *parent, std::string datadir, wxEvtHandler *evtHandler=NULL)
static interfMainPanelgetInstance (wxWindow *parent, wxEvtHandler *evtHandler=NULL)
static interfMainPanelgetInstance ()
static void resetInstance ()

Private Member Functions

wxPanel * initializeToolsPanel (wxWindow *parent, int sizex, int sizey, wxEvtHandler *evtHandler)
wxStaticText * getText (wxWindow *parent, std::string nom)
wxButton * getButton (wxWindow *parent)
wxPanel * setMenuTextSizer (wxWindow *parent, wxPanel *panel, wxStaticText *text)

Private Attributes

wxPanel * menubar
wxPanel * menubar1
wxPanel * menubar2
wxPanel * menubar3
wxPanel * menubar4
wxPanel * menubar5
wxPanel * menubar6
wxWindow * currentWindow
wxSplitterWindow * splitterwindow
wxPanel * infoPanel
wxPanel * infoPanelMask
wxPanel * infoPanelCalibration
wxPanel * panelAux
double _pixelValue
wxStaticText * statictext
wxStaticText * statictext1
wxStaticText * statictext2
wxStaticText * statictext3
wxStaticText * statictext4
wxStaticText * statictext5
wxStaticText * statictext6
std::string PANEL
std::string PANEL1
std::string PANEL2
std::string PANEL3
std::string PANEL4
std::string PANEL5
std::string PANEL6
wxPanel * segmentPanel
wxPanel * segmentationPanel
wxPanel * segmentPanelITK
wxPanel * configPanel
wxPanel * spreadPanel
interfSpreadPanelpanelSpread
wxWindow * infoWin
wxPanel * informationPanel
wxPanel * testPanel
interfTestPanelpanelTest
wxPanel * mirrorPanel
interfMirrorPanelpanelMirror
wxPanel * thresholdPanel
wxPanel * colorImageLayerPanel
bool axisshown
bool refLineShown
interfToolsSpreadPaneltoolspread

Static Private Attributes

static interfMainPanelinterfmainpanel = NULL
static wxFrame * _newframe = NULL


Detailed Description

Definition at line 30 of file interfMainPanel.h.


Constructor & Destructor Documentation

interfMainPanel::interfMainPanel ( wxWindow *  parent,
int  sizex,
int  sizey,
wxEvtHandler *  evtHandler,
std::string  datadir = "data/Icons" 
)

Definition at line 7 of file interfMainPanel.cxx.

References colorImageLayerPanel, configPanel, currentWindow, getButton(), getText(), infoPanel, infoPanelCalibration, infoPanelMask, informationPanel, infoWin, menubar, menubar1, menubar2, menubar3, menubar4, menubar5, menubar6, mirrorPanel, onActionButtonPressed1(), PANEL, PANEL1, PANEL2, PANEL3, PANEL4, PANEL5, PANEL6, panelAux, segmentPanel, segmentPanelITK, setMenuTextSizer(), splitterwindow, spreadPanel, statictext, statictext1, statictext2, statictext3, statictext4, statictext5, statictext6, testPanel, and thresholdPanel.

Referenced by getInstance().

00008 : wxPanel(parent, -1, wxDefaultPosition, wxSize(sizex, sizey), wxBORDER_SUNKEN)
00009 {
00010 
00011         PANEL                                   = "New Contour";
00012         PANEL1                                  = "I/O";
00013         PANEL2                                  = "Edit";
00014         PANEL3                                  = "Delete";
00015         PANEL4                                  = "Contour Tools";
00016         PANEL5                                  = "Segmentation";
00017 //EED 07/07/2010
00018         PANEL6                                  = "Image Tools";
00019 
00020         segmentPanel                    = NULL;
00021         segmentPanelITK                 = NULL;
00022         configPanel                             = NULL;
00023         spreadPanel                             = NULL;
00024         infoWin                                 = NULL;
00025         infoPanel                               = NULL;
00026         infoPanelMask                   = NULL;
00027         informationPanel                = NULL;
00028         mirrorPanel                             = NULL;
00029         thresholdPanel                  = NULL;
00030         colorImageLayerPanel    = NULL;
00031         currentWindow                   = NULL;
00032         testPanel                               = NULL;
00033 
00034 //CMRU 17-08-09 ------------------------------------------------------------------
00035         infoPanelCalibration = NULL;
00036         panelAux = NULL;
00037 //--------------------------------------------------------------------------------
00038         splitterwindow = new wxSplitterWindow(this,-1, wxDefaultPosition, wxSize(sizex, sizey), wxSP_3DSASH, wxString(_T("")));
00039 
00040         splitterwindow->SetMinimumPaneSize( 10 );
00041         sizey = sizey/8;
00042 
00043         wxPanel* toolpanel = new wxPanel(splitterwindow, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_DOUBLE, wxString(_T("")));
00044 
00045         wxFlexGridSizer* flexsizer = new wxFlexGridSizer(6,2,1,1);
00046         toolpanel->SetSizer(flexsizer, true);
00047         toolpanel->SetAutoLayout( true );
00048 
00049         wxButton* b = getButton(toolpanel);
00050         b->SetClientData(&PANEL);
00051         wxButton* b1 = getButton(toolpanel);
00052         b1->SetClientData(&PANEL1);
00053         wxButton* b2 = getButton(toolpanel);
00054         b2->SetClientData(&PANEL2);
00055         wxButton* b3 = getButton(toolpanel);
00056         b3->SetClientData(&PANEL3);
00057         wxButton* b4 = getButton(toolpanel);
00058         b4->SetClientData(&PANEL4);
00059         wxButton* b5 = getButton(toolpanel);
00060         b5->SetClientData(&PANEL5);
00061 //EED 07/07/2010
00062         wxButton* b6 = getButton(toolpanel);
00063         b6->SetClientData(&PANEL6);
00064 
00065 
00066         wxPanel* mentex  = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00067         wxPanel* mentex1 = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00068         wxPanel* mentex2 = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00069         wxPanel* mentex3 = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00070         wxPanel* mentex4 = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00071         wxPanel* mentex5 = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00072 //EED 07/07/2010
00073         wxPanel* mentex6 = new wxPanel(toolpanel, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_NONE, wxString(_T("")));
00074 
00075         menubar  = new interfNewContourMenu  (mentex,  sizex, sizey, evtHandler, datadir);
00076         menubar1 = new interfIOMenu          (mentex1, sizex, sizey, evtHandler, datadir);
00077         menubar2 = new interfEditMenu        (mentex2, sizex, sizey, evtHandler, datadir);
00078         menubar3 = new interfDeleteMenu      (mentex3, sizex, sizey, evtHandler, datadir);
00079         menubar4 = new interfToolsMenu       (mentex4, sizex ,sizey, evtHandler, datadir);
00080         menubar5 = new interfSegmentationMenu(mentex5, sizex, sizey, evtHandler, datadir);
00081         menubar6 = new interfImageToolsMenu(mentex6, sizex, sizey, evtHandler, datadir);
00082 
00083         statictext  = getText(mentex,  PANEL);
00084         statictext1 = getText(mentex1, PANEL1);
00085         statictext2 = getText(mentex2, PANEL2);
00086         statictext3 = getText(mentex3, PANEL3);
00087         statictext4 = getText(mentex4, PANEL4);
00088         statictext5 = getText(mentex5, PANEL5);
00089         statictext6 = getText(mentex6, PANEL6);
00090 
00091         flexsizer->Add(b, wxFIXED_MINSIZE);
00092         flexsizer->Add(setMenuTextSizer(mentex, menubar,statictext), wxFIXED_MINSIZE);
00093 
00094         flexsizer->Add(b1, wxFIXED_MINSIZE);
00095         flexsizer->Add(setMenuTextSizer(mentex1, menubar1,statictext1), wxFIXED_MINSIZE);
00096 
00097         flexsizer->Add(b2, wxFIXED_MINSIZE);
00098         flexsizer->Add(setMenuTextSizer(mentex2, menubar2,statictext2), wxFIXED_MINSIZE);
00099 
00100         flexsizer->Add(b3, wxFIXED_MINSIZE);
00101         flexsizer->Add(setMenuTextSizer(mentex3, menubar3,statictext3), wxFIXED_MINSIZE);
00102 
00103         flexsizer->Add(b4, wxFIXED_MINSIZE);
00104         flexsizer->Add(setMenuTextSizer(mentex4, menubar4,statictext4), wxFIXED_MINSIZE);
00105 
00106         flexsizer->Add(b5, wxFIXED_MINSIZE);
00107         flexsizer->Add(setMenuTextSizer(mentex5, menubar5,statictext5), wxFIXED_MINSIZE);
00108         flexsizer->Add(b6, wxFIXED_MINSIZE);
00109         flexsizer->Add(setMenuTextSizer(mentex6, menubar6,statictext6), wxFIXED_MINSIZE);
00110 
00111         toolpanel->Update();
00112         toolpanel->Layout();
00113 
00114         infoPanel = new wxPanel(splitterwindow, -1, wxDefaultPosition, wxDefaultSize, wxBORDER_DOUBLE, wxString(_T("")));
00115         wxFlexGridSizer* infosizer = new wxFlexGridSizer(1,1,2,2);
00116         infoPanel->SetSizer(infosizer, true);
00117         infoPanel->SetAutoLayout( true );
00118 
00119         splitterwindow->Initialize(toolpanel);
00120         splitterwindow->SetSashGravity(1);
00121 //EED   splitterwindow->SetSashPosition(600);
00122         splitterwindow->SetSashSize(5);
00123         splitterwindow->SplitHorizontally(toolpanel, infoPanel,8*73);
00124 
00125         Connect(b->GetId(),  wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00126         Connect(b1->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00127         Connect(b2->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00128         Connect(b3->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00129         Connect(b4->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00130         Connect(b5->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00131         Connect(b6->GetId(), wxEVT_COMMAND_BUTTON_CLICKED, (wxObjectEventFunction)&interfMainPanel::onActionButtonPressed1);
00132 
00133         this->Layout();
00134 }

Here is the call graph for this function:

Here is the caller graph for this function:

interfMainPanel::~interfMainPanel ( void   ) 

Definition at line 136 of file interfMainPanel.cxx.

00137 {
00138 
00139 }


Member Function Documentation

void interfMainPanel::addContourCheckBox ( std::string  id  ) 

Adds a new checkbox to the scrolledwindow using the checkboxsizer id of contour

Definition at line 205 of file interfMainPanel.cxx.

References interfToolsSpreadPanel::addContourCheckBox(), and toolspread.

00206 {
00207         toolspread->addContourCheckBox(id);
00208 }

Here is the call graph for this function:

void interfMainPanel::appendColsInformationPanel ( int  _numberOfVariablesStatistics  ) 

Definition at line 787 of file interfMainPanel.cxx.

References informationPanel.

00788 {
00789         ((interfInformationPanel*)informationPanel)->appendCols(_numberOfVariablesStatistics);
00790 }

void interfMainPanel::appendStringSpread ( std::string  val  ) 

Definition at line 655 of file interfMainPanel.cxx.

References interfSpreadPanel::appendStringSpread(), and panelSpread.

00656 {
00657     panelSpread->appendStringSpread(val);
00658 }

Here is the call graph for this function:

wxButton * interfMainPanel::getButton ( wxWindow *  parent  )  [private]

initializes a button with data

Definition at line 275 of file interfMainPanel.cxx.

Referenced by interfMainPanel().

00276 {
00277         wxButton* b = new wxButton(parent, -1, wxString(_T("-")), wxDefaultPosition, wxDefaultSize, wxBU_EXACTFIT,
00278                                         wxDefaultValidator, wxString(_T("-")));
00279         return b;
00280 }

Here is the caller graph for this function:

wxString interfMainPanel::getCellValue ( int  j,
int  i 
)

Definition at line 815 of file interfMainPanel.cxx.

References informationPanel.

00815                                                  {
00816         return ((interfInformationPanel*)informationPanel)->getCellValue(j, i );
00817 }

int interfMainPanel::getColorWindow (  ) 

Definition at line 577 of file interfMainPanel.cxx.

References getColorWindow(), and getInstance().

Referenced by getColorWindow(), and interfConfigurationPanel::interfConfigurationPanel().

00578 {
00579         return wxContourMainFrame::getInstance()->getColorWindow();
00580 }

Here is the call graph for this function:

Here is the caller graph for this function:

vtkImageData * interfMainPanel::getImageData (  ) 

Definition at line 481 of file interfMainPanel.cxx.

References getImageData(), and getInstance().

Referenced by getImageData(), and getImageRange().

00482 {
00483         return wxContourMainFrame::getInstance()->getImageData();
00484 }

Here is the call graph for this function:

Here is the caller graph for this function:

int interfMainPanel::GetImageDataSizeZ (  ) 

Definition at line 502 of file interfMainPanel.cxx.

References GetImageDataSizeZ(), and getInstance().

Referenced by interfInformationPanel::FillGridWithContoursInformation(), GetImageDataSizeZ(), interfInformationPanel::interfInformationPanel(), and interfSegmentationPanelVTK::interfSegmentationPanelVTK().

00503 {
00504         return wxContourMainFrame::getInstance()->GetImageDataSizeZ();
00505 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::getImageRange ( double  range[2]  ) 

Definition at line 486 of file interfMainPanel.cxx.

References getImageData().

Referenced by interfCalibrationPanel::interfCalibrationPanel(), interfConfigurationPanel::interfConfigurationPanel(), interfInformationPanel::interfInformationPanel(), interfSegmentationPanelITK::interfSegmentationPanelITK(), and interfSegmentationPanelVTK::interfSegmentationPanelVTK().

00487 {
00488         vtkImageData * img = getImageData();
00489         img->GetScalarRange(range);
00490 }

Here is the call graph for this function:

Here is the caller graph for this function:

wxPanel * interfMainPanel::getInfoPanel (  ) 

Gets the Information panel

Definition at line 352 of file interfMainPanel.cxx.

References infoPanel.

Referenced by hidePanel(), onColorLayerImagePressed(), onConfigurationPressed(), onInformationPressed(), onMirrorPressed(), onSegmentationPressed(), onSegmentationPressedITK(), onSpreadPressed(), onTest(), and onThresholdPressed().

00353 {
00354         return infoPanel;
00355 }

Here is the caller graph for this function:

interfMainPanel * interfMainPanel::getInstance (  )  [static]

Gets the instance of the class

Definition at line 169 of file interfMainPanel.cxx.

References interfmainpanel.

Referenced by interfInformationPanel::FillGridWithContoursInformation(), getColorWindow(), getImageData(), GetImageDataSizeZ(), getInstantVector(), getOutlinesName(), getWindowLevel(), hidePanel(), interfCalibrationPanel::interfCalibrationPanel(), interfConfigurationPanel::interfConfigurationPanel(), interfInformationPanel::interfInformationPanel(), interfSegmentationPanelITK::interfSegmentationPanelITK(), interfSegmentationPanelVTK::interfSegmentationPanelVTK(), interfMirrorPanel::onAxisShow(), interfConfigurationPanel::onBrigthnessColorWindowLevel(), onBrigthnessColorWindowLevel(), interfCalibrationPanel::onCalibrate(), onCalibration(), interfMirrorPanel::onChangeWidth(), interfImageToolsMenu::onColorLayerImage(), onColorLayerImagePressed(), onConfigurationPressed(), interfImageToolsMenu::onConfigurationPressed(), interfInformationPanel::onContourGroup(), onCopy(), interfEditMenu::onCopy(), interfNewContourMenu::onCreateContourBullseye(), interfNewContourMenu::onCreateContourCircle(), onCreateContourCircle(), interfNewContourMenu::onCreateContourLine(), onCreateContourLine(), interfNewContourMenu::onCreateContourPoints(), onCreateContourPoints(), interfNewContourMenu::onCreateContourPolygon(), onCreateContourPolygon(), interfNewContourMenu::onCreateContourRectangle(), onCreateContourRectangle(), onCreateContoursBullEye(), interfNewContourMenu::onCreateContourSpline(), onCreateContourSpline(), onDeleteAllContours(), interfDeleteMenu::onDeleteAllContours(), onDeleteContour(), interfDeleteMenu::onDeleteContour(), onDeleteContoursActSlice(), interfDeleteMenu::onDeleteContoursActSlice(), onePixelSize(), interfInformationPanel::onExtractInformation(), onImport(), interfIOMenu::onImport(), wxContourMainFrame::onInformationContourLabels(), onInformationContourLabels(), onInformationPressed(), interfImageToolsMenu::onInformationPressed(), interfConfigurationPanel::OnInterpolation(), onInterpolation(), onLoad(), interfIOMenu::onLoad(), onMirror(), onMirrorAxisHide(), onMirrorAxisShow(), onMirrorChangeWidth(), interfMirrorPanel::onMirrorGo(), interfToolsMenu::onMirrorPressed(), onMirrorPressed(), onPaste(), interfEditMenu::onPaste(), interfToolsMenu::onPrintLabel(), onPrintLabel(), interfInformationPanel::onRangeSliceInformation(), onRedo(), interfEditMenu::onRedo(), interfToolsMenu::onRigidPressed(), onRigidPressed(), onSave(), interfIOMenu::onSave(), interfInformationPanel::onSaveResults(), onSaveResults(), interfSegmentationPanelVTK::onSegmentationAllSlice(), onSegmentationAllSlice(), interfSegmentationPanelITK::onSegmentationOneSlice(), interfSegmentationPanelVTK::onSegmentationOneSlice(), onSegmentationOneSlice(), onSegmentationOneSliceITK(), interfSegmentationMenu::onSegmentationPressed(), onSegmentationPressed(), interfSegmentationPanelVTK::onSegmentationPressedITK(), interfSegmentationMenu::onSegmentationPressedITK(), onSegmentationPressedITK(), interfInformationPanel::onShowResultImages(), interfSegmentationMenu::onSnakePressed(), onSnakePressed(), interfSpreadPanel::onSpreadAdd(), onSpreadAdd(), interfSpreadPanel::onSpreadAddAll(), onSpreadAddAll(), interfSpreadPanel::onSpreadGo(), onSpreadGo(), interfToolsMenu::onSpreadPressed(), onSpreadPressed(), interfSpreadPanel::onSpreadReset(), onTest(), interfIOMenu::onTest(), interfImageToolsMenu::onThreshold(), onThresholdPressed(), onUndo(), interfEditMenu::onUndo(), interfConfigurationPanel::onWidthOfContour(), onWidthOfContour(), RefreshInterface(), resetAppend(), SetContourGroup(), SetScalarRange(), showPanel(), and ShowResultImages().

00170 {
00171         return interfmainpanel;
00172 }

interfMainPanel * interfMainPanel::getInstance ( wxWindow *  parent,
wxEvtHandler *  evtHandler = NULL 
) [static]

This method should be called the first time by the parent class in creates all the panels the first time

Definition at line 152 of file interfMainPanel.cxx.

References _newframe, interfMainPanel(), and interfmainpanel.

00153 {
00154 
00155         _newframe = new wxFrame(parent, -1, wxT(" Contour Tools "), wxPoint(25,50), wxSize(350,900),wxFRAME_TOOL_WINDOW|wxSYSTEM_MENU | wxCAPTION |  wxCLIP_CHILDREN |wxFRAME_FLOAT_ON_PARENT );
00156 
00157         if(interfmainpanel == NULL){
00158                 interfmainpanel = new interfMainPanel(_newframe, 350, 900, evtHandler);
00159         }
00160         _newframe->Show(TRUE);
00161         return interfmainpanel;
00162 }

Here is the call graph for this function:

interfMainPanel * interfMainPanel::getInstance ( wxWindow *  parent,
std::string  datadir,
wxEvtHandler *  evtHandler = NULL 
) [static]

This method should be called the first time by the parent class in creates all the panels the first time

Definition at line 141 of file interfMainPanel.cxx.

References _newframe, interfMainPanel(), and interfmainpanel.

00142 {
00143         _newframe = new wxFrame(parent, -1, wxT(" Contour Tools "), wxPoint(25,50), wxSize(350,900),wxFRAME_TOOL_WINDOW|wxSYSTEM_MENU | wxCAPTION |  wxCLIP_CHILDREN |wxFRAME_FLOAT_ON_PARENT);
00144 
00145         if(interfmainpanel == NULL){
00146                 interfmainpanel = new interfMainPanel(_newframe, 350, 900, evtHandler, datadir);
00147         }
00148         _newframe->Show(TRUE);
00149         return interfmainpanel;
00150 }

Here is the call graph for this function:

void interfMainPanel::getInstantVector ( std::vector< int > &  tempVector  ) 

Definition at line 756 of file interfMainPanel.cxx.

References getInstance(), and getInstantVector().

Referenced by getInstantVector().

00757 {
00758         wxContourMainFrame::getInstance()->getInstantVector(tempVector);
00759 }

Here is the call graph for this function:

Here is the caller graph for this function:

int interfMainPanel::getNumberColsInformationPanel (  ) 

Definition at line 782 of file interfMainPanel.cxx.

References informationPanel.

00783 {
00784         return ((interfInformationPanel*)informationPanel)->getNumberCols();
00785 }

std::vector< std::string > interfMainPanel::getOutlinesName ( int  slide  ) 

Definition at line 761 of file interfMainPanel.cxx.

References getInstance(), and getOutlinesName().

Referenced by interfInformationPanel::FillGridWithContoursInformation(), and getOutlinesName().

00762 {
00763         return wxContourMainFrame::getInstance()->getOutlinesName(slide);
00764 }

Here is the call graph for this function:

Here is the caller graph for this function:

double interfMainPanel::GetPixelValue (  ) 

Returns the value of a pixel in milimeters

Definition at line 1026 of file interfMainPanel.cxx.

References _pixelValue.

01027 {
01028         return _pixelValue;
01029 }

wxStaticText * interfMainPanel::getText ( wxWindow *  parent,
std::string  nom 
) [private]

initialize a statictext component of the interface

Definition at line 269 of file interfMainPanel.cxx.

Referenced by interfMainPanel().

00270 {
00271         return new wxStaticText(parent, -1, wxString(nom.c_str(),wxConvUTF8), wxDefaultPosition,
00272                                         wxDefaultSize, wxALIGN_CENTRE, wxString(nom.c_str(),wxConvUTF8));
00273 }

Here is the caller graph for this function:

int interfMainPanel::getWindowLevel (  ) 

Definition at line 581 of file interfMainPanel.cxx.

References getInstance(), and getWindowLevel().

Referenced by getWindowLevel(), and interfConfigurationPanel::interfConfigurationPanel().

00582 {
00583         return wxContourMainFrame::getInstance()->getWindowLevel();
00584 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::hidePanel (  ) 

Hides the panel in the

Hide the panel in the lower box

fix warning: virtual bool wxSizer::Remove(wxWindow*) is deprecated

Definition at line 325 of file interfMainPanel.cxx.

References currentWindow, getInfoPanel(), getInstance(), infoPanel, and splitterwindow.

00326 {
00327         wxContourMainFrame::getInstance()->showAxis(false);
00328         wxSizer* sizer = infoPanel->GetSizer();
00329 
00330         if(currentWindow != NULL){
00331                 currentWindow->Hide();
00333                 sizer->Remove(currentWindow);
00334         }
00335         wxPanel * emptyPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
00336         sizer->Add(emptyPanel);
00337         currentWindow = emptyPanel;
00338         currentWindow->Show(true);
00339 
00340         splitterwindow->SetSashPosition(splitterwindow->GetSashPosition()+1);
00341         splitterwindow->SetSashPosition(splitterwindow->GetSashPosition()-1);
00342 
00343         infoPanel->Layout();
00344         infoPanel->Refresh();
00345         this->Layout();
00346         this->Refresh();
00347 }

Here is the call graph for this function:

wxPanel * interfMainPanel::initializeToolsPanel ( wxWindow *  parent,
int  sizex,
int  sizey,
wxEvtHandler *  evtHandler 
) [private]

This method initializes the tools panel, with the bar and the panel where the contours can be added and removed. size of the buttons panel sizey of the buttons panel evtHandler this is the class in charge of responding to the events of the buttons

Definition at line 181 of file interfMainPanel.cxx.

References toolspread.

00182 {
00183         wxPanel* panel = new wxPanel(parent, -1, wxDefaultPosition, wxSize(sizex, sizey), wxBORDER_SUNKEN, wxString(_T("Spread")));
00184 
00185         wxFlexGridSizer* flexsizer = new wxFlexGridSizer(2,1,2,2)       ;
00186         panel->SetSizer(flexsizer, true);
00187         panel->SetAutoLayout( true );
00188 
00189         interfToolsMenu* menu = new interfToolsMenu(panel, sizex, sizey, evtHandler);
00190         toolspread = new interfToolsSpreadPanel(panel, sizex, 300, evtHandler);
00191 
00192         flexsizer->Add(menu, wxFIXED_MINSIZE);
00193         flexsizer->Add(toolspread, wxFIXED_MINSIZE);
00194 
00195         panel->Layout();
00196 
00197         return panel;
00198 }

void interfMainPanel::onActionButtonPressed1 ( wxCommandEvent &  event  ) 

Responds to the events of the buttons, when the same panel is responsible for it. It gets the name of the button corresponding to the method that has to be executed, it uses attribute eventHandler to call the methods define by the application. see setEventHandler(wxEventHandler*)

Definition at line 220 of file interfMainPanel.cxx.

References menubar, menubar1, menubar2, menubar3, menubar4, menubar5, menubar6, PANEL, PANEL1, PANEL2, PANEL3, PANEL4, PANEL5, PANEL6, splitterwindow, statictext, statictext1, statictext2, statictext3, statictext4, statictext5, and statictext6.

Referenced by interfMainPanel().

00221 {
00222         //((interfToolsMenu*)menubar4)->hideAxis();
00223         wxButton* b = (wxButton*)event.GetEventObject();
00224         wxPanel* dmenu;
00225         wxStaticText* text;
00226         std::string dstring = *((std::string*) b->GetClientData());
00227         int sizechange=0;
00228 
00229         if(dstring.compare(PANEL)==0){
00230                 dmenu = menubar;
00231                 text = statictext;
00232         }else if(dstring.compare(PANEL1)==0 ){
00233                 dmenu = menubar1;
00234                 text = statictext1;
00235         }else if(dstring.compare(PANEL2)==0){
00236                 dmenu = menubar2;
00237                 text = statictext2;
00238         }else if(dstring.compare(PANEL3)==0){
00239                 dmenu = menubar3;
00240                 text = statictext3;
00241         }else if(dstring.compare(PANEL4)==0){
00242                 dmenu = menubar4;
00243                 text = statictext4;
00244         }else if(dstring.compare(PANEL5)==0){
00245                 dmenu = menubar5;
00246                 text = statictext5;
00247         }else if(dstring.compare(PANEL6)==0){
00248                 dmenu = menubar6;
00249                 text = statictext6;
00250         }
00251 
00252         if(wxStrcmp(b->GetLabel(),_T("+"))==0 ){
00253                 dmenu->Show(true);
00254                 sizechange = 1;
00255                 b->SetLabel(_T("-"));
00256         }else{
00257                 dmenu->Show(false);
00258                 sizechange = -1;
00259                 b->SetLabel(_T("+"));
00260         }
00261 
00262         sizechange *= (dmenu->GetSize().GetHeight()-10);
00263         splitterwindow->SetSashPosition(splitterwindow->GetSashPosition()+sizechange);
00264 
00265         this->Layout();
00266         this->Refresh();
00267 }

Here is the caller graph for this function:

void interfMainPanel::onBrigthnessColorWindowLevel ( int  colorwindow,
int  windowlevel 
)

Definition at line 585 of file interfMainPanel.cxx.

References getInstance(), and onBrigthnessColorWindowLevel().

Referenced by interfConfigurationPanel::onBrigthnessColorWindowLevel(), and onBrigthnessColorWindowLevel().

00586 {
00587         wxContourMainFrame::getInstance()->onBrigthnessColorWindowLevel(colorwindow, windowlevel);
00588 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCalibration ( wxString  size,
int  unit 
)

Calculates the pixel value in milimeters according to the current contour if the selected contour is a Line Contour

Parameters:
size Size in milimeters of the selected contour
unit Measurement unit

Definition at line 975 of file interfMainPanel.cxx.

References getInstance(), and onePixelSize().

Referenced by interfCalibrationPanel::onCalibrate().

00976 {
00977         int type = 0;
00978         double contourSize = 0.0;
00979         double realSizeDouble = 0.0;
00980 
00981         type = wxContourMainFrame::getInstance()->getType();
00982         contourSize = wxContourMainFrame::getInstance()->getContourSizeInPixels();
00983 
00984         std::cout<<"Cata->Tamaño del contorno en pixeles:"<<contourSize<<endl;
00985 
00986         if ( type == 6 )
00987         {
00988                 if (size.ToDouble(&realSizeDouble))
00989                 {
00990                         if(unit==1)
00991                         {
00992                                 realSizeDouble = realSizeDouble * 10;
00993                         }
00994                         if(unit==2)
00995                         {
00996                                 realSizeDouble = realSizeDouble * 25.4;
00997                         }
00998                         std::cout<< "Valor del usuario" << realSizeDouble<< endl ;
00999                         onePixelSize (realSizeDouble,contourSize);
01000                  }
01001                  else
01002                  {
01003                         wxMessageDialog *dial = new wxMessageDialog(NULL, wxT("Please enter a numeric value"), wxT("Warning"), wxOK | wxICON_EXCLAMATION);
01004                         dial->ShowModal();
01005                  }
01006         }
01007         else
01008         {
01009                 wxMessageDialog *dial = new wxMessageDialog(NULL, wxT("Please select a line contour"), wxT("Warning"), wxOK | wxICON_EXCLAMATION);
01010                 dial->ShowModal();
01011         }
01012 
01013         wxMessageDialog *dial = new wxMessageDialog(NULL, wxT("The calibration was made"), wxT("Information"), wxOK | wxICON_INFORMATION);
01014         dial->ShowModal();
01015         std::cout<< "Cata-> Se ha realizado la calibracion" << endl ;
01016 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onColorLayerImagePressed (  ) 

Definition at line 889 of file interfMainPanel.cxx.

References colorImageLayerPanel, getInfoPanel(), getInstance(), and showPanel().

Referenced by interfImageToolsMenu::onColorLayerImage().

00890 {
00891         // Color Image Layer  view control panel
00892         if(colorImageLayerPanel == NULL){
00893                 colorImageLayerPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER, wxString(_T("")));
00894                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00895                 colorImageLayerPanel->SetSizer(flexsizer, true);
00896                 colorImageLayerPanel->SetAutoLayout( true );
00897                 //configPanel->SetEventHandler(this->contourevent);
00898                 wxPanel *panel = wxContourMainFrame::getInstance()->getColorLayerImageViewPanel( colorImageLayerPanel );
00899                 wxStaticText* stattext = new wxStaticText(colorImageLayerPanel, -1, wxString(_T("   Color Image Layer     ")), wxDefaultPosition,
00900                                                                                                   wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00901                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00902                 flexsizer->Add(panel, wxEXPAND);
00903                 colorImageLayerPanel->Layout();
00904         }
00905         showPanel(colorImageLayerPanel);
00906         wxContourMainFrame::getInstance()->changeInstant();
00907 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onConfigurationPressed (  ) 

Definition at line 596 of file interfMainPanel.cxx.

References configPanel, getInfoPanel(), getInstance(), and showPanel().

Referenced by interfImageToolsMenu::onConfigurationPressed().

00597 {
00598         if(configPanel == NULL){
00599                 configPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER, wxString(_T("")));
00600                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00601                 configPanel->SetSizer(flexsizer, true);
00602                 configPanel->SetAutoLayout( true );
00603                 //configPanel->SetEventHandler(this->contourevent);
00604                 wxPanel* panel = new interfConfigurationPanel(configPanel);
00605                 wxStaticText* stattext = new wxStaticText(configPanel, -1, wxString(_T("   Interface Configuration   ")), wxDefaultPosition,
00606                         wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00607                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00608                 flexsizer->Add(panel, wxEXPAND);
00609                 configPanel->Layout();
00610         }
00611         showPanel(configPanel);
00612 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCopy (  ) 

Definition at line 420 of file interfMainPanel.cxx.

References getInstance(), and onCopy().

Referenced by onCopy(), and interfEditMenu::onCopy().

00421 {
00422         wxContourMainFrame::getInstance()->onCopy();
00423 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContourCircle (  ) 

Definition at line 368 of file interfMainPanel.cxx.

References getInstance(), and onCreateContourCircle().

Referenced by interfNewContourMenu::onCreateContourCircle(), and onCreateContourCircle().

00369 {
00370         wxContourMainFrame::getInstance()->showAxis(false);
00371     wxContourMainFrame::getInstance()->onCreateContourCircle();
00372 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContourLine (  ) 

Definition at line 374 of file interfMainPanel.cxx.

References getInstance(), and onCreateContourLine().

Referenced by interfNewContourMenu::onCreateContourLine(), and onCreateContourLine().

00375 {
00376         wxContourMainFrame::getInstance()->showAxis(false);
00377     wxContourMainFrame::getInstance()->onCreateContourLine();
00378 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContourPoints (  ) 

Definition at line 381 of file interfMainPanel.cxx.

References getInstance(), and onCreateContourPoints().

Referenced by interfNewContourMenu::onCreateContourPoints(), and onCreateContourPoints().

00382 {
00383         wxContourMainFrame::getInstance()->showAxis(false);
00384     wxContourMainFrame::getInstance()->onCreateContourPoints();
00385 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContourPolygon (  ) 

Definition at line 389 of file interfMainPanel.cxx.

References getInstance(), and onCreateContourPolygon().

Referenced by interfNewContourMenu::onCreateContourPolygon(), and onCreateContourPolygon().

00390 {
00391         wxContourMainFrame::getInstance()->showAxis(false);
00392     wxContourMainFrame::getInstance()->onCreateContourPolygon();
00393 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContourRectangle (  ) 

Definition at line 363 of file interfMainPanel.cxx.

References getInstance(), and onCreateContourRectangle().

Referenced by interfNewContourMenu::onCreateContourRectangle(), and onCreateContourRectangle().

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContoursBullEye ( wxPanel *  panBull  ) 

Definition at line 396 of file interfMainPanel.cxx.

References getInstance().

Referenced by interfNewContourMenu::onCreateContourBullseye().

00397 {
00398         wxContourMainFrame::getInstance()->showAxis(false);
00399         wxContourMainFrame::getInstance()->onCreateContourBullEye(panBull);
00400 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onCreateContourSpline (  ) 

This methods connect the event in the class interfNewContourMenu with the world of the appli

Definition at line 357 of file interfMainPanel.cxx.

References getInstance(), and onCreateContourSpline().

Referenced by interfNewContourMenu::onCreateContourSpline(), and onCreateContourSpline().

00358 {
00359         wxContourMainFrame::getInstance()->showAxis(false);
00360         wxContourMainFrame::getInstance()->onCreateContourSpline();
00361 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onDeleteAllContours (  ) 

Definition at line 414 of file interfMainPanel.cxx.

References getInstance(), and onDeleteAllContours().

Referenced by onDeleteAllContours(), and interfDeleteMenu::onDeleteAllContours().

00415 {
00416         wxContourMainFrame::getInstance()->showAxis(false);
00417         wxContourMainFrame::getInstance()->onDeleteAllContours();
00418 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onDeleteContour (  ) 

Definition at line 402 of file interfMainPanel.cxx.

References getInstance(), and onDeleteContour().

Referenced by onDeleteContour(), and interfDeleteMenu::onDeleteContour().

00403 {
00404         wxContourMainFrame::getInstance()->showAxis(false);
00405         wxContourMainFrame::getInstance()->onDeleteContour();
00406 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onDeleteContoursActSlice (  ) 

Definition at line 408 of file interfMainPanel.cxx.

References getInstance(), and onDeleteContoursActSlice().

Referenced by onDeleteContoursActSlice(), and interfDeleteMenu::onDeleteContoursActSlice().

Here is the call graph for this function:

Here is the caller graph for this function:

double interfMainPanel::onePixelSize ( double  realSize,
double  sizePixel 
)

Calculate the pixel value in milimeters

Parameters:
realSize Size of the contour in milimeters
sizePixel Size of the contour in pixels

Definition at line 1018 of file interfMainPanel.cxx.

References _pixelValue, getInstance(), and onePixelSize().

Referenced by onCalibration(), and onePixelSize().

01019 {
01020         _pixelValue = realSize/sizePixel;
01021         std::cout<< "Valor del un pixel = " << _pixelValue<< endl ;
01022         wxContourMainFrame::getInstance()->onePixelSize (_pixelValue);
01023         return _pixelValue ;
01024 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onImport (  ) 

Definition at line 450 of file interfMainPanel.cxx.

References getInstance(), and onImport().

Referenced by onImport(), and interfIOMenu::onImport().

00450                               {
00451         wxContourMainFrame::getInstance()->onImport();
00452 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onInformationContourLabels ( int  typeContourGroup,
int  selection,
int  minZ,
int  maxZ,
int  grayRangeMin,
int  grayRangeMax 
)

Definition at line 766 of file interfMainPanel.cxx.

References getInstance(), and onInformationContourLabels().

Referenced by interfInformationPanel::onExtractInformation(), and onInformationContourLabels().

00766                                                                                                                                       {
00767         wxContourMainFrame::getInstance()->onInformationContourLabels(typeContourGroup, selection, minZ, maxZ,grayRangeMin,grayRangeMax);
00768 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onInformationPressed (  ) 

Definition at line 670 of file interfMainPanel.cxx.

References getInfoPanel(), getInstance(), infoPanelCalibration, infoPanelMask, informationPanel, infoWin, panelAux, and showPanel().

Referenced by interfImageToolsMenu::onInformationPressed().

00671 {
00672 
00673         // Statistics frame
00674         if(infoWin ==NULL){
00675                 infoWin                 = new wxFrame (this, -1,_T("  Statistics  "), wxDefaultPosition, wxDefaultSize, wxFRAME_TOOL_WINDOW|wxSYSTEM_MENU | wxCAPTION |  wxCLIP_CHILDREN |wxFRAME_FLOAT_ON_PARENT | wxRESIZE_BORDER  );
00676                 infoWin->SetSize( wxSize(825,650) );
00677 
00678                 wxSize sizepanel(825,675);
00679                 informationPanel        = new interfInformationPanel(infoWin);//contourevent->getInformationPanel(infoWin);
00680 
00681                 wxBoxSizer * sizerPanel = new wxBoxSizer(wxHORIZONTAL);
00682                 sizerPanel -> Add( informationPanel, 1, wxEXPAND ,0);
00683 
00684                 infoWin->SetSizer( sizerPanel );
00685                 infoWin->SetAutoLayout( true );
00686                 infoWin->Layout();
00687                 infoWin->Show();
00688         }else {
00689 
00690                 if (infoWin->IsShown()==true)
00691                 {
00692                         infoWin->Show(false);
00693                 } else  {
00694                         //contourevent->FillGridWithContoursInformation();
00695                         infoWin->Show(true);
00696                 }
00697         }
00698 
00699 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
00700         if(panelAux == NULL)
00701         {
00702                 panelAux = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER, wxString(_T("")));
00703         }
00704 //------------------------------------------------------------------------------------------------------------
00705 
00706         // mask view control panel
00707         if(infoPanelMask == NULL){
00708                 infoPanelMask = new wxPanel(panelAux, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER, wxString(_T("")));
00709                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00710                 infoPanelMask->SetSizer(flexsizer, true);
00711                 infoPanelMask->SetAutoLayout( true );
00712                 //configPanel->SetEventHandler(this->contourevent);
00713                 wxPanel *panel = wxContourMainFrame::getInstance()->getMaskImageViewPanel( infoPanelMask );
00714                 wxStaticText* stattext = new wxStaticText(infoPanelMask, -1, wxString(_T("   Mask segmentation    ")), wxDefaultPosition,
00715                                                                                                   wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00716 
00717                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00718 
00719                 flexsizer->Add(panel, wxEXPAND);
00720                 infoPanelMask->Layout();
00721 
00722         }
00723 
00724 //CMRU 29-08-09-----------------------------------------------------------------------------------------------
00725         //Calibration panel
00726         if(infoPanelCalibration == NULL)
00727         {
00728                 infoPanelCalibration = new wxPanel(panelAux, -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER , wxString(_T("")));
00729                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00730                 infoPanelCalibration->SetSizer(flexsizer, true);
00731                 infoPanelCalibration->SetAutoLayout( true );
00732 
00733                 wxPanel *panel = new interfCalibrationPanel(infoPanelCalibration);
00734                 wxStaticText* stattext = new wxStaticText(infoPanelCalibration, -1, wxString(_T("              Calibration               ")), wxDefaultPosition,
00735                                                                                                   wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00736 
00737                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00738 
00739                 flexsizer->Add(panel, wxEXPAND);
00740                 infoPanelCalibration->Layout();
00741         }
00742 
00743         wxFlexGridSizer* sizer = new wxFlexGridSizer(1);
00744         panelAux->SetSizer(sizer, true);
00745         panelAux->SetAutoLayout( true );
00746         sizer->Add(infoPanelMask);
00747         sizer->Add(infoPanelCalibration);
00748 
00749         showPanel(panelAux);
00750 
00751 //------------------------------------------------------------------
00752 
00753         wxContourMainFrame::getInstance()->changeInstant();
00754 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onInterpolation ( bool  interpolate  ) 

Definition at line 590 of file interfMainPanel.cxx.

References getInstance(), and onInterpolation().

Referenced by interfConfigurationPanel::OnInterpolation(), and onInterpolation().

00591 {
00592         wxContourMainFrame::getInstance()->onInterpolation(interpolate);
00593 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onLoad (  ) 

Definition at line 440 of file interfMainPanel.cxx.

References getInstance(), and onLoad().

Referenced by onLoad(), and interfIOMenu::onLoad().

00441 {
00442         wxContourMainFrame::getInstance()->onLoad();
00443 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onMirror (  ) 

Definition at line 860 of file interfMainPanel.cxx.

References getInstance(), and onMirror().

Referenced by onMirror(), and interfMirrorPanel::onMirrorGo().

00861 {
00862         wxContourMainFrame::getInstance()->onMirror();
00863 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onMirrorAxisHide (  ) 

Definition at line 874 of file interfMainPanel.cxx.

References getInstance(), and refLineShown.

Referenced by interfMirrorPanel::onAxisShow().

00875 {
00876         if (refLineShown)
00877         {
00878                 wxContourMainFrame::getInstance()->refLineHide();
00879                 refLineShown=false;
00880         }
00881 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onMirrorAxisShow (  ) 

Definition at line 865 of file interfMainPanel.cxx.

References getInstance(), and refLineShown.

Referenced by interfMirrorPanel::onAxisShow().

00866 {
00867         if (!refLineShown)
00868         {
00869                 wxContourMainFrame::getInstance()->refLineShow();
00870                 refLineShown=true;
00871         }
00872 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onMirrorChangeWidth ( int  width  ) 

Definition at line 883 of file interfMainPanel.cxx.

References getInstance().

Referenced by interfMirrorPanel::onChangeWidth().

00884 {
00885         wxContourMainFrame::getInstance()->refLineChangeWidth(width);
00886 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onMirrorPressed (  ) 

Definition at line 826 of file interfMainPanel.cxx.

References getInfoPanel(), getInstance(), mirrorPanel, panelMirror, refLineShown, and showPanel().

Referenced by interfToolsMenu::onMirrorPressed().

00826                                      {
00827     if(mirrorPanel==NULL)
00828         {
00829 
00830                 mirrorPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
00831                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00832                 mirrorPanel->SetSizer(flexsizer, true);
00833                 mirrorPanel->SetAutoLayout( true );
00834                 panelMirror = new interfMirrorPanel(mirrorPanel);
00835 
00836                 wxStaticText* stattext = new wxStaticText(mirrorPanel, -1, wxString(_T("   Mirroring Tool   ")), wxDefaultPosition,
00837                         wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00838 
00839                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00840                 flexsizer->Add(panelMirror, wxEXPAND);
00841                 mirrorPanel->Layout();
00842 
00843                 refLineShown=true;
00844                 wxContourMainFrame::getInstance()->referenceLine();
00845         }
00846 
00847         else
00848         {
00849 
00850                 if (!refLineShown)
00851                 {
00852                         wxContourMainFrame::getInstance()->refLineShow();
00853                         refLineShown=true;
00854                 }
00855         }
00856 
00857         showPanel(mirrorPanel);
00858 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onPaste (  ) 

Definition at line 425 of file interfMainPanel.cxx.

References getInstance(), and onPaste().

Referenced by onPaste(), and interfEditMenu::onPaste().

00426 {
00427         wxContourMainFrame::getInstance()->onPaste();
00428 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onPrintLabel (  ) 

Associates the current selected contour with a label

Definition at line 943 of file interfMainPanel.cxx.

References getInstance(), and onPrintLabel().

Referenced by interfToolsMenu::onPrintLabel(), and onPrintLabel().

00944 {
00945         wxString label;
00946         manualBaseModel* manualModel = wxContourMainFrame::getInstance()->getContour();
00947 
00948         if(manualModel==NULL)
00949         {
00950         wxMessageDialog *dial = new wxMessageDialog(NULL, wxT("Please select a Contour"), wxT("Warning"), wxOK | wxICON_EXCLAMATION);
00951                 dial->ShowModal();
00952                 return;
00953         }
00954 
00955         wxTextEntryDialog* dialog = new wxTextEntryDialog(this,_T("Enter a tag name: ")) ;
00956 
00957         if (dialog->ShowModal() == wxID_OK)
00958         {
00959                 label = dialog->GetValue();
00960 
00961                 if(label.Len()!=0)
00962                 {
00963                         wxContourMainFrame::getInstance()->onPrintLabel(label,manualModel);
00964                         wxMessageDialog *dial = new wxMessageDialog(NULL, wxT("The tag name was updated"), wxT("Information"), wxOK | wxICON_INFORMATION);
00965                         dial->ShowModal();
00966                 }
00967                 else
00968                 {
00969                         wxMessageDialog *dial = new wxMessageDialog(NULL, wxT("Please enter a valid tag"), wxT("Warning"), wxOK | wxICON_EXCLAMATION);
00970                         dial->ShowModal();
00971                 }
00972         }
00973 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onRedo (  ) 

Definition at line 435 of file interfMainPanel.cxx.

References getInstance(), and onRedo().

Referenced by onRedo(), and interfEditMenu::onRedo().

00436 {
00437         wxContourMainFrame::getInstance()->onRedo();
00438 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onRigidPressed (  ) 

Definition at line 567 of file interfMainPanel.cxx.

References getInstance(), and onRigidPressed().

Referenced by interfToolsMenu::onRigidPressed(), and onRigidPressed().

00568 {
00569         wxContourMainFrame::getInstance()->onRigidPressed();
00570 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSave (  ) 

Definition at line 445 of file interfMainPanel.cxx.

References getInstance(), and onSave().

Referenced by onSave(), and interfIOMenu::onSave().

00446 {
00447         wxContourMainFrame::getInstance()->onSave();
00448 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSaveResults ( std::string  directory,
std::string  namefile,
std::string  filename,
int  typeContourGroup,
int  selection,
int  minZ,
int  maxZ,
bool  XYZValues,
bool  contourImage,
bool  statistics 
)

Definition at line 808 of file interfMainPanel.cxx.

References getInstance(), and onSaveResults().

Referenced by interfInformationPanel::onSaveResults(), and onSaveResults().

00810 {
00811         wxContourMainFrame::getInstance()->onSaveResults(directory, namefile, filename,
00812                 typeContourGroup, selection, minZ,maxZ, XYZValues, contourImage, statistics);
00813 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSegmentationAllSlice ( int  minZ,
int  maxZ,
int  isovalue,
int  sampling,
int  method 
)

Definition at line 507 of file interfMainPanel.cxx.

References getInstance(), and onSegmentationAllSlice().

Referenced by interfSegmentationPanelVTK::onSegmentationAllSlice(), and onSegmentationAllSlice().

00508 {
00509         wxContourMainFrame::getInstance()->onSegmentationAllSlice(minZ, maxZ,isovalue,sampling,method);
00510 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSegmentationOneSlice ( int  isovalue,
int  sampling,
int  method 
)

Definition at line 492 of file interfMainPanel.cxx.

References getInstance(), and onSegmentationOneSlice().

Referenced by interfSegmentationPanelVTK::onSegmentationOneSlice(), and onSegmentationOneSlice().

00493 {
00494         wxContourMainFrame::getInstance()->onSegmentationOneSlice(isovalue, sampling, method);
00495 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSegmentationOneSliceITK ( wxString  distance,
wxString  sigma,
wxString  alfa,
wxString  beta,
wxString  propagation,
wxString  iterations,
wxString  inflation 
)

Definition at line 497 of file interfMainPanel.cxx.

References getInstance(), and onSegmentationOneSliceITK().

Referenced by interfSegmentationPanelITK::onSegmentationOneSlice(), and onSegmentationOneSliceITK().

00498 {
00499         wxContourMainFrame::getInstance()->onSegmentationOneSliceITK(distance, sigma, alfa, beta, propagation, iterations, inflation);
00500 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSegmentationPressed (  ) 

Definition at line 516 of file interfMainPanel.cxx.

References axisshown, getInfoPanel(), getInstance(), segmentationPanel, segmentPanel, and showPanel().

Referenced by interfSegmentationMenu::onSegmentationPressed().

00517 {
00518         if(segmentPanel == NULL){
00519                 segmentPanel = new wxPanel(getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
00520                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00521                 segmentPanel->SetSizer(flexsizer, true);
00522                 segmentPanel->SetAutoLayout(true);
00523                 segmentPanel->SetEventHandler(this);
00524 
00525                 //wxPanel* panel = contourevent->getSegmentationPanel(segmentPanel);
00526                 segmentationPanel = new interfSegmentationPanelVTK(segmentPanel);
00527 
00528 
00529                 wxStaticText* stattext = new wxStaticText(segmentPanel, -1, wxString(_T("   Automatic Segmentation   ")), wxDefaultPosition,
00530                         wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00531 
00532                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00533                 flexsizer->Add(segmentationPanel, wxEXPAND);
00534                 segmentPanel->Layout();
00535         }
00536         showPanel(segmentPanel);
00537         wxContourMainFrame::getInstance()->showAxis(true);
00538         axisshown = true;
00539 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSegmentationPressedITK (  ) 

Definition at line 541 of file interfMainPanel.cxx.

References axisshown, getInfoPanel(), getInstance(), segmentPanelITK, and showPanel().

Referenced by interfSegmentationMenu::onSegmentationPressedITK().

00542 {
00543     if(segmentPanelITK == NULL){
00544                 segmentPanelITK = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
00545 
00546 
00547                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00548                 segmentPanelITK->SetSizer(flexsizer, true);
00549                 segmentPanelITK->SetAutoLayout( true );
00550                 //segmentPanelITK->SetEventHandler(this->contourevent);
00551 
00552                 //wxPanel* panel = contourevent->getSegmentationPanelITK(segmentPanelITK);
00553                 wxPanel* panel = new interfSegmentationPanelITK(segmentPanelITK);
00554 
00555                 wxStaticText* stattext = new wxStaticText(segmentPanelITK, -1, wxString(_T("   Automatic ITK Segmentation   ")), wxDefaultPosition,
00556                         wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00557 
00558                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00559                 flexsizer->Add(panel, wxEXPAND);
00560                 segmentPanelITK->Layout();
00561         }
00562         showPanel(segmentPanelITK);
00563         wxContourMainFrame::getInstance()->showAxis(true);
00564         axisshown = true;
00565 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSnakePressed (  ) 

Definition at line 819 of file interfMainPanel.cxx.

References axisshown, getInstance(), and onSnakePressed().

Referenced by interfSegmentationMenu::onSnakePressed(), and onSnakePressed().

00820 {
00821         axisshown=false;
00822         wxContourMainFrame::getInstance()->showAxis(axisshown);
00823         wxContourMainFrame::getInstance()->onSnakePressed();
00824 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSpreadAdd (  ) 

Definition at line 644 of file interfMainPanel.cxx.

References getInstance(), and onSpreadAdd().

Referenced by interfSpreadPanel::onSpreadAdd(), and onSpreadAdd().

00645 {
00646         wxContourMainFrame::getInstance()->onSpreadAdd();
00647 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSpreadAddAll (  ) 

Definition at line 649 of file interfMainPanel.cxx.

References getInstance(), and onSpreadAddAll().

Referenced by interfSpreadPanel::onSpreadAddAll(), and onSpreadAddAll().

00650 {
00651         wxContourMainFrame::getInstance()->onSpreadAddAll();
00652 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSpreadGo ( int  type  ) 

Definition at line 660 of file interfMainPanel.cxx.

References getInstance(), and onSpreadGo().

Referenced by interfSpreadPanel::onSpreadGo(), and onSpreadGo().

00661 {
00662         wxContourMainFrame::getInstance()->onSpreadGo(type);
00663 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onSpreadPressed (  ) 

Definition at line 614 of file interfMainPanel.cxx.

References getInfoPanel(), getInstance(), panelSpread, showPanel(), and spreadPanel.

Referenced by interfToolsMenu::onSpreadPressed().

00615 {
00616     if(spreadPanel==NULL){
00617 
00618                 spreadPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
00619                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00620                 spreadPanel->SetSizer(flexsizer, true);
00621                 spreadPanel->SetAutoLayout( true );
00622                 //spreadPanel->SetEventHandler(this->contourevent);
00623 
00624                 //wxPanel* panel = contourevent->getSpreadPanel(spreadPanel);
00625                 panelSpread = new interfSpreadPanel(spreadPanel);
00626 
00627 
00628                 wxStaticText* stattext = new wxStaticText(spreadPanel, -1, wxString(_T("   Automatic Spread   ")), wxDefaultPosition,
00629                         wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00630 
00631                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00632                 flexsizer->Add(panelSpread, wxEXPAND);
00633                 spreadPanel->Layout();
00634         }
00635         showPanel(spreadPanel);
00636         //hideAxis();
00637 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onTest (  ) 

Definition at line 454 of file interfMainPanel.cxx.

References getInfoPanel(), getInstance(), mirrorPanel, panelTest, showPanel(), and testPanel.

Referenced by interfIOMenu::onTest().

00454                             {
00455         if(testPanel==NULL)
00456         {
00457                 testPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition,
00458                         wxDefaultSize, wxBORDER_STATIC, wxString(_T("")));
00459                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00460                 testPanel->SetSizer(flexsizer, true);
00461                 testPanel->SetAutoLayout( true );
00462                 panelTest = new interfTestPanel(testPanel);
00463 
00464                 wxStaticText* stattext = new wxStaticText(mirrorPanel,  -1,
00465                         wxString(_T("   Test Panel   ")),
00466                         wxDefaultPosition, wxDefaultSize,
00467                         wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00468 
00469                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00470                 flexsizer->Add(panelTest, wxEXPAND);
00471                 testPanel->Layout();
00472                 showPanel(testPanel);
00473         }
00474 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onThresholdPressed (  ) 

Definition at line 910 of file interfMainPanel.cxx.

References getInfoPanel(), getInstance(), showPanel(), and thresholdPanel.

Referenced by interfImageToolsMenu::onThreshold().

00911 {
00912         // Threshold view control panel
00913         if(thresholdPanel == NULL){
00914                 thresholdPanel = new wxPanel(interfMainPanel::getInstance()->getInfoPanel(), -1, wxDefaultPosition, wxDefaultSize, wxNO_BORDER, wxString(_T("")));
00915                 wxFlexGridSizer* flexsizer = new wxFlexGridSizer(1);
00916                 thresholdPanel->SetSizer(flexsizer, true);
00917                 thresholdPanel->SetAutoLayout( true );
00918                 //configPanel->SetEventHandler(this->contourevent);
00919                 wxPanel *panel = wxContourMainFrame::getInstance()->getThresholdImageViewPanel( thresholdPanel );
00920                 wxStaticText* stattext = new wxStaticText(thresholdPanel, -1, wxString(_T("   Threshold segmentation    ")), wxDefaultPosition,
00921                                                                                                   wxDefaultSize, wxALIGN_CENTRE|wxBORDER_SIMPLE|wxFULL_REPAINT_ON_RESIZE, wxString(_T("")));
00922                 flexsizer->Add(stattext,wxALIGN_CENTER | wxALIGN_CENTRE);
00923                 flexsizer->Add(panel, wxEXPAND);
00924                 thresholdPanel->Layout();
00925         }
00926         showPanel(thresholdPanel);
00927         wxContourMainFrame::getInstance()->changeInstant();
00928 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onUndo (  ) 

Definition at line 430 of file interfMainPanel.cxx.

References getInstance(), and onUndo().

Referenced by onUndo(), and interfEditMenu::onUndo().

00431 {
00432         wxContourMainFrame::getInstance()->onUndo();
00433 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::onWidthOfContour ( double  width  ) 

Definition at line 572 of file interfMainPanel.cxx.

References getInstance(), and onWidthOfContour().

Referenced by interfConfigurationPanel::onWidthOfContour(), and onWidthOfContour().

00573 {
00574         wxContourMainFrame::getInstance()->onWidthOfContour(width);
00575 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::RefreshInterface (  ) 

Definition at line 476 of file interfMainPanel.cxx.

References getInstance(), and RefreshInterface().

Referenced by interfInformationPanel::onRangeSliceInformation(), and RefreshInterface().

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::removeContourCheckBox ( std::string  id  ) 

Removes a checkbox from the list of checkboxes in the flexsizer (checkboxsizer) id of contour

Definition at line 215 of file interfMainPanel.cxx.

References interfToolsSpreadPanel::removeContourCheckBox(), and toolspread.

00216 {
00217         toolspread->removeContourCheckBox(id);
00218 }

Here is the call graph for this function:

void interfMainPanel::resetAppend (  ) 

Definition at line 639 of file interfMainPanel.cxx.

References getInstance(), and resetAppend().

Referenced by interfSpreadPanel::onSpreadReset(), and resetAppend().

00640 {
00641         wxContourMainFrame::getInstance()->resetAppend();
00642 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::resetInstance (  )  [static]

Ressts the instance of the class

Definition at line 174 of file interfMainPanel.cxx.

References _newframe, and interfmainpanel.

00175 {
00176         //delete interfmainpanel;
00177         delete _newframe;
00178         interfmainpanel = NULL;
00179 }

void interfMainPanel::setCellValueInfoPanel ( int  z,
int  tmpIntA,
wxString  tempString 
)

Definition at line 792 of file interfMainPanel.cxx.

References informationPanel.

00793 {
00794         ((interfInformationPanel*)informationPanel)->setCellValue(z, tmpIntA, tempString);
00795 }

void interfMainPanel::setColLableInfoPanel ( int  tmpIntB,
wxString  tmpTitleString 
)

Definition at line 797 of file interfMainPanel.cxx.

References informationPanel.

00798 {
00799         ((interfInformationPanel*)informationPanel)->setColLabel(tmpIntB, tmpTitleString);
00800 
00801 }

void interfMainPanel::SetContourGroup ( int  contourGroup  ) 

Definition at line 937 of file interfMainPanel.cxx.

References getInstance(), and SetContourGroup().

Referenced by interfInformationPanel::onContourGroup(), and SetContourGroup().

00938 {
00939         wxContourMainFrame::getInstance()->SetContourGroup( contourGroup);
00940 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::setLabelSegmentationPanelVTK ( wxString  tmpString  ) 

Definition at line 512 of file interfMainPanel.cxx.

References segmentationPanel.

00513 {
00514     ((interfSegmentationPanelVTK*)segmentationPanel)->setLabel(tmpString);
00515 }

wxPanel * interfMainPanel::setMenuTextSizer ( wxWindow *  parent,
wxPanel *  panel,
wxStaticText *  text 
) [private]

Puts the panel button and the text int the sizer

Definition at line 282 of file interfMainPanel.cxx.

Referenced by interfMainPanel().

00283 {
00284 
00285         wxFlexGridSizer* flexsizer = new wxFlexGridSizer(2,1,2,2);
00286         parent->SetSizer(flexsizer, true);
00287         parent->SetAutoLayout( true );
00288 
00289         flexsizer->Add(text, wxFLEX_GROWMODE_ALL);
00290         flexsizer->Add(panel, wxFLEX_GROWMODE_ALL);
00291 
00292         parent->Layout();
00293         return (wxPanel*)parent;
00294 }

Here is the caller graph for this function:

void interfMainPanel::setRowLabelInfoPanel ( int  z,
wxString  tempString 
)

Definition at line 777 of file interfMainPanel.cxx.

References informationPanel.

00778 {
00779         ((interfInformationPanel*)informationPanel)->setRowLabelInfoPanel(z, tempString);
00780 }

void interfMainPanel::SetScalarRange ( int  grayRangeMin,
int  grayRangeMax 
)

Definition at line 803 of file interfMainPanel.cxx.

References getInstance(), and SetScalarRange().

Referenced by interfInformationPanel::onRangeSliceInformation(), and SetScalarRange().

00804 {
00805         wxContourMainFrame::getInstance()->SetScalarRange(grayRangeMin, grayRangeMax);
00806 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::setStringInfoPanel ( wxString  tmpString  ) 

Definition at line 770 of file interfMainPanel.cxx.

References informationPanel.

00771 {
00772         if(informationPanel!=NULL){
00773                 ((interfInformationPanel*)informationPanel)->setStringInfoPanel(tmpString);
00774         }
00775 }

void interfMainPanel::setStringSpread ( std::string  stringtemp  ) 

Definition at line 665 of file interfMainPanel.cxx.

References panelSpread, and interfSpreadPanel::setStringSpread().

00666 {
00667         panelSpread->setStringSpread(stringtemp);
00668 }

Here is the call graph for this function:

bool interfMainPanel::Show ( bool  show  )  [virtual]

Definition at line 164 of file interfMainPanel.cxx.

References _newframe.

Referenced by wxContourMainFrame::ShowToolsPanel().

00165 {
00166         return _newframe->Show(show);
00167 }

Here is the caller graph for this function:

void interfMainPanel::showPanel ( wxWindow *  panel  ) 

Shows the panel in the

fix warning: virtual bool wxSizer::Remove(wxWindow*) is deprecated

Definition at line 299 of file interfMainPanel.cxx.

References currentWindow, getInstance(), infoPanel, and splitterwindow.

Referenced by onColorLayerImagePressed(), onConfigurationPressed(), interfNewContourMenu::onCreateContourBullseye(), onInformationPressed(), onMirrorPressed(), onSegmentationPressed(), interfSegmentationPanelVTK::onSegmentationPressedITK(), onSegmentationPressedITK(), onSpreadPressed(), onTest(), and onThresholdPressed().

00300 {
00301         wxContourMainFrame::getInstance()->showAxis(false);
00302         wxSizer* sizer = infoPanel->GetSizer();
00303 
00304         if(currentWindow != NULL){
00305                 currentWindow->Hide();
00307                 sizer->Remove(currentWindow);
00308         }
00309         sizer->Add(panel);
00310         currentWindow = panel;
00311         currentWindow->Show(true);
00312 
00313         splitterwindow->SetSashPosition(splitterwindow->GetSashPosition()+1);
00314         splitterwindow->SetSashPosition(splitterwindow->GetSashPosition()-1);
00315 
00316         infoPanel->Layout();
00317         infoPanel->Refresh();
00318         this->Layout();
00319         this->Refresh();
00320 }

Here is the call graph for this function:

Here is the caller graph for this function:

void interfMainPanel::ShowResultImages ( int  typeContourGroup,
int  selection,
int  minZ,
int  maxZ 
)

Definition at line 931 of file interfMainPanel.cxx.

References getInstance(), and ShowResultImages().

Referenced by interfInformationPanel::onShowResultImages(), and ShowResultImages().

00932 {
00933         wxContourMainFrame::getInstance()->ShowResultImages(typeContourGroup, selection, minZ, maxZ);
00934 }

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

wxFrame * interfMainPanel::_newframe = NULL [static, private]

Definition at line 208 of file interfMainPanel.h.

Referenced by getInstance(), resetInstance(), and Show().

double interfMainPanel::_pixelValue [private]

Value of a pixel in milimeters

Definition at line 238 of file interfMainPanel.h.

Referenced by GetPixelValue(), and onePixelSize().

Definition at line 273 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onColorLayerImagePressed().

wxPanel* interfMainPanel::configPanel [private]

Definition at line 260 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onConfigurationPressed().

wxWindow* interfMainPanel::currentWindow [private]

Definition at line 217 of file interfMainPanel.h.

Referenced by hidePanel(), interfMainPanel(), and showPanel().

wxPanel* interfMainPanel::infoPanel [private]

Definition at line 220 of file interfMainPanel.h.

Referenced by getInfoPanel(), hidePanel(), interfMainPanel(), and showPanel().

Panel with the calibration options

Definition at line 228 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onInformationPressed().

wxPanel* interfMainPanel::infoPanelMask [private]

Definition at line 221 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onInformationPressed().

wxWindow* interfMainPanel::infoWin [private]

Definition at line 263 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onInformationPressed().

Definition at line 205 of file interfMainPanel.h.

Referenced by getInstance(), and resetInstance().

wxPanel* interfMainPanel::menubar [private]

Definition at line 209 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::menubar1 [private]

Definition at line 210 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::menubar2 [private]

Definition at line 211 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::menubar3 [private]

Definition at line 212 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::menubar4 [private]

Definition at line 213 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::menubar5 [private]

Definition at line 214 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::menubar6 [private]

Definition at line 215 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::mirrorPanel [private]

Definition at line 269 of file interfMainPanel.h.

Referenced by interfMainPanel(), onMirrorPressed(), and onTest().

std::string interfMainPanel::PANEL [private]

Definition at line 249 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

std::string interfMainPanel::PANEL1 [private]

Definition at line 250 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

std::string interfMainPanel::PANEL2 [private]

Definition at line 251 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

std::string interfMainPanel::PANEL3 [private]

Definition at line 252 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

std::string interfMainPanel::PANEL4 [private]

Definition at line 253 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

std::string interfMainPanel::PANEL5 [private]

Definition at line 254 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

std::string interfMainPanel::PANEL6 [private]

Definition at line 255 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::panelAux [private]

Panel who contains the calibration panel and the information panel mask

Definition at line 233 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onInformationPressed().

Definition at line 270 of file interfMainPanel.h.

Referenced by onMirrorPressed().

Definition at line 262 of file interfMainPanel.h.

Referenced by appendStringSpread(), onSpreadPressed(), and setStringSpread().

Definition at line 267 of file interfMainPanel.h.

Referenced by onTest().

Definition at line 276 of file interfMainPanel.h.

Referenced by onMirrorAxisHide(), onMirrorAxisShow(), and onMirrorPressed().

Definition at line 258 of file interfMainPanel.h.

Referenced by onSegmentationPressed(), and setLabelSegmentationPanelVTK().

wxPanel* interfMainPanel::segmentPanel [private]

Definition at line 257 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onSegmentationPressed().

Definition at line 259 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onSegmentationPressedITK().

wxSplitterWindow* interfMainPanel::splitterwindow [private]

Definition at line 218 of file interfMainPanel.h.

Referenced by hidePanel(), interfMainPanel(), onActionButtonPressed1(), and showPanel().

wxPanel* interfMainPanel::spreadPanel [private]

Definition at line 261 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onSpreadPressed().

wxStaticText* interfMainPanel::statictext [private]

Definition at line 241 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxStaticText* interfMainPanel::statictext1 [private]

Definition at line 242 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxStaticText* interfMainPanel::statictext2 [private]

Definition at line 243 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxStaticText* interfMainPanel::statictext3 [private]

Definition at line 244 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxStaticText* interfMainPanel::statictext4 [private]

Definition at line 245 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxStaticText* interfMainPanel::statictext5 [private]

Definition at line 246 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxStaticText* interfMainPanel::statictext6 [private]

Definition at line 247 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onActionButtonPressed1().

wxPanel* interfMainPanel::testPanel [private]

Definition at line 266 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onTest().

wxPanel* interfMainPanel::thresholdPanel [private]

Definition at line 272 of file interfMainPanel.h.

Referenced by interfMainPanel(), and onThresholdPressed().


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