Version: 8.3.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::long_array_var GetListOfSegments ()
 
void SetListOfSegments (SMESH::long_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, int)
 
int 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)
 

Private Attributes

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

Constructor & Destructor Documentation

StdMeshersGUI_FixedPointsParamWdg::StdMeshersGUI_FixedPointsParamWdg ( QWidget parent = 0)
StdMeshersGUI_FixedPointsParamWdg::~StdMeshersGUI_FixedPointsParamWdg ( )

Destructor.

Member Function Documentation

void StdMeshersGUI_FixedPointsParamWdg::addPoint ( double  v)
private
void StdMeshersGUI_FixedPointsParamWdg::clear ( )
private
bool StdMeshersGUI_FixedPointsParamWdg::eventFilter ( QObject o,
QEvent *  e 
)

Event filter.

References myListWidget, and removePoints().

SMESH::double_array_var StdMeshersGUI_FixedPointsParamWdg::GetListOfPoints ( )
SMESH::long_array_var StdMeshersGUI_FixedPointsParamWdg::GetListOfSegments ( )
QString StdMeshersGUI_FixedPointsParamWdg::GetValue ( ) const
int StdMeshersGUI_FixedPointsParamWdg::nbSegments ( int  idx) const
private

References myTreeWidget.

Referenced by GetListOfSegments(), and onCheckBoxChanged().

QListWidgetItem * StdMeshersGUI_FixedPointsParamWdg::newListItem ( double  v1)
staticprivate

Referenced by addPoint().

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

References treeItemText().

Referenced by addPoint(), and clear().

void StdMeshersGUI_FixedPointsParamWdg::onAdd ( )
privateslot

References addPoint(), and mySpinBox.

Referenced by StdMeshersGUI_FixedPointsParamWdg().

void StdMeshersGUI_FixedPointsParamWdg::onCheckBoxChanged ( )
privateslot
void StdMeshersGUI_FixedPointsParamWdg::onRemove ( )
privateslot
double StdMeshersGUI_FixedPointsParamWdg::point ( int  idx) const
private

References myListWidget.

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

void StdMeshersGUI_FixedPointsParamWdg::removePoints ( )
private
void StdMeshersGUI_FixedPointsParamWdg::SetListOfPoints ( SMESH::double_array_var  thePoints)
void StdMeshersGUI_FixedPointsParamWdg::SetListOfSegments ( SMESH::long_array_var  theSegments)
void StdMeshersGUI_FixedPointsParamWdg::setNbSegments ( int  idx,
int  val 
)
private
QString StdMeshersGUI_FixedPointsParamWdg::treeItemText ( double  v1,
double  v2 
)
staticprivate

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

void StdMeshersGUI_FixedPointsParamWdg::updateState ( )
privateslot

Field Documentation

QPushButton* StdMeshersGUI_FixedPointsParamWdg::myAddButton
private
QListWidget* StdMeshersGUI_FixedPointsParamWdg::myListWidget
private
QString StdMeshersGUI_FixedPointsParamWdg::myParamValue
private
QPushButton* StdMeshersGUI_FixedPointsParamWdg::myRemoveButton
private
QCheckBox* StdMeshersGUI_FixedPointsParamWdg::mySameValues
private
SMESHGUI_SpinBox* StdMeshersGUI_FixedPointsParamWdg::mySpinBox
private