#include <VisuGUI_SelectionPanel.h>

Public Types | |
| enum | { OKBtn = 0x0001, ApplyBtn = 0x0002, CloseBtn = 0x0004, HelpBtn = 0x0008, AllBtn = OKBtn | ApplyBtn | CloseBtn | HelpBtn } |
Signals | |
| void | selectionModeChanged (int) |
Public Member Functions | |
| VisuGUI_SelectionPanel (VisuGUI *theModule, QWidget *theParent=0) | |
| virtual | ~VisuGUI_SelectionPanel () |
| void | setSelectionMode (int theId) |
| virtual bool | isValid (QString &theMessage) |
| Verifies validity of input data. | |
| virtual void | clear () |
| Virtual methods should be redefined in derived classes and clears all GUI controls. | |
Protected Slots | |
| virtual void | onModuleActivated () |
| virtual void | onModuleDeactivated () |
| virtual void | onOK () |
| Virtual slot called when “OK” button pressed emits corresponding signal. | |
Protected Member Functions | |
| virtual void | keyPressEvent (QKeyEvent *theEvent) |
| virtual void | showEvent (QShowEvent *theEvent) |
| virtual void | closeEvent (QCloseEvent *theEvent) |
| QWidget * | mainFrame () |
| Gets frame inserted in scroll view. All controls of derived panels should use it as parent. | |
Protected Attributes | |
| QScrollArea * | myView |
| QWidget * | myMainFrame |
| QPushButton * | myOK |
| QPushButton * | myApply |
| QPushButton * | myClose |
| QPushButton * | myHelp |
| VisuGUI * | myModule |
Private Types | |
| enum | MeshType { StdMesh = 0, ElnoMesh } |
| enum | TableId { CellStdCell = 0, CellStdPoint, PointStd, CellElno, PointElno } |
| enum | ColumnId { Cell = 0, Point, X, Y, Z, I, J, K, Scalar, Vector } |
Private Slots | |
| virtual void | onApply () |
| Virtual slot called when “Apply” button pressed emits corresponding signal. | |
| virtual void | onClose () |
| Virtual slot called when “Close” button pressed emits corresponding signal. | |
| virtual void | onHelp () |
| Virtual slot called when “Help” button pressed emits corresponding signal. | |
| void | onPreferences () |
| void | onSelectionModeChanged (int theId) |
| void | onSelectionEvent () |
| void | onPointIdEdit () |
| void | onCellIdEdit () |
| void | onDoubleClicked (const QModelIndex &theIndex) |
| void | onIdChanged (int theFirstId, int theSecondId) |
Private Member Functions | |
| VisuGUI_SelectionPrefDlg * | preferencesDlg () |
| void | clearFields () |
| int | column (int theTableId, int theColumnId) |
| QVariant | data (int theTableId, int theRow, int theColumnId) |
| void | setData (int theTableId, int theRow, int theColumnId, const QVariant &theValue) |
| void | setRowSpan (int theTableId, int theRow, int theColumnId, int theRowSpan) |
Private Attributes | |
| QLabel * | myMeshName |
| QLabel * | myFieldName |
| QTabWidget * | myTabWidget |
| QWidget * | myPointsPane |
| QWidget * | myCellsPane |
| QLineEdit * | myIDValLbl |
| QStackedWidget * | myPointStackedWg |
| QLineEdit * | myCellIDValLbl |
| QStackedWidget * | myCellStackedWg |
| QMap< int, QTableWidget * > | myTables |
| QWidget * | myActorsPane |
| QLabel * | myXPosLbl |
| QLabel * | myYPosLbl |
| QLabel * | myZPosLbl |
| QLabel * | myDXLbl |
| QLabel * | myDYLbl |
| QLabel * | myDZLbl |
| VisuGUI_GaussPointsSelectionPane * | myGaussPointsPane |
| VisuGUI_FindPane * | myFindPane |
| VisuGUI_SelectionPrefDlg * | myPreferencesDlg |
| bool | myFl |
| QMap< int, QList< int > > | myColumnData |
enum VisuGUI_SelectionPanel::MeshType [private] |
enum VisuGUI_SelectionPanel::TableId [private] |
enum VisuGUI_SelectionPanel::ColumnId [private] |
References batchmode_visu_view3d.aTable, Cell, CellElno, CellStdCell, CellStdPoint, ElnoMesh, VISU.GetResourceMgr(), I, J, K, VisuGUI_Panel.mainFrame(), myActorsPane, myCellIDValLbl, myCellsPane, myCellStackedWg, myColumnData, myDXLbl, myDYLbl, myDZLbl, myFieldName, myFindPane, myFl, myGaussPointsPane, myIDValLbl, myMeshName, VisuGUI_Panel.myModule, myPointsPane, myPointStackedWg, myTables, myTabWidget, myXPosLbl, myYPosLbl, myZPosLbl, onCellIdEdit(), onDoubleClicked(), onIdChanged(), onPointIdEdit(), onPreferences(), onSelectionEvent(), onSelectionModeChanged(), Point, PointElno, PointStd, Scalar, selectionModeChanged(), StdMesh, Vector, X, Y, and Z.
| VisuGUI_SelectionPanel::~VisuGUI_SelectionPanel | ( | ) | [virtual] |
References myPreferencesDlg.
| void VisuGUI_SelectionPanel::setSelectionMode | ( | int | theId | ) |
References myTabWidget.
| void VisuGUI_SelectionPanel::onModuleActivated | ( | ) | [protected, virtual, slot] |
Reimplemented from VisuGUI_Panel.
References VisuGUI_Panel.myModule, and onSelectionEvent().
| void VisuGUI_SelectionPanel::onModuleDeactivated | ( | ) | [protected, virtual, slot] |
Reimplemented from VisuGUI_Panel.
References VisuGUI_Panel.myModule, and onSelectionEvent().
| void VisuGUI_SelectionPanel::keyPressEvent | ( | QKeyEvent * | theEvent | ) | [protected, virtual] |
References onHelp().
| void VisuGUI_SelectionPanel::showEvent | ( | QShowEvent * | theEvent | ) | [protected, virtual] |
| void VisuGUI_SelectionPanel::closeEvent | ( | QCloseEvent * | theEvent | ) | [protected, virtual] |
| void VisuGUI_SelectionPanel::onApply | ( | ) | [private, virtual, slot] |
Reimplemented from VisuGUI_Panel.
| void VisuGUI_SelectionPanel::onClose | ( | ) | [private, virtual, slot] |
Reimplemented from VisuGUI_Panel.
| void VisuGUI_SelectionPanel::onHelp | ( | ) | [private, virtual, slot] |
| void VisuGUI_SelectionPanel::onPreferences | ( | ) | [private, slot] |
References preferencesDlg().
| void VisuGUI_SelectionPanel::onSelectionModeChanged | ( | int | theId | ) | [private, slot] |
| void VisuGUI_SelectionPanel::onSelectionEvent | ( | ) | [private, slot] |
References _PTR(), visu_cache.aFieldName, batchmode_visu_view3d.aMeshName, batchmode_visu_view3d.aTable, Cell, TCellToPointData.CellData, TPointToCellData.CellDataMap, CellElno, CellStdCell, CellStdPoint, clearFields(), column(), ElnoMesh, VISU.FindActor(), VISU.Storable.FindValue(), GaussPointSelection, VISU.GetAppStudy(), VISU_Actor.GetElemCell(), VISU_Actor.GetElemObjId(), VISU_Actor.GetElemVTKID(), VISU.GetElnoPoints(), VISU_PipeLine.GetIDMapper(), VISU_Actor.GetInput(), VISU_Actor.GetNodeObjId(), VISU_Actor.GetNodeVTKID(), VISU.Prs3d_i.GetPipeLine(), getPointData(), VISU.GetPrs3dFromBase(), VISU.GetSelectedObjects(), VISU.Storable.GetStorableMap(), getValueData(), Handle(), TPointData.I, I, VISU.IsElnoData(), TPointData.J, J, TPointData.K, K, VISU.TObjectInfo.myBase, myCellIDValLbl, myCellStackedWg, myDXLbl, myDYLbl, myDZLbl, myFieldName, myFindPane, myFl, myGaussPointsPane, myIDValLbl, myMeshName, VisuGUI_Panel.myModule, VISU.TSelectionItem.myObjectInfo, myPointStackedWg, myTables, myTabWidget, myXPosLbl, myYPosLbl, myZPosLbl, Point, TPointToCellData.PointData, TCellToPointData.PointDataMap, PointElno, PointStd, TValueData.Scalar, Scalar, VisuGUI_FindPane.setActor(), setData(), VisuGUI_GaussPointsSelectionPane.setInteractor(), setRowSpan(), StdMesh, TPointData.ValueData, TValueData.Vector, Vector, TPointData.X, X, TPointData.Y, Y, TPointData.Z, and Z.
| void VisuGUI_SelectionPanel::onPointIdEdit | ( | ) | [private, slot] |
References clearFields(), VISU.GetNodeVTKID(), myFieldName, myFl, myIDValLbl, myMeshName, VisuGUI_Panel.myModule, onIdEdit(), and onSelectionEvent().
| void VisuGUI_SelectionPanel::onCellIdEdit | ( | ) | [private, slot] |
References clearFields(), VISU.GetElemVTKID(), myCellIDValLbl, myFieldName, myFl, myMeshName, VisuGUI_Panel.myModule, onIdEdit(), and onSelectionEvent().
| void VisuGUI_SelectionPanel::onDoubleClicked | ( | const QModelIndex & | theIndex | ) | [private, slot] |
References batchmode_visu_view3d.aTable, Cell, CellStdCell, data(), I, J, K, myCellIDValLbl, myColumnData, myIDValLbl, myTables, onCellIdEdit(), onPointIdEdit(), Point, PointElno, Scalar, setSelectionMode(), Vector, X, Y, and Z.
| void VisuGUI_SelectionPanel::onIdChanged | ( | int | theFirstId, |
| int | theSecondId | ||
| ) | [private, slot] |
| void VisuGUI_SelectionPanel.selectionModeChanged | ( | int | ) | [signal] |
| VisuGUI_SelectionPrefDlg * VisuGUI_SelectionPanel::preferencesDlg | ( | ) | [private] |
References myPreferencesDlg, and VisuGUI_SelectionPrefDlg.update().
| void VisuGUI_SelectionPanel::clearFields | ( | ) | [private] |
References batchmode_visu_view3d.aTable, myCellIDValLbl, myDXLbl, myDYLbl, myDZLbl, myIDValLbl, myTables, myTabWidget, myXPosLbl, myYPosLbl, and myZPosLbl.
| int VisuGUI_SelectionPanel::column | ( | int | theTableId, |
| int | theColumnId | ||
| ) | [private] |
References myColumnData.
| QVariant VisuGUI_SelectionPanel::data | ( | int | theTableId, |
| int | theRow, | ||
| int | theColumnId | ||
| ) | [private] |
References batchmode_visu_view3d.aTable, column(), and myTables.
| void VisuGUI_SelectionPanel::setData | ( | int | theTableId, |
| int | theRow, | ||
| int | theColumnId, | ||
| const QVariant & | theValue | ||
| ) | [private] |
References batchmode_visu_view3d.aTable, column(), and myTables.
| void VisuGUI_SelectionPanel::setRowSpan | ( | int | theTableId, |
| int | theRow, | ||
| int | theColumnId, | ||
| int | theRowSpan | ||
| ) | [private] |
References batchmode_visu_view3d.aTable, column(), and myTables.
| bool VisuGUI_Panel::isValid | ( | QString & | theMessage | ) | [virtual, inherited] |
This virtual method should be redefined in derived classes. Usually operator corresponding to the sub-panel calls this method to check validity of input data when Apply/OK button is pressed.
| theErrMsg | Error message. |
If data is invalid when panel can return message using this parameter given clear explanation what is wrong
| void VisuGUI_Panel::clear | ( | ) | [virtual, inherited] |
| void VisuGUI_Panel::onOK | ( | ) | [protected, virtual, slot, inherited] |
This slot moves focus in OK button before emitting signal. Mainly it provides application with correct moving data from currently edited controls to internal structure. For example QTable moves data from cell editor to table item when focus is out.
References VisuGUI_Panel.myOK.
| QWidget * VisuGUI_Panel::mainFrame | ( | ) | [protected, inherited] |
References VisuGUI_Panel.myMainFrame.
QLabel* VisuGUI_SelectionPanel.myMeshName [private] |
QLabel* VisuGUI_SelectionPanel.myFieldName [private] |
QTabWidget* VisuGUI_SelectionPanel.myTabWidget [private] |
QWidget* VisuGUI_SelectionPanel.myPointsPane [private] |
QWidget* VisuGUI_SelectionPanel.myCellsPane [private] |
QLineEdit* VisuGUI_SelectionPanel.myIDValLbl [private] |
QStackedWidget* VisuGUI_SelectionPanel.myPointStackedWg [private] |
QLineEdit* VisuGUI_SelectionPanel.myCellIDValLbl [private] |
QStackedWidget* VisuGUI_SelectionPanel.myCellStackedWg [private] |
QMap<int, QTableWidget*> VisuGUI_SelectionPanel.myTables [private] |
QWidget* VisuGUI_SelectionPanel.myActorsPane [private] |
QLabel* VisuGUI_SelectionPanel.myXPosLbl [private] |
QLabel* VisuGUI_SelectionPanel.myYPosLbl [private] |
QLabel* VisuGUI_SelectionPanel.myZPosLbl [private] |
QLabel* VisuGUI_SelectionPanel.myDXLbl [private] |
QLabel* VisuGUI_SelectionPanel.myDYLbl [private] |
QLabel* VisuGUI_SelectionPanel.myDZLbl [private] |
bool VisuGUI_SelectionPanel.myFl [private] |
QMap< int, QList<int> > VisuGUI_SelectionPanel.myColumnData [private] |
QScrollArea* VisuGUI_Panel.myView [protected, inherited] |
QWidget* VisuGUI_Panel.myMainFrame [protected, inherited] |
QPushButton* VisuGUI_Panel.myOK [protected, inherited] |
QPushButton* VisuGUI_Panel.myApply [protected, inherited] |
QPushButton* VisuGUI_Panel.myClose [protected, inherited] |
QPushButton* VisuGUI_Panel.myHelp [protected, inherited] |
VisuGUI* VisuGUI_Panel.myModule [protected, inherited] |