Widget defining the grid in one direction. More...
#include <StdMeshersGUI_CartesianParamCreator.h>
Signals | |
void | gridModeChanged (int) |
Public Member Functions | |
GridAxisTab (QWidget *parent, const int axisIndex) | |
Constructor. More... | |
~GridAxisTab () | |
void | setCoordinates (SMESH::double_array_var coords) |
Inserts coordinates into myCoordList. More... | |
void | setSpacing (SMESH::string_array_var funs, SMESH::double_array_var points) |
Sets spacing got from hypothesis. More... | |
bool | checkParams (QString &msg, SMESH::SMESH_Hypothesis_var &hyp) const |
Verifies parameters. More... | |
bool | isGridBySpacing () const |
Checks grid definintion mode. More... | |
SMESH::double_array * | getCoordinates () |
Returns coordinates to set to a hypothesis. More... | |
void | getSpacing (SMESH::string_array_out funs, SMESH::double_array_out points) const |
Returms spacing to set to a hypothesis. More... | |
Private Slots | |
void | onInsert () |
SLOT onInsert. More... | |
void | onDelete () |
SLOT onDelete. More... | |
void | onMode (int) |
SLOT onMode. More... | |
void | onStepChange () |
SLOT onStepChange. More... | |
void | updateButtons () |
Enables/disables buttons. More... | |
Private Attributes | |
int | myAxisIndex |
QButtonGroup * | myModeGroup |
QTreeWidget * | mySpacingTreeWdg |
QListWidget * | myCoordList |
QPushButton * | myInsertBtn |
QPushButton * | myDeleteBtn |
SMESHGUI_SpinBox * | myStepSpin |
QLabel * | myStepLabel |
double | myStep |
Widget defining the grid in one direction.
Constructor.
theParent | - Parent widget for this tab |
Makes tab's look and feel
References StdMeshersGUI::COORD_BUT, gridModeChanged(), MARGIN, myCoordList, myDeleteBtn, myInsertBtn, myModeGroup, mySpacingTreeWdg, myStep, myStepLabel, myStepSpin, onDelete(), onInsert(), onMode(), onStepChange(), SMESHGUI_SpinBox::RangeStepAndValidator(), SMESHGUI_SpinBox::SetStep(), SMESHGUI_SpinBox::SetValue(), SPACING, StdMeshersGUI::SPACING_BUT, and updateButtons().
StdMeshersGUI::GridAxisTab::~GridAxisTab | ( | ) |
bool StdMeshersGUI::GridAxisTab::checkParams | ( | QString & | msg, |
SMESH::SMESH_Hypothesis_var & | hyp | ||
) | const |
Verifies parameters.
References getSpacing(), isGridBySpacing(), myAxisIndex, myCoordList, and mySpacingTreeWdg.
SMESH::double_array * StdMeshersGUI::GridAxisTab::getCoordinates | ( | ) |
Returns coordinates to set to a hypothesis.
References StdMeshersGUI::coordFromItem(), and myCoordList.
Referenced by StdMeshersGUI_CartesianParamCreator::storeParams().
void StdMeshersGUI::GridAxisTab::getSpacing | ( | SMESH::string_array_out | funs, |
SMESH::double_array_out | points | ||
) | const |
Returms spacing to set to a hypothesis.
References StdMeshersGUI::getFromItem(), and mySpacingTreeWdg.
Referenced by checkParams(), and StdMeshersGUI_CartesianParamCreator::storeParams().
|
signal |
Referenced by GridAxisTab().
bool StdMeshersGUI::GridAxisTab::isGridBySpacing | ( | ) | const |
Checks grid definintion mode.
References myModeGroup, and StdMeshersGUI::SPACING_BUT.
Referenced by checkParams(), onDelete(), StdMeshersGUI_CartesianParamCreator::onGridModeChanged(), onInsert(), and updateButtons().
|
privateslot |
SLOT onDelete.
References StdMeshersGUI::getFromItem(), isGridBySpacing(), myCoordList, mySpacingTreeWdg, StdMeshersGUI::setToItem(), and updateButtons().
Referenced by GridAxisTab().
|
privateslot |
SLOT onInsert.
References StdMeshersGUI::coordFromItem(), StdMeshersGUI::coordToItem(), StdMeshersGUI::getFromItem(), isGridBySpacing(), myCoordList, mySpacingTreeWdg, myStep, StdMeshersGUI::setToItem(), and updateButtons().
Referenced by GridAxisTab().
|
privateslot |
SLOT onMode.
References StdMeshersGUI::coordFromItem(), StdMeshersGUI::coordToItem(), myCoordList, mySpacingTreeWdg, myStepLabel, myStepSpin, StdMeshersGUI::setToItem(), and updateButtons().
Referenced by GridAxisTab(), setCoordinates(), and setSpacing().
|
privateslot |
SLOT onStepChange.
References SMESHGUI_SpinBox::GetValue(), myStep, myStepSpin, and SMESHGUI_SpinBox::SetValue().
Referenced by GridAxisTab().
void StdMeshersGUI::GridAxisTab::setCoordinates | ( | SMESH::double_array_var | coords | ) |
Inserts coordinates into myCoordList.
References StdMeshersGUI::COORD_BUT, StdMeshersGUI::coordToItem(), myCoordList, myModeGroup, and onMode().
Referenced by StdMeshersGUI_CartesianParamCreator::retrieveParams().
void StdMeshersGUI::GridAxisTab::setSpacing | ( | SMESH::string_array_var | funs, |
SMESH::double_array_var | points | ||
) |
Sets spacing got from hypothesis.
References myModeGroup, mySpacingTreeWdg, onMode(), StdMeshersGUI::setToItem(), and StdMeshersGUI::SPACING_BUT.
Referenced by StdMeshersGUI_CartesianParamCreator::retrieveParams().
|
privateslot |
Enables/disables buttons.
References isGridBySpacing(), myCoordList, myDeleteBtn, myInsertBtn, and mySpacingTreeWdg.
Referenced by GridAxisTab(), onDelete(), onInsert(), and onMode().
|
private |
Referenced by checkParams().
|
private |
Referenced by checkParams(), getCoordinates(), GridAxisTab(), onDelete(), onInsert(), onMode(), setCoordinates(), and updateButtons().
|
private |
Referenced by GridAxisTab(), and updateButtons().
|
private |
Referenced by GridAxisTab(), and updateButtons().
|
private |
Referenced by GridAxisTab(), isGridBySpacing(), setCoordinates(), and setSpacing().
|
private |
Referenced by checkParams(), getSpacing(), GridAxisTab(), onDelete(), onInsert(), onMode(), setSpacing(), and updateButtons().
|
private |
Referenced by GridAxisTab(), onInsert(), and onStepChange().
|
private |
Referenced by GridAxisTab(), and onMode().
|
private |
Referenced by GridAxisTab(), onMode(), and onStepChange().