#include <StdMeshersGUI_SubShapeSelectorWdg.h>
◆ StdMeshersGUI_SubShapeSelectorWdg()
StdMeshersGUI_SubShapeSelectorWdg::StdMeshersGUI_SubShapeSelectorWdg |
( |
QWidget * |
parent = 0 , |
|
|
TopAbs_ShapeEnum |
subShType = TopAbs_EDGE , |
|
|
const bool |
toShowList = true , |
|
|
const bool |
toShowSelectBtn = false , |
|
|
const int |
minListWidth = 300 |
|
) |
| |
◆ ~StdMeshersGUI_SubShapeSelectorWdg()
StdMeshersGUI_SubShapeSelectorWdg::~StdMeshersGUI_SubShapeSelectorWdg |
( |
| ) |
|
Destructor.
References SMESH::GetViewWindow(), myEntry, myFilter, myGeomFilters, myMainShape, myParamValue, myPreviewActor, myRenderer, mySelectionMgr, mySMESHGUI, and SMESH_PreviewActorsCollection::RemoveFromRender().
◆ ActivateSelection
void StdMeshersGUI_SubShapeSelectorWdg::ActivateSelection |
( |
bool |
toActivate | ) |
|
|
slot |
◆ AvoidSimultaneousSelection()
◆ ClearSelected()
void StdMeshersGUI_SubShapeSelectorWdg::ClearSelected |
( |
| ) |
|
◆ deactivateSelection
void StdMeshersGUI_SubShapeSelectorWdg::deactivateSelection |
( |
| ) |
|
|
slot |
◆ GetActorCollection()
◆ GetGeomObjectByEntry()
GEOM::GEOM_Object_var StdMeshersGUI_SubShapeSelectorWdg::GetGeomObjectByEntry |
( |
const QString & |
theEntry | ) |
|
|
static |
◆ GetGeomShape()
TopoDS_Shape StdMeshersGUI_SubShapeSelectorWdg::GetGeomShape |
( |
| ) |
|
◆ GetListOfIDs()
SMESH::long_array_var StdMeshersGUI_SubShapeSelectorWdg::GetListOfIDs |
( |
| ) |
|
◆ GetListSize()
int StdMeshersGUI_SubShapeSelectorWdg::GetListSize |
( |
| ) |
|
◆ GetMainShape()
TopoDS_Shape StdMeshersGUI_SubShapeSelectorWdg::GetMainShape |
( |
| ) |
|
◆ GetMainShapeEntry()
const char * StdMeshersGUI_SubShapeSelectorWdg::GetMainShapeEntry |
( |
| ) |
|
◆ GetRenderer()
vtkRenderer* StdMeshersGUI_SubShapeSelectorWdg::GetRenderer |
( |
| ) |
|
◆ GetSelectedIDs()
const QList<int>& StdMeshersGUI_SubShapeSelectorWdg::GetSelectedIDs |
( |
| ) |
const |
◆ GetTopoDSByEntry()
TopoDS_Shape StdMeshersGUI_SubShapeSelectorWdg::GetTopoDSByEntry |
( |
const QString & |
theEntry | ) |
|
|
static |
◆ GetValue()
QString StdMeshersGUI_SubShapeSelectorWdg::GetValue |
( |
| ) |
const |
◆ init()
void StdMeshersGUI_SubShapeSelectorWdg::init |
( |
| ) |
|
|
private |
Create a layout, initialize fields.
References ActivateSelection(), SMESH::GetSelectionMgr(), SMESH::GetSelector(), SMESHGUI::GetSMESHGUI(), SMESH::GetViewWindow(), myActivateButton, myAddButton, myFilter, myListOfIDs, myListWidget, myNextButton, myParamValue, myPrevButton, myRemoveButton, mySelectedIDs, mySelectionMgr, mySelector, mySMESHGUI, onAdd(), onListSelectionChanged(), onNext(), onPrevious(), onRemove(), selectionIntoArgument(), and updateState().
◆ onAdd
void StdMeshersGUI_SubShapeSelectorWdg::onAdd |
( |
| ) |
|
|
privateslot |
◆ onListSelectionChanged
void StdMeshersGUI_SubShapeSelectorWdg::onListSelectionChanged |
( |
| ) |
|
|
privateslot |
◆ onNext
void StdMeshersGUI_SubShapeSelectorWdg::onNext |
( |
| ) |
|
|
privateslot |
◆ onPrevious
void StdMeshersGUI_SubShapeSelectorWdg::onPrevious |
( |
| ) |
|
|
privateslot |
◆ onRemove
void StdMeshersGUI_SubShapeSelectorWdg::onRemove |
( |
| ) |
|
|
privateslot |
◆ selectionActivated
void StdMeshersGUI_SubShapeSelectorWdg::selectionActivated |
( |
| ) |
|
|
signal |
◆ selectionChanged
void StdMeshersGUI_SubShapeSelectorWdg::selectionChanged |
( |
| ) |
|
|
signal |
◆ selectionIntoArgument
void StdMeshersGUI_SubShapeSelectorWdg::selectionIntoArgument |
( |
| ) |
|
|
privateslot |
References GetGeomObjectByEntry(), SMESH_PreviewActorsCollection::GetIndexByShape(), Handle(), SMESH_PreviewActorsCollection::HighlightID(), myAddButton, myEntry, myListWidget, myMaxSize, myPreviewActor, myRemoveButton, mySelectedIDs, mySelectionMgr, mySubShType, and shapeSelected().
Referenced by ActivateSelection(), ClearSelected(), and init().
◆ setFilter()
void StdMeshersGUI_SubShapeSelectorWdg::setFilter |
( |
| ) |
|
|
private |
Install filters to select sub-shapes of mySubShType or their groups.
◆ SetGeomShapeEntry()
void StdMeshersGUI_SubShapeSelectorWdg::SetGeomShapeEntry |
( |
const QString & |
theEntry, |
|
|
const QString & |
theMainShapeEntry |
|
) |
| |
◆ SetListOfIDs()
bool StdMeshersGUI_SubShapeSelectorWdg::SetListOfIDs |
( |
SMESH::long_array_var |
theIds | ) |
|
References SMESH_PreviewActorsCollection::IsValidIndex(), myListOfIDs, myListWidget, myMainShape, myPreviewActor, mySelectedIDs, and onAdd().
Referenced by StdMeshersGUI_NbSegmentsCreator::buildFrame(), StdMeshersGUI_StdHypothesisCreator::makeReverseEdgesWdg(), StdMeshersGUI_PropagationHelperWdg::onAdd(), StdMeshersGUI_QuadrangleParamCreator::retrieveParams(), and StdMeshersGUI_StdHypothesisCreator::stdParams().
◆ SetMaxSize()
void StdMeshersGUI_SubShapeSelectorWdg::SetMaxSize |
( |
int |
aMaxSize | ) |
|
◆ shapeSelected
void StdMeshersGUI_SubShapeSelectorWdg::shapeSelected |
( |
| ) |
|
|
signal |
◆ ShowPreview()
void StdMeshersGUI_SubShapeSelectorWdg::ShowPreview |
( |
bool |
visible | ) |
|
◆ updateButtons()
void StdMeshersGUI_SubShapeSelectorWdg::updateButtons |
( |
| ) |
|
|
private |
References SMESH_PreviewActorsCollection::chunkSize(), SMESH_PreviewActorsCollection::count(), SMESH_PreviewActorsCollection::currentChunk(), SMESH_PreviewActorsCollection::hasNext(), SMESH_PreviewActorsCollection::hasPrevious(), myInfoLabel, myNextButton, myPrevButton, and myPreviewActor.
Referenced by onNext(), onPrevious(), and updateState().
◆ updateState()
void StdMeshersGUI_SubShapeSelectorWdg::updateState |
( |
| ) |
|
|
private |
References SMESH_PreviewActorsCollection::AddToRender(), SMESH::GetViewWindow(), SMESH_PreviewActorsCollection::Init(), myAddButton, myEntry, myGeomShape, myInfoLabel, myIsShown, myListWidget, myMainShape, myNextButton, myPrevButton, myPreviewActor, myRenderer, mySelectedIDs, mySelector, mySMESHGUI, mySubShType, SMESH_PreviewActorsCollection::SetSelector(), SMESH_PreviewActorsCollection::SetShown(), and updateButtons().
Referenced by init(), and SetGeomShapeEntry().
◆ myActivateButton
QPushButton* StdMeshersGUI_SubShapeSelectorWdg::myActivateButton |
|
private |
◆ myAddButton
QPushButton* StdMeshersGUI_SubShapeSelectorWdg::myAddButton |
|
private |
◆ myEntry
std::string StdMeshersGUI_SubShapeSelectorWdg::myEntry |
|
private |
◆ myFilter
◆ myGeomFilters
◆ myGeomShape
TopoDS_Shape StdMeshersGUI_SubShapeSelectorWdg::myGeomShape |
|
private |
◆ myInfoLabel
QLabel* StdMeshersGUI_SubShapeSelectorWdg::myInfoLabel |
|
private |
◆ myIsShown
bool StdMeshersGUI_SubShapeSelectorWdg::myIsShown |
|
private |
◆ myListOfIDs
QList<int> StdMeshersGUI_SubShapeSelectorWdg::myListOfIDs |
|
private |
◆ myListWidget
QListWidget* StdMeshersGUI_SubShapeSelectorWdg::myListWidget |
|
private |
◆ myMainEntry
std::string StdMeshersGUI_SubShapeSelectorWdg::myMainEntry |
|
private |
◆ myMainShape
TopoDS_Shape StdMeshersGUI_SubShapeSelectorWdg::myMainShape |
|
private |
◆ myMaxSize
int StdMeshersGUI_SubShapeSelectorWdg::myMaxSize |
|
private |
◆ myMesh
SMESH::SMESH_Mesh_var StdMeshersGUI_SubShapeSelectorWdg::myMesh |
|
private |
◆ myNextButton
QPushButton* StdMeshersGUI_SubShapeSelectorWdg::myNextButton |
|
private |
◆ myParamValue
QString StdMeshersGUI_SubShapeSelectorWdg::myParamValue |
|
private |
◆ myPrevButton
QPushButton* StdMeshersGUI_SubShapeSelectorWdg::myPrevButton |
|
private |
◆ myPreviewActor
◆ myRemoveButton
QPushButton* StdMeshersGUI_SubShapeSelectorWdg::myRemoveButton |
|
private |
◆ myRenderer
vtkRenderer* StdMeshersGUI_SubShapeSelectorWdg::myRenderer |
|
private |
◆ mySelectedIDs
QList<int> StdMeshersGUI_SubShapeSelectorWdg::mySelectedIDs |
|
private |
◆ mySelectionMgr
LightApp_SelectionMgr* StdMeshersGUI_SubShapeSelectorWdg::mySelectionMgr |
|
private |
◆ mySelector
SVTK_Selector* StdMeshersGUI_SubShapeSelectorWdg::mySelector |
|
private |
◆ mySMESHGUI
SMESHGUI* StdMeshersGUI_SubShapeSelectorWdg::mySMESHGUI |
|
private |
◆ mySubShType
TopAbs_ShapeEnum StdMeshersGUI_SubShapeSelectorWdg::mySubShType |
|
private |