Back to index

salome-smesh  6.5.0
Classes | Defines | Functions
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>

Go to the source code of this file.

Classes

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< int > geomTypes (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 1609 of file SMESHGUI_FilterDlg.cxx.

{
  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_HEXAGONAL_PRISM );
    typeIds.append( SMESH::Geom_POLYHEDRA );
  }
  return typeIds;
}
static int getFilterId ( SMESH::ElementType  theType) [static]

Definition at line 129 of file SMESHGUI_FilterDlg.cxx.

{
  switch (theType)
  {
    case SMESH::NODE   : return SMESH::NodeFilter;
    case SMESH::EDGE   : return SMESH::EdgeFilter;
    case SMESH::FACE   : return SMESH::FaceFilter;
    case SMESH::VOLUME : return SMESH::VolumeFilter;
    case SMESH::ALL    : return SMESH::AllElementsFilter;
    default            : return SMESH::UnknownFilter;
  }
}

Here is the caller graph for this function:

static int maxLength ( const QMap< int, QString >  theMap,
const QFontMetrics &  theMetrics 
) [static]

Definition at line 117 of file SMESHGUI_FilterDlg.cxx.

{
  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;
}