Version: 9.16.0
StdMeshersGUI_FixedPointsParamWdg Class Reference

#include <StdMeshersGUI_FixedPointsParamWdg.h>

Inheritance diagram for StdMeshersGUI_FixedPointsParamWdg:

Data Structures

class  LineDelegate
 

Public Member Functions

 StdMeshersGUI_FixedPointsParamWdg (QWidget *parent=0)
 Constructor. More...
 
 ~StdMeshersGUI_FixedPointsParamWdg ()
 Destructor. More...
 
bool eventFilter (QObject *, QEvent *)
 Event filter. More...
 
SMESH::double_array_var GetListOfPoints ()
 
void SetListOfPoints (SMESH::double_array_var)
 
SMESH::smIdType_array_var GetListOfSegments ()
 
void SetListOfSegments (SMESH::smIdType_array_var)
 
QString GetValue () const
 

Private Slots

void onAdd ()
 
void onRemove ()
 
void onCheckBoxChanged ()
 
void updateState ()
 

Private Member Functions

void clear ()
 Clear widget. More...
 
void addPoint (double)
 
void removePoints ()
 
double point (int) const
 
void setNbSegments (int, SMESH::smIdType)
 
smIdType nbSegments (int) const
 

Static Private Member Functions

static QTreeWidgetItem * newTreeItem (double v1, double v2)
 
static QListWidgetItem * newListItem (double v1)
 
static QString treeItemText (double v1, double v2)
 
static int getParametricPrecision ()
 
static bool equalDbl (double a, double b)
 
static bool ltDbl (double a, double b)
 
static bool gtDbl (double a, double b)
 

Private Attributes

QListWidget * myListWidget
 
QTreeWidgetmyTreeWidget
 
SMESHGUI_SpinBoxmySpinBox
 
QPushButton * myAddButton
 
QPushButton * myRemoveButton
 
QCheckBox * mySameValues
 
QString myParamValue
 

Constructor & Destructor Documentation

◆ StdMeshersGUI_FixedPointsParamWdg()

StdMeshersGUI_FixedPointsParamWdg::StdMeshersGUI_FixedPointsParamWdg ( QWidget parent = 0)

◆ ~StdMeshersGUI_FixedPointsParamWdg()

StdMeshersGUI_FixedPointsParamWdg::~StdMeshersGUI_FixedPointsParamWdg ( )

Destructor.

Member Function Documentation

◆ addPoint()

void StdMeshersGUI_FixedPointsParamWdg::addPoint ( double  v)
private

◆ clear()

void StdMeshersGUI_FixedPointsParamWdg::clear ( )
private

◆ equalDbl()

bool StdMeshersGUI_FixedPointsParamWdg::equalDbl ( double  a,
double  b 
)
staticprivate

References getParametricPrecision().

Referenced by addPoint(), gtDbl(), and ltDbl().

◆ eventFilter()

bool StdMeshersGUI_FixedPointsParamWdg::eventFilter ( QObject o,
QEvent *  e 
)

Event filter.

References myListWidget, and removePoints().

◆ GetListOfPoints()

SMESH::double_array_var StdMeshersGUI_FixedPointsParamWdg::GetListOfPoints ( )

◆ GetListOfSegments()

SMESH::smIdType_array_var StdMeshersGUI_FixedPointsParamWdg::GetListOfSegments ( )

◆ getParametricPrecision()

int StdMeshersGUI_FixedPointsParamWdg::getParametricPrecision ( )
staticprivate

Referenced by equalDbl(), newListItem(), and treeItemText().

◆ GetValue()

QString StdMeshersGUI_FixedPointsParamWdg::GetValue ( ) const

◆ gtDbl()

bool StdMeshersGUI_FixedPointsParamWdg::gtDbl ( double  a,
double  b 
)
staticprivate

References equalDbl().

Referenced by addPoint(), and updateState().

◆ ltDbl()

bool StdMeshersGUI_FixedPointsParamWdg::ltDbl ( double  a,
double  b 
)
staticprivate

References equalDbl().

Referenced by addPoint(), and updateState().

◆ nbSegments()

smIdType StdMeshersGUI_FixedPointsParamWdg::nbSegments ( int  idx) const
private

References myTreeWidget.

Referenced by GetListOfSegments(), and onCheckBoxChanged().

◆ newListItem()

QListWidgetItem * StdMeshersGUI_FixedPointsParamWdg::newListItem ( double  v1)
staticprivate

References getParametricPrecision().

Referenced by addPoint().

◆ newTreeItem()

QTreeWidgetItem * StdMeshersGUI_FixedPointsParamWdg::newTreeItem ( double  v1,
double  v2 
)
staticprivate

References treeItemText().

Referenced by addPoint(), and clear().

◆ onAdd

void StdMeshersGUI_FixedPointsParamWdg::onAdd ( )
privateslot

References addPoint(), and mySpinBox.

Referenced by StdMeshersGUI_FixedPointsParamWdg().

◆ onCheckBoxChanged

void StdMeshersGUI_FixedPointsParamWdg::onCheckBoxChanged ( )
privateslot

◆ onRemove

void StdMeshersGUI_FixedPointsParamWdg::onRemove ( )
privateslot

◆ point()

double StdMeshersGUI_FixedPointsParamWdg::point ( int  idx) const
private

References myListWidget.

Referenced by addPoint(), GetListOfPoints(), and removePoints().

◆ removePoints()

void StdMeshersGUI_FixedPointsParamWdg::removePoints ( )
private

◆ SetListOfPoints()

void StdMeshersGUI_FixedPointsParamWdg::SetListOfPoints ( SMESH::double_array_var  thePoints)

◆ SetListOfSegments()

void StdMeshersGUI_FixedPointsParamWdg::SetListOfSegments ( SMESH::smIdType_array_var  theSegments)

◆ setNbSegments()

void StdMeshersGUI_FixedPointsParamWdg::setNbSegments ( int  idx,
SMESH::smIdType  val 
)
private

◆ treeItemText()

QString StdMeshersGUI_FixedPointsParamWdg::treeItemText ( double  v1,
double  v2 
)
staticprivate

◆ updateState

void StdMeshersGUI_FixedPointsParamWdg::updateState ( )
privateslot

Field Documentation

◆ myAddButton

QPushButton* StdMeshersGUI_FixedPointsParamWdg::myAddButton
private

◆ myListWidget

QListWidget* StdMeshersGUI_FixedPointsParamWdg::myListWidget
private

◆ myParamValue

QString StdMeshersGUI_FixedPointsParamWdg::myParamValue
private

◆ myRemoveButton

QPushButton* StdMeshersGUI_FixedPointsParamWdg::myRemoveButton
private

◆ mySameValues

QCheckBox* StdMeshersGUI_FixedPointsParamWdg::mySameValues
private

◆ mySpinBox

SMESHGUI_SpinBox* StdMeshersGUI_FixedPointsParamWdg::mySpinBox
private

◆ myTreeWidget