Version: 6.3.1
Data Structures | Defines | Functions

src/SMESHGUI/SMESHGUI_FilterDlg.cxx File Reference

#include "SMESHGUI_FilterDlg.h"
#include "SMESHGUI.h"
#include "SMESHGUI_Utils.h"
#include "SMESHGUI_VTKUtils.h"
#include "SMESHGUI_Filter.h"
#include "SMESHGUI_FilterUtils.h"
#include "SMESHGUI_FilterLibraryDlg.h"
#include "SMESHGUI_SpinBox.h"
#include <SMESH_Actor.h>
#include <SMESH_NumberFilter.hxx>
#include <SMESH_TypeFilter.hxx>
#include <GEOMBase.h>
#include <GEOM_FaceFilter.h>
#include <GEOM_TypeFilter.h>
#include <SUIT_Desktop.h>
#include <SUIT_ResourceMgr.h>
#include <SUIT_Session.h>
#include <SUIT_MessageBox.h>
#include <QtxColorButton.h>
#include <LightApp_Application.h>
#include <LightApp_SelectionMgr.h>
#include <SalomeApp_Tools.h>
#include <SalomeApp_Study.h>
#include <SalomeApp_IntSpinBox.h>
#include <SalomeApp_DoubleSpinBox.h>
#include <SALOME_ListIO.hxx>
#include <SALOME_ListIteratorOfListIO.hxx>
#include <SALOME_DataMapIteratorOfDataMapOfIOMapOfInteger.hxx>
#include <SVTK_ViewWindow.h>
#include <SALOMEDSClient_Study.hxx>
#include <StdSelect_TypeOfFace.hxx>
#include <BRep_Tool.hxx>
#include <TopoDS.hxx>
#include <TopoDS_Shape.hxx>
#include <Geom_Plane.hxx>
#include <Geom_CylindricalSurface.hxx>
#include <Precision.hxx>
#include <TColStd_MapOfInteger.hxx>
#include <TColStd_IndexedMapOfInteger.hxx>
#include <TColStd_MapIteratorOfMapOfInteger.hxx>
#include <QFrame>
#include <QLineEdit>
#include <QPushButton>
#include <QGroupBox>
#include <QTableWidget>
#include <QStringList>
#include <QHBoxLayout>
#include <QVBoxLayout>
#include <QGridLayout>
#include <QStackedWidget>
#include <QApplication>
#include <QComboBox>
#include <QFontMetrics>
#include <QLabel>
#include <QButtonGroup>
#include <QRadioButton>
#include <QRegExp>
#include <QListWidget>
#include <QCheckBox>
#include <QItemDelegate>
#include <QDoubleValidator>
#include <QKeyEvent>
#include <QHeaderView>
#include <SALOMEconfig.h>
#include <CORBA_SERVER_HEADER(SMESH_Group)>

Go to the source code of this file.

Data Structures

class  SMESHGUI_FilterTable.AdditionalWidget
class  SMESHGUI_FilterTable.ComboItem
class  SMESHGUI_FilterTable.CheckItem
class  SMESHGUI_FilterTable.IntSpinItem
class  SMESHGUI_FilterTable.DoubleSpinItem
class  SMESHGUI_FilterTable.ComboDelegate
class  SMESHGUI_FilterTable.Table

Defines

#define SPACING   6
#define MARGIN   11

Functions

static int maxLength (const QMap< int, QString > theMap, const QFontMetrics &theMetrics)
static int getFilterId (SMESH::ElementType theType)
static QList< intgeomTypes (const int theType)

Define Documentation

#define MARGIN   11

Definition at line 112 of file SMESHGUI_FilterDlg.cxx.

#define SPACING   6

Definition at line 111 of file SMESHGUI_FilterDlg.cxx.


Function Documentation

static QList<int> geomTypes ( const int  theType) [static]

Definition at line 1604 of file SMESHGUI_FilterDlg.cxx.

References SMESH.ALL, SMESH.EDGE, SMESH.FACE, SMESH.Geom_EDGE, SMESH.Geom_HEXA, SMESH.Geom_PENTA, SMESH.Geom_POINT, SMESH.Geom_POLYGON, SMESH.Geom_POLYHEDRA, SMESH.Geom_PYRAMID, SMESH.Geom_QUADRANGLE, SMESH.Geom_TETRA, SMESH.Geom_TRIANGLE, SMESH.NODE, and SMESH.VOLUME.

Referenced by SMESHGUI_FilterTable.onCriterionChanged().

{
  QList<int> typeIds;
  if ( theType == SMESH::NODE )
    typeIds.append( SMESH::Geom_POINT );
  if ( theType == SMESH::ALL || theType == SMESH::EDGE )
    typeIds.append( SMESH::Geom_EDGE );
  if ( theType == SMESH::ALL || theType == SMESH::FACE )
  {
    typeIds.append( SMESH::Geom_TRIANGLE );
    typeIds.append( SMESH::Geom_QUADRANGLE );
    typeIds.append( SMESH::Geom_POLYGON );
  }
  if ( theType == SMESH::ALL || theType == SMESH::VOLUME )
  {
    typeIds.append( SMESH::Geom_TETRA );
    typeIds.append( SMESH::Geom_PYRAMID );
    typeIds.append( SMESH::Geom_HEXA );
    typeIds.append( SMESH::Geom_PENTA );
    typeIds.append( SMESH::Geom_POLYHEDRA );
  }
  return typeIds;
}
static int getFilterId ( SMESH::ElementType  theType) [static]
static int maxLength ( const QMap< int, QString >  theMap,
const QFontMetrics &  theMetrics 
) [static]

Definition at line 117 of file SMESHGUI_FilterDlg.cxx.

Referenced by SMESHGUI_FilterTable.createTable().

{
  int aRes = 0;
  QMap<int, QString>::const_iterator anIter;
  for (anIter = theMap.begin(); anIter != theMap.end(); ++anIter)
    aRes = qMax(aRes, theMetrics.width(anIter.value()));
  return aRes;
}
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS