Version: 9.12.0
StdMeshersGUI::GridAxisTab Class Reference

Widget defining the grid in one direction. More...

#include <StdMeshersGUI_CartesianParamCreator.h>

Inheritance diagram for StdMeshersGUI::GridAxisTab:

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 definition mode. More...
 
SMESH::double_arraygetCoordinates ()
 Returns coordinates to set to a hypothesis. More...
 
void getSpacing (SMESH::string_array_out funs, SMESH::double_array_out points) const
 Returns 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
 
QTreeWidgetmySpacingTreeWdg
 
QListWidget * myCoordList
 
QPushButton * myInsertBtn
 
QPushButton * myDeleteBtn
 
SMESHGUI_SpinBoxmyStepSpin
 
QLabelmyStepLabel
 
double myStep
 

Detailed Description

Widget defining the grid in one direction.

Constructor & Destructor Documentation

◆ GridAxisTab()

StdMeshersGUI::GridAxisTab::GridAxisTab ( QWidget theParent,
const int  axisIndex 
)

◆ ~GridAxisTab()

StdMeshersGUI::GridAxisTab::~GridAxisTab ( )

Member Function Documentation

◆ checkParams()

bool StdMeshersGUI::GridAxisTab::checkParams ( QString &  msg,
SMESH::SMESH_Hypothesis_var &  hyp 
) const

Verifies parameters.

References getSpacing(), isGridBySpacing(), myAxisIndex, myCoordList, and mySpacingTreeWdg.

◆ getCoordinates()

SMESH::double_array * StdMeshersGUI::GridAxisTab::getCoordinates ( )

Returns coordinates to set to a hypothesis.

References StdMeshersGUI::coordFromItem(), and myCoordList.

Referenced by StdMeshersGUI_CartesianParamCreator::storeParams().

◆ getSpacing()

void StdMeshersGUI::GridAxisTab::getSpacing ( SMESH::string_array_out  funs,
SMESH::double_array_out  points 
) const

Returns spacing to set to a hypothesis.

References StdMeshersGUI::getFromItem(), and mySpacingTreeWdg.

Referenced by checkParams(), and StdMeshersGUI_CartesianParamCreator::storeParams().

◆ gridModeChanged

void StdMeshersGUI::GridAxisTab::gridModeChanged ( int  )
signal

Referenced by GridAxisTab().

◆ isGridBySpacing()

bool StdMeshersGUI::GridAxisTab::isGridBySpacing ( ) const

◆ onDelete

void StdMeshersGUI::GridAxisTab::onDelete ( )
privateslot

◆ onInsert

◆ onMode

void StdMeshersGUI::GridAxisTab::onMode ( int  isSpacing)
privateslot

◆ onStepChange

void StdMeshersGUI::GridAxisTab::onStepChange ( )
privateslot

SLOT onStepChange.

References SMESHGUI_SpinBox::GetValue(), myStep, myStepSpin, and SMESHGUI_SpinBox::SetValue().

Referenced by GridAxisTab().

◆ setCoordinates()

void StdMeshersGUI::GridAxisTab::setCoordinates ( SMESH::double_array_var  coords)

◆ setSpacing()

void StdMeshersGUI::GridAxisTab::setSpacing ( SMESH::string_array_var  funs,
SMESH::double_array_var  points 
)

◆ updateButtons

void StdMeshersGUI::GridAxisTab::updateButtons ( )
privateslot

Enables/disables buttons.

References isGridBySpacing(), myCoordList, myDeleteBtn, myInsertBtn, and mySpacingTreeWdg.

Referenced by GridAxisTab(), onDelete(), onInsert(), and onMode().

Field Documentation

◆ myAxisIndex

int StdMeshersGUI::GridAxisTab::myAxisIndex
private

Referenced by checkParams().

◆ myCoordList

QListWidget* StdMeshersGUI::GridAxisTab::myCoordList
private

◆ myDeleteBtn

QPushButton* StdMeshersGUI::GridAxisTab::myDeleteBtn
private

Referenced by GridAxisTab(), and updateButtons().

◆ myInsertBtn

QPushButton* StdMeshersGUI::GridAxisTab::myInsertBtn
private

Referenced by GridAxisTab(), and updateButtons().

◆ myModeGroup

QButtonGroup* StdMeshersGUI::GridAxisTab::myModeGroup
private

◆ mySpacingTreeWdg

QTreeWidget* StdMeshersGUI::GridAxisTab::mySpacingTreeWdg
private

◆ myStep

double StdMeshersGUI::GridAxisTab::myStep
private

Referenced by GridAxisTab(), onInsert(), and onStepChange().

◆ myStepLabel

QLabel* StdMeshersGUI::GridAxisTab::myStepLabel
private

Referenced by GridAxisTab(), and onMode().

◆ myStepSpin

SMESHGUI_SpinBox* StdMeshersGUI::GridAxisTab::myStepSpin
private

Referenced by GridAxisTab(), onMode(), and onStepChange().