Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
OperationGUI_ExtractionDlg.cxx File Reference
#include "OperationGUI_ExtractionDlg.h"
#include <GEOMBase.h>
#include <GeometryGUI.h>
#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Application.h>
#include <SalomeApp_Tools.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
#include <TColStd_ListIteratorOfListOfInteger.hxx>
#include <TopExp.hxx>
#include <TopExp_Explorer.hxx>
#include <TopoDS_Iterator.hxx>
#include <TopTools_IndexedMapOfShape.hxx>
#include <TopTools_MapOfShape.hxx>
#include <QComboBox>
#include <QGridLayout>
#include <QGroupBox>
#include <QHBoxLayout>
#include <QLabel>
#include <QLineEdit>
#include <QListWidget>
#include <QPushButton>
#include <QRadioButton>
#include <QTreeWidget>
#include <QVBoxLayout>
#include <QtGlobal>

Classes

class  QSignalBlocker
 This class is named as QT class as it is introduced since Qt 5.3. More...
 

Macros

#define ID_ROLE   Qt::DisplayRole
 
#define TYPE_ROLE   Qt::UserRole
 

Functions

static QListWidgetItem * addNewItem (const int theID, QListWidget *theListWidget)
 This static function creates a new list widget item with given ID and returns it. More...
 
static QTreeWidgetItemaddChildItem (const int theID, QTreeWidgetItem *theParentItem)
 This static function creates a new tree widget item as a child of the input one with given ID and returns it. More...
 
static TopAbs_ShapeEnum GetMaxShapeTypeInComp (const TopoDS_Shape &theCompound)
 This static function returns the maximal shape type of sub-shapes stored in the input compound. More...
 

Variables

static const char *const TMP_STR = "TEMP"
 
static const char *const SINGLE_SHAPE_TYPE_TR_CODES []
 
static const char *const PLURAL_SHAPE_TYPE_TR_CODES []
 

Macro Definition Documentation

#define ID_ROLE   Qt::DisplayRole
#define TYPE_ROLE   Qt::UserRole

Function Documentation

static QTreeWidgetItem* addChildItem ( const int  theID,
QTreeWidgetItem theParentItem 
)
static
Parameters
theIDthe item ID.
theParentItemthe parent item.
Returns
the created tree widget item.

References aResult, and ID_ROLE.

static QListWidgetItem* addNewItem ( const int  theID,
QListWidget theListWidget 
)
static
Parameters
theIDthe item ID.
theListWidgetthe list widget.
Returns
the created list widget item.

References aResult, and ID_ROLE.

static TopAbs_ShapeEnum GetMaxShapeTypeInComp ( const TopoDS_Shape &  theCompound)
static

If it is not a compound, it returns TopAbs_SHAPE.

Parameters
theCompoundthe compound.
Returns
the maximal shape type of sub-shapes stored in the input compound.

References aResult.

Variable Documentation

const char* const PLURAL_SHAPE_TYPE_TR_CODES[]
static
Initial value:
= {
"GEOM_COMPOUND",
"GEOM_COMPSOLIDS",
"GEOM_SOLIDS",
"GEOM_SHELLS",
"GEOM_FACES",
"GEOM_WIREZ",
"GEOM_EDGES",
"GEOM_VERTEXES"
}
const char* const SINGLE_SHAPE_TYPE_TR_CODES[]
static
Initial value:
= {
"GEOM_COMPOUND",
"GEOM_COMPOUNDSOLID",
"GEOM_SOLID",
"GEOM_SHELL",
"GEOM_FACE",
"GEOM_WIRE",
"GEOM_EDGE",
"GEOM_VERTEX"
}
const char* const TMP_STR = "TEMP"
static