Version: 8.3.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 definintion 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
 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
 
QTreeWidgetmySpacingTreeWdg
 
QListWidget * myCoordList
 
QPushButton * myInsertBtn
 
QPushButton * myDeleteBtn
 
SMESHGUI_SpinBoxmyStepSpin
 
QLabel * myStepLabel
 
double myStep
 

Detailed Description

Widget defining the grid in one direction.

Constructor & Destructor Documentation

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

Member Function Documentation

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().

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

Referenced by GridAxisTab().

bool StdMeshersGUI::GridAxisTab::isGridBySpacing ( ) const
void StdMeshersGUI::GridAxisTab::onDelete ( )
privateslot
void StdMeshersGUI::GridAxisTab::onMode ( int  isSpacing)
privateslot
void StdMeshersGUI::GridAxisTab::onStepChange ( )
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)
void StdMeshersGUI::GridAxisTab::setSpacing ( SMESH::string_array_var  funs,
SMESH::double_array_var  points 
)
void StdMeshersGUI::GridAxisTab::updateButtons ( )
privateslot

Enables/disables buttons.

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

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

Field Documentation

int StdMeshersGUI::GridAxisTab::myAxisIndex
private

Referenced by checkParams().

QListWidget* StdMeshersGUI::GridAxisTab::myCoordList
private
QPushButton* StdMeshersGUI::GridAxisTab::myDeleteBtn
private

Referenced by GridAxisTab(), and updateButtons().

QPushButton* StdMeshersGUI::GridAxisTab::myInsertBtn
private

Referenced by GridAxisTab(), and updateButtons().

QButtonGroup* StdMeshersGUI::GridAxisTab::myModeGroup
private
QTreeWidget* StdMeshersGUI::GridAxisTab::mySpacingTreeWdg
private
double StdMeshersGUI::GridAxisTab::myStep
private

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

QLabel* StdMeshersGUI::GridAxisTab::myStepLabel
private

Referenced by GridAxisTab(), and onMode().

SMESHGUI_SpinBox* StdMeshersGUI::GridAxisTab::myStepSpin
private

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