Version: 8.3.0
StdMeshersGUI_PropagationHelperWdg Class Reference

A widget showing a list of propagation chains of EDGEs. More...

#include <StdMeshersGUI_PropagationHelperWdg.h>

Inheritance diagram for StdMeshersGUI_PropagationHelperWdg:

Public Member Functions

 StdMeshersGUI_PropagationHelperWdg (StdMeshersGUI_SubShapeSelectorWdg *subSelectWdg, QWidget *parent=0, bool show=true)
 Constructor. More...
 
 ~StdMeshersGUI_PropagationHelperWdg ()
 Destructor. More...
 
void Clear ()
 Switch off all buttons and previews. More...
 

Private Slots

void onShowGeometry (bool toShow)
 SLOT called when 'Show Geometry' is checked. More...
 
void onListSelectionChanged ()
 SLOT called when a selected chain changes. More...
 
void onAdd ()
 SLOT called when 'Add' button is clicked. More...
 
void onReverse ()
 SLOT called when 'Reverse' button is clicked. More...
 
void updateList (bool enable)
 Fills myListWidget. More...
 

Private Member Functions

bool buildChains ()
 Build propagation chains. More...
 
std::vector< int > * getSelectedChain ()
 Returns ids of a selected chain. More...
 

Private Attributes

StdMeshersGUI_SubShapeSelectorWdgmySubSelectWdg
 
vtkRenderer * myRenderer
 
GEOM_Actor * myActor
 
GEOM_Actor * myModelActor
 
QListWidget * myListWidget
 
QPushButton * myAddButton
 
QPushButton * myReverseButton
 
QCheckBox * myShowGeomChkBox
 
QGroupBoxmyChainBox
 
std::vector< std::vector< int > > myChains
 

Detailed Description

A widget showing a list of propagation chains of EDGEs.

Selecting a chain shows its EDGEs in a viewer with all EDGEs equally oriented, 'Reverse' button reverses the EDGEs of a selected chain. 'Add' button adds EDGEs to a list of reversed EDGEs of StdMeshersGUI_SubShapeSelectorWdg

Constructor & Destructor Documentation

StdMeshersGUI_PropagationHelperWdg::StdMeshersGUI_PropagationHelperWdg ( StdMeshersGUI_SubShapeSelectorWdg subSelectWdg,
QWidget parent = 0,
bool  show = true 
)
StdMeshersGUI_PropagationHelperWdg::~StdMeshersGUI_PropagationHelperWdg ( )

Destructor.

References myActor, myModelActor, and myRenderer.

Member Function Documentation

void StdMeshersGUI_PropagationHelperWdg::Clear ( )

Switch off all buttons and previews.

References myActor, myChainBox, myListWidget, myModelActor, and myShowGeomChkBox.

Referenced by StdMeshersGUI_NbSegmentsCreator::onValueChanged().

std::vector< int > * StdMeshersGUI_PropagationHelperWdg::getSelectedChain ( )
private

Returns ids of a selected chain.

References myChains, and myListWidget.

Referenced by onAdd(), onListSelectionChanged(), and onReverse().

void StdMeshersGUI_PropagationHelperWdg::onReverse ( )
privateslot

SLOT called when 'Reverse' button is clicked.

References getSelectedChain(), and onListSelectionChanged().

Referenced by StdMeshersGUI_PropagationHelperWdg().

void StdMeshersGUI_PropagationHelperWdg::onShowGeometry ( bool  toShow)
privateslot
void StdMeshersGUI_PropagationHelperWdg::updateList ( bool  enable)
privateslot

Field Documentation

GEOM_Actor* StdMeshersGUI_PropagationHelperWdg::myActor
private
QPushButton* StdMeshersGUI_PropagationHelperWdg::myAddButton
private
QGroupBox* StdMeshersGUI_PropagationHelperWdg::myChainBox
private
std::vector< std::vector<int> > StdMeshersGUI_PropagationHelperWdg::myChains
private
QListWidget* StdMeshersGUI_PropagationHelperWdg::myListWidget
private
GEOM_Actor* StdMeshersGUI_PropagationHelperWdg::myModelActor
private
vtkRenderer* StdMeshersGUI_PropagationHelperWdg::myRenderer
private
QPushButton* StdMeshersGUI_PropagationHelperWdg::myReverseButton
private
QCheckBox* StdMeshersGUI_PropagationHelperWdg::myShowGeomChkBox
private
StdMeshersGUI_SubShapeSelectorWdg* StdMeshersGUI_PropagationHelperWdg::mySubSelectWdg
private