creaContours_lib
|
#include <interfMainPanel.h>
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 interfMainPanel * | getInstance (wxWindow *parent, std::string datadir, wxEvtHandler *evtHandler=NULL) |
static interfMainPanel * | getInstance (wxWindow *parent, wxEvtHandler *evtHandler=NULL) |
static interfMainPanel * | getInstance () |
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) |
Static Private Attributes | |
static interfMainPanel * | interfmainpanel =NULL |
static wxFrame * | _newframe =NULL |
Definition at line 55 of file interfMainPanel.h.
interfMainPanel::interfMainPanel | ( | wxWindow * | parent, |
int | sizex, | ||
int | sizey, | ||
wxEvtHandler * | evtHandler, | ||
std::string | datadir = "data/Icons" |
||
) |
Definition at line 32 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().
interfMainPanel::~interfMainPanel | ( | void | ) |
Definition at line 161 of file interfMainPanel.cxx.
void interfMainPanel::addContourCheckBox | ( | std::string | id | ) |
Adds a new checkbox to the scrolledwindow using the checkboxsizer id of contour
Definition at line 230 of file interfMainPanel.cxx.
References interfToolsSpreadPanel::addContourCheckBox(), and toolspread.
void interfMainPanel::appendColsInformationPanel | ( | int | _numberOfVariablesStatistics | ) |
Definition at line 812 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::onInformationContourLabels().
void interfMainPanel::appendStringSpread | ( | std::string | val | ) |
Definition at line 680 of file interfMainPanel.cxx.
References interfSpreadPanel::appendStringSpread(), and panelSpread.
Referenced by wxContourMainFrame::onSpreadAdd(), and wxContourMainFrame::onSpreadAddAll().
|
private |
initializes a button with data
Definition at line 300 of file interfMainPanel.cxx.
Referenced by interfMainPanel().
wxString interfMainPanel::getCellValue | ( | int | j, |
int | i | ||
) |
Definition at line 840 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::onSaveResults().
int interfMainPanel::getColorWindow | ( | ) |
Definition at line 602 of file interfMainPanel.cxx.
References wxContourMainFrame::getColorWindow(), and wxContourMainFrame::getInstance().
Referenced by interfConfigurationPanel::interfConfigurationPanel().
vtkImageData * interfMainPanel::getImageData | ( | ) |
Definition at line 506 of file interfMainPanel.cxx.
References wxContourMainFrame::getImageData(), and wxContourMainFrame::getInstance().
Referenced by getImageRange().
int interfMainPanel::GetImageDataSizeZ | ( | ) |
Definition at line 527 of file interfMainPanel.cxx.
References wxContourMainFrame::GetImageDataSizeZ(), and wxContourMainFrame::getInstance().
Referenced by interfInformationPanel::FillGridWithContoursInformation(), interfInformationPanel::interfInformationPanel(), interfSegmentationPanelVTK::interfSegmentationPanelVTK(), and wxContourMainFrame::onSpreadAddAll().
void interfMainPanel::getImageRange | ( | double | range[2] | ) |
Definition at line 511 of file interfMainPanel.cxx.
References getImageData().
Referenced by interfCalibrationPanel::interfCalibrationPanel(), interfConfigurationPanel::interfConfigurationPanel(), interfInformationPanel::interfInformationPanel(), interfSegmentationPanelITK::interfSegmentationPanelITK(), and interfSegmentationPanelVTK::interfSegmentationPanelVTK().
wxPanel * interfMainPanel::getInfoPanel | ( | ) |
Gets the Information panel
Definition at line 377 of file interfMainPanel.cxx.
References infoPanel.
Referenced by hidePanel(), onColorLayerImagePressed(), onConfigurationPressed(), onInformationPressed(), onMirrorPressed(), onSegmentationPressed(), onSegmentationPressedITK(), onSpreadPressed(), onTest(), and onThresholdPressed().
|
static |
This method should be called the first time by the parent class in creates all the panels the first time
Definition at line 166 of file interfMainPanel.cxx.
References _newframe, interfMainPanel(), and interfmainpanel.
|
static |
This method should be called the first time by the parent class in creates all the panels the first time
Definition at line 177 of file interfMainPanel.cxx.
References _newframe, interfMainPanel(), and interfmainpanel.
|
static |
Gets the instance of the class
Definition at line 194 of file interfMainPanel.cxx.
References interfmainpanel.
Referenced by interfInformationPanel::FillGridWithContoursInformation(), wxContourMainFrame::getMaskValue(), hidePanel(), interfCalibrationPanel::interfCalibrationPanel(), interfConfigurationPanel::interfConfigurationPanel(), interfInformationPanel::interfInformationPanel(), interfSegmentationPanelITK::interfSegmentationPanelITK(), interfSegmentationPanelVTK::interfSegmentationPanelVTK(), interfMirrorPanel::onAxisShow(), interfConfigurationPanel::onBrigthnessColorWindowLevel(), interfCalibrationPanel::onCalibrate(), interfMirrorPanel::onChangeWidth(), interfImageToolsMenu::onColorLayerImage(), onColorLayerImagePressed(), interfImageToolsMenu::onConfigurationPressed(), onConfigurationPressed(), interfInformationPanel::onContourGroup(), interfEditMenu::onCopy(), interfNewContourMenu::onCreateContourBullseye(), interfNewContourMenu::onCreateContourCircle(), interfNewContourMenu::onCreateContourLine(), interfNewContourMenu::onCreateContourPoints(), interfNewContourMenu::onCreateContourPolygon(), interfNewContourMenu::onCreateContourRectangle(), interfNewContourMenu::onCreateContourSpline(), interfDeleteMenu::onDeleteAllContours(), interfDeleteMenu::onDeleteContour(), interfDeleteMenu::onDeleteContoursActSlice(), interfInformationPanel::onExtractInformation(), interfIOMenu::onImport(), wxContourMainFrame::onInformationContourLabels(), interfImageToolsMenu::onInformationPressed(), onInformationPressed(), wxContourMainFrame::onInsertCalculation(), interfConfigurationPanel::OnInterpolation(), interfIOMenu::onLoad(), interfMirrorPanel::onMirrorGo(), interfToolsMenu::onMirrorPressed(), onMirrorPressed(), interfEditMenu::onPaste(), interfToolsMenu::onPrintLabel(), interfInformationPanel::onRangeSliceInformation(), interfEditMenu::onRedo(), interfToolsMenu::onRigidPressed(), interfIOMenu::onSave(), interfInformationPanel::onSaveResults(), wxContourMainFrame::onSaveResults(), interfSegmentationPanelVTK::onSegmentationAllSlice(), wxContourMainFrame::onSegmentationAllSlice(), interfSegmentationPanelVTK::onSegmentationOneSlice(), interfSegmentationPanelITK::onSegmentationOneSlice(), interfSegmentationMenu::onSegmentationPressed(), interfSegmentationPanelVTK::onSegmentationPressedITK(), interfSegmentationMenu::onSegmentationPressedITK(), onSegmentationPressedITK(), interfInformationPanel::onShowResultImages(), interfSegmentationMenu::onSnakePressed(), interfSpreadPanel::onSpreadAdd(), wxContourMainFrame::onSpreadAdd(), interfSpreadPanel::onSpreadAddAll(), wxContourMainFrame::onSpreadAddAll(), interfSpreadPanel::onSpreadGo(), wxContourMainFrame::onSpreadGo(), interfToolsMenu::onSpreadPressed(), onSpreadPressed(), interfSpreadPanel::onSpreadReset(), interfIOMenu::onTest(), onTest(), interfImageToolsMenu::onThreshold(), onThresholdPressed(), interfEditMenu::onUndo(), interfConfigurationPanel::onWidthOfContour(), wxContourMainFrame::SaveImageResult(), wxContourMainFrame::SaveValuesXYZ(), and wxContourMainFrame::wxContourMainFrame().
void interfMainPanel::getInstantVector | ( | std::vector< int > & | tempVector | ) |
Definition at line 781 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::getInstantVector().
int interfMainPanel::getNumberColsInformationPanel | ( | ) |
Definition at line 807 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::onSaveResults().
std::vector< std::string > interfMainPanel::getOutlinesName | ( | int | slide | ) |
Definition at line 786 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::getOutlinesName().
Referenced by interfInformationPanel::FillGridWithContoursInformation().
double interfMainPanel::GetPixelValue | ( | ) |
Returns the value of a pixel in milimeters
Definition at line 1051 of file interfMainPanel.cxx.
References _pixelValue.
Referenced by wxContourMainFrame::onInsertCalculation().
|
private |
initialize a statictext component of the interface
Definition at line 294 of file interfMainPanel.cxx.
Referenced by interfMainPanel().
int interfMainPanel::getWindowLevel | ( | ) |
Definition at line 606 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::getWindowLevel().
Referenced by interfConfigurationPanel::interfConfigurationPanel().
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 350 of file interfMainPanel.cxx.
References currentWindow, getInfoPanel(), getInstance(), wxContourMainFrame::getInstance(), infoPanel, wxContourMainFrame::showAxis(), and splitterwindow.
|
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 206 of file interfMainPanel.cxx.
References toolspread.
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 245 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().
void interfMainPanel::onBrigthnessColorWindowLevel | ( | int | colorwindow, |
int | windowlevel | ||
) |
Definition at line 610 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onBrigthnessColorWindowLevel().
Referenced by interfConfigurationPanel::onBrigthnessColorWindowLevel().
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
size | Size in milimeters of the selected contour |
unit | Measurement unit |
Definition at line 1000 of file interfMainPanel.cxx.
References wxContourMainFrame::getContourSizeInPixels(), wxContourMainFrame::getInstance(), wxContourMainFrame::getType(), and onePixelSize().
Referenced by interfCalibrationPanel::onCalibrate().
void interfMainPanel::onColorLayerImagePressed | ( | ) |
Definition at line 914 of file interfMainPanel.cxx.
References wxContourMainFrame::changeInstant(), colorImageLayerPanel, wxContourMainFrame::getColorLayerImageViewPanel(), getInfoPanel(), getInstance(), wxContourMainFrame::getInstance(), and showPanel().
Referenced by interfImageToolsMenu::onColorLayerImage().
void interfMainPanel::onConfigurationPressed | ( | ) |
Definition at line 621 of file interfMainPanel.cxx.
References configPanel, getInfoPanel(), getInstance(), and showPanel().
Referenced by interfImageToolsMenu::onConfigurationPressed().
void interfMainPanel::onCopy | ( | ) |
Definition at line 445 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onCopy().
Referenced by interfEditMenu::onCopy().
void interfMainPanel::onCreateContourCircle | ( | ) |
Definition at line 393 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourCircle(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourCircle().
void interfMainPanel::onCreateContourLine | ( | ) |
Definition at line 399 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourLine(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourLine().
void interfMainPanel::onCreateContourPoints | ( | ) |
Definition at line 406 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourPoints(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourPoints().
void interfMainPanel::onCreateContourPolygon | ( | ) |
Definition at line 414 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourPolygon(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourPolygon().
void interfMainPanel::onCreateContourRectangle | ( | ) |
Definition at line 388 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourRectangle(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourRectangle().
void interfMainPanel::onCreateContoursBullEye | ( | wxPanel * | panBull | ) |
Definition at line 421 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourBullEye(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourBullseye().
void interfMainPanel::onCreateContourSpline | ( | ) |
This methods connect the event in the class interfNewContourMenu with the world of the appli
Definition at line 382 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onCreateContourSpline(), and wxContourMainFrame::showAxis().
Referenced by interfNewContourMenu::onCreateContourSpline().
void interfMainPanel::onDeleteAllContours | ( | ) |
Definition at line 439 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onDeleteAllContours(), and wxContourMainFrame::showAxis().
Referenced by interfDeleteMenu::onDeleteAllContours().
void interfMainPanel::onDeleteContour | ( | ) |
Definition at line 427 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onDeleteContour(), and wxContourMainFrame::showAxis().
Referenced by interfDeleteMenu::onDeleteContour().
void interfMainPanel::onDeleteContoursActSlice | ( | ) |
Definition at line 433 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::onDeleteContoursActSlice(), and wxContourMainFrame::showAxis().
Referenced by interfDeleteMenu::onDeleteContoursActSlice().
double interfMainPanel::onePixelSize | ( | double | realSize, |
double | sizePixel | ||
) |
Calculate the pixel value in milimeters
realSize | Size of the contour in milimeters |
sizePixel | Size of the contour in pixels |
Definition at line 1043 of file interfMainPanel.cxx.
References _pixelValue, wxContourMainFrame::getInstance(), and wxContourMainFrame::onePixelSize().
Referenced by onCalibration().
void interfMainPanel::onImport | ( | ) |
Definition at line 475 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onImport().
Referenced by interfIOMenu::onImport().
void interfMainPanel::onInformationContourLabels | ( | int | typeContourGroup, |
int | selection, | ||
int | minZ, | ||
int | maxZ, | ||
int | grayRangeMin, | ||
int | grayRangeMax | ||
) |
Definition at line 791 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onInformationContourLabels().
Referenced by interfInformationPanel::onExtractInformation().
void interfMainPanel::onInformationPressed | ( | ) |
Definition at line 695 of file interfMainPanel.cxx.
References wxContourMainFrame::changeInstant(), getInfoPanel(), getInstance(), wxContourMainFrame::getInstance(), wxContourMainFrame::getMaskImageViewPanel(), infoPanelCalibration, infoPanelMask, informationPanel, infoWin, panelAux, and showPanel().
Referenced by interfImageToolsMenu::onInformationPressed().
void interfMainPanel::onInterpolation | ( | bool | interpolate | ) |
Definition at line 615 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onInterpolation().
Referenced by interfConfigurationPanel::OnInterpolation().
void interfMainPanel::onLoad | ( | ) |
Definition at line 465 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onLoad().
Referenced by interfIOMenu::onLoad().
void interfMainPanel::onMirror | ( | ) |
Definition at line 885 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onMirror().
Referenced by interfMirrorPanel::onMirrorGo().
void interfMainPanel::onMirrorAxisHide | ( | ) |
Definition at line 899 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::refLineHide(), and refLineShown.
Referenced by interfMirrorPanel::onAxisShow().
void interfMainPanel::onMirrorAxisShow | ( | ) |
Definition at line 890 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), wxContourMainFrame::refLineShow(), and refLineShown.
Referenced by interfMirrorPanel::onAxisShow().
void interfMainPanel::onMirrorChangeWidth | ( | int | width | ) |
Definition at line 908 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::refLineChangeWidth().
Referenced by interfMirrorPanel::onChangeWidth().
void interfMainPanel::onMirrorPressed | ( | ) |
Definition at line 851 of file interfMainPanel.cxx.
References getInfoPanel(), getInstance(), wxContourMainFrame::getInstance(), mirrorPanel, panelMirror, wxContourMainFrame::referenceLine(), wxContourMainFrame::refLineShow(), refLineShown, and showPanel().
Referenced by interfToolsMenu::onMirrorPressed().
void interfMainPanel::onPaste | ( | ) |
Definition at line 450 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onPaste().
Referenced by interfEditMenu::onPaste().
void interfMainPanel::onPrintLabel | ( | ) |
Associates the current selected contour with a label
Definition at line 968 of file interfMainPanel.cxx.
References wxContourMainFrame::getContour(), wxContourMainFrame::getInstance(), and wxContourMainFrame::onPrintLabel().
Referenced by interfToolsMenu::onPrintLabel().
void interfMainPanel::onRedo | ( | ) |
Definition at line 460 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onRedo().
Referenced by interfEditMenu::onRedo().
void interfMainPanel::onRigidPressed | ( | ) |
Definition at line 592 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onRigidPressed().
Referenced by interfToolsMenu::onRigidPressed().
void interfMainPanel::onSave | ( | ) |
Definition at line 470 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSave().
Referenced by interfIOMenu::onSave().
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 833 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSaveResults().
Referenced by interfInformationPanel::onSaveResults().
void interfMainPanel::onSegmentationAllSlice | ( | int | minZ, |
int | maxZ, | ||
int | isovalue, | ||
int | sampling, | ||
int | method | ||
) |
Definition at line 532 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSegmentationAllSlice().
Referenced by interfSegmentationPanelVTK::onSegmentationAllSlice().
void interfMainPanel::onSegmentationOneSlice | ( | int | isovalue, |
int | sampling, | ||
int | method | ||
) |
Definition at line 517 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSegmentationOneSlice().
Referenced by interfSegmentationPanelVTK::onSegmentationOneSlice().
void interfMainPanel::onSegmentationOneSliceITK | ( | wxString | distance, |
wxString | sigma, | ||
wxString | alfa, | ||
wxString | beta, | ||
wxString | propagation, | ||
wxString | iterations, | ||
wxString | inflation | ||
) |
Definition at line 522 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSegmentationOneSliceITK().
Referenced by interfSegmentationPanelITK::onSegmentationOneSlice().
void interfMainPanel::onSegmentationPressed | ( | ) |
Definition at line 541 of file interfMainPanel.cxx.
References axisshown, getInfoPanel(), wxContourMainFrame::getInstance(), segmentationPanel, segmentPanel, wxContourMainFrame::showAxis(), and showPanel().
Referenced by interfSegmentationMenu::onSegmentationPressed().
void interfMainPanel::onSegmentationPressedITK | ( | ) |
Definition at line 566 of file interfMainPanel.cxx.
References axisshown, getInfoPanel(), getInstance(), wxContourMainFrame::getInstance(), segmentPanelITK, wxContourMainFrame::showAxis(), and showPanel().
Referenced by interfSegmentationMenu::onSegmentationPressedITK().
void interfMainPanel::onSnakePressed | ( | ) |
Definition at line 844 of file interfMainPanel.cxx.
References axisshown, wxContourMainFrame::getInstance(), wxContourMainFrame::onSnakePressed(), and wxContourMainFrame::showAxis().
Referenced by interfSegmentationMenu::onSnakePressed().
void interfMainPanel::onSpreadAdd | ( | ) |
Definition at line 669 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSpreadAdd().
Referenced by interfSpreadPanel::onSpreadAdd().
void interfMainPanel::onSpreadAddAll | ( | ) |
Definition at line 674 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSpreadAddAll().
Referenced by interfSpreadPanel::onSpreadAddAll().
void interfMainPanel::onSpreadGo | ( | int | type | ) |
Definition at line 685 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onSpreadGo().
Referenced by interfSpreadPanel::onSpreadGo().
void interfMainPanel::onSpreadPressed | ( | ) |
Definition at line 639 of file interfMainPanel.cxx.
References getInfoPanel(), getInstance(), panelSpread, showPanel(), and spreadPanel.
Referenced by interfToolsMenu::onSpreadPressed().
void interfMainPanel::onTest | ( | ) |
Definition at line 479 of file interfMainPanel.cxx.
References getInfoPanel(), getInstance(), mirrorPanel, panelTest, showPanel(), and testPanel.
Referenced by interfIOMenu::onTest().
void interfMainPanel::onThresholdPressed | ( | ) |
Definition at line 935 of file interfMainPanel.cxx.
References wxContourMainFrame::changeInstant(), getInfoPanel(), getInstance(), wxContourMainFrame::getInstance(), wxContourMainFrame::getThresholdImageViewPanel(), showPanel(), and thresholdPanel.
Referenced by interfImageToolsMenu::onThreshold().
void interfMainPanel::onUndo | ( | ) |
Definition at line 455 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onUndo().
Referenced by interfEditMenu::onUndo().
void interfMainPanel::onWidthOfContour | ( | double | width | ) |
Definition at line 597 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::onWidthOfContour().
Referenced by interfConfigurationPanel::onWidthOfContour().
void interfMainPanel::RefreshInterface | ( | ) |
Definition at line 501 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::RefreshInterface().
Referenced by interfInformationPanel::onRangeSliceInformation().
void interfMainPanel::removeContourCheckBox | ( | std::string | id | ) |
Removes a checkbox from the list of checkboxes in the flexsizer (checkboxsizer) id of contour
Definition at line 240 of file interfMainPanel.cxx.
References interfToolsSpreadPanel::removeContourCheckBox(), and toolspread.
void interfMainPanel::resetAppend | ( | ) |
Definition at line 664 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::resetAppend().
Referenced by interfSpreadPanel::onSpreadReset().
|
static |
Ressts the instance of the class
Definition at line 199 of file interfMainPanel.cxx.
References _newframe, and interfmainpanel.
Referenced by wxContourMainFrame::~wxContourMainFrame().
void interfMainPanel::setCellValueInfoPanel | ( | int | z, |
int | tmpIntA, | ||
wxString | tempString | ||
) |
Definition at line 817 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::onInformationContourLabels().
void interfMainPanel::setColLableInfoPanel | ( | int | tmpIntB, |
wxString | tmpTitleString | ||
) |
Definition at line 822 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::onInformationContourLabels().
void interfMainPanel::SetContourGroup | ( | int | contourGroup | ) |
Definition at line 962 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::SetContourGroup().
Referenced by interfInformationPanel::onContourGroup().
void interfMainPanel::setLabelSegmentationPanelVTK | ( | wxString | tmpString | ) |
Definition at line 537 of file interfMainPanel.cxx.
References segmentationPanel.
Referenced by wxContourMainFrame::onSegmentationAllSlice().
|
private |
Puts the panel button and the text int the sizer
Definition at line 307 of file interfMainPanel.cxx.
Referenced by interfMainPanel().
void interfMainPanel::setRowLabelInfoPanel | ( | int | z, |
wxString | tempString | ||
) |
Definition at line 802 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::onInformationContourLabels().
void interfMainPanel::SetScalarRange | ( | int | grayRangeMin, |
int | grayRangeMax | ||
) |
Definition at line 828 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::SetScalarRange().
Referenced by interfInformationPanel::onRangeSliceInformation().
void interfMainPanel::setStringInfoPanel | ( | wxString | tmpString | ) |
Definition at line 795 of file interfMainPanel.cxx.
References informationPanel.
Referenced by wxContourMainFrame::getMaskValue(), wxContourMainFrame::onInformationContourLabels(), wxContourMainFrame::SaveImageResult(), and wxContourMainFrame::SaveValuesXYZ().
void interfMainPanel::setStringSpread | ( | std::string | stringtemp | ) |
Definition at line 690 of file interfMainPanel.cxx.
References panelSpread, and interfSpreadPanel::setStringSpread().
Referenced by wxContourMainFrame::onSpreadGo().
|
virtual |
Definition at line 189 of file interfMainPanel.cxx.
References _newframe.
Referenced by wxContourMainFrame::ShowToolsPanel().
void interfMainPanel::showPanel | ( | wxWindow * | panel | ) |
Shows the panel in the
fix warning: virtual bool wxSizer::Remove(wxWindow*) is deprecated
Definition at line 324 of file interfMainPanel.cxx.
References currentWindow, wxContourMainFrame::getInstance(), infoPanel, wxContourMainFrame::showAxis(), and splitterwindow.
Referenced by onColorLayerImagePressed(), onConfigurationPressed(), interfNewContourMenu::onCreateContourBullseye(), onInformationPressed(), onMirrorPressed(), onSegmentationPressed(), interfSegmentationPanelVTK::onSegmentationPressedITK(), onSegmentationPressedITK(), onSpreadPressed(), onTest(), and onThresholdPressed().
void interfMainPanel::ShowResultImages | ( | int | typeContourGroup, |
int | selection, | ||
int | minZ, | ||
int | maxZ | ||
) |
Definition at line 956 of file interfMainPanel.cxx.
References wxContourMainFrame::getInstance(), and wxContourMainFrame::ShowResultImages().
Referenced by interfInformationPanel::onShowResultImages().
|
staticprivate |
Definition at line 233 of file interfMainPanel.h.
Referenced by getInstance(), resetInstance(), and Show().
|
private |
Value of a pixel in milimeters
Definition at line 263 of file interfMainPanel.h.
Referenced by GetPixelValue(), and onePixelSize().
|
private |
Definition at line 300 of file interfMainPanel.h.
Referenced by onSegmentationPressed(), onSegmentationPressedITK(), and onSnakePressed().
|
private |
Definition at line 298 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onColorLayerImagePressed().
|
private |
Definition at line 285 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onConfigurationPressed().
|
private |
Definition at line 242 of file interfMainPanel.h.
Referenced by hidePanel(), interfMainPanel(), and showPanel().
|
private |
Definition at line 245 of file interfMainPanel.h.
Referenced by getInfoPanel(), hidePanel(), interfMainPanel(), and showPanel().
|
private |
Panel with the calibration options
Definition at line 253 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onInformationPressed().
|
private |
Definition at line 246 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onInformationPressed().
|
private |
Definition at line 289 of file interfMainPanel.h.
Referenced by appendColsInformationPanel(), getCellValue(), getNumberColsInformationPanel(), interfMainPanel(), onInformationPressed(), setCellValueInfoPanel(), setColLableInfoPanel(), setRowLabelInfoPanel(), and setStringInfoPanel().
|
private |
Definition at line 288 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onInformationPressed().
|
staticprivate |
Definition at line 230 of file interfMainPanel.h.
Referenced by getInstance(), and resetInstance().
|
private |
Definition at line 234 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 235 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 236 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 237 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 238 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 239 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 240 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 294 of file interfMainPanel.h.
Referenced by interfMainPanel(), onMirrorPressed(), and onTest().
|
private |
Definition at line 274 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 275 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 276 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 277 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 278 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 279 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 280 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Panel who contains the calibration panel and the information panel mask
Definition at line 258 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onInformationPressed().
|
private |
Definition at line 295 of file interfMainPanel.h.
Referenced by onMirrorPressed().
|
private |
Definition at line 287 of file interfMainPanel.h.
Referenced by appendStringSpread(), onSpreadPressed(), and setStringSpread().
|
private |
Definition at line 292 of file interfMainPanel.h.
Referenced by onTest().
|
private |
Definition at line 301 of file interfMainPanel.h.
Referenced by onMirrorAxisHide(), onMirrorAxisShow(), and onMirrorPressed().
|
private |
Definition at line 283 of file interfMainPanel.h.
Referenced by onSegmentationPressed(), and setLabelSegmentationPanelVTK().
|
private |
Definition at line 282 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onSegmentationPressed().
|
private |
Definition at line 284 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onSegmentationPressedITK().
|
private |
Definition at line 243 of file interfMainPanel.h.
Referenced by hidePanel(), interfMainPanel(), onActionButtonPressed1(), and showPanel().
|
private |
Definition at line 286 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onSpreadPressed().
|
private |
Definition at line 266 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 267 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 268 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 269 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 270 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 271 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 272 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onActionButtonPressed1().
|
private |
Definition at line 291 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onTest().
|
private |
Definition at line 297 of file interfMainPanel.h.
Referenced by interfMainPanel(), and onThresholdPressed().
|
private |
Definition at line 305 of file interfMainPanel.h.
Referenced by addContourCheckBox(), initializeToolsPanel(), and removeContourCheckBox().