Back to index

salome-smesh  6.5.0
Public Member Functions | Protected Member Functions
SMESHGUI_CuttingIntoTetraDlg Class Reference

Class : SMESHGUI_CuttingIntoTetraDlg Description : Split all volumes into tetrahedrons. More...

#include <SMESHGUI_MultiEditDlg.h>

List of all members.

Public Member Functions

 SMESHGUI_CuttingIntoTetraDlg (SMESHGUI *)
 Class : SMESHGUI_CuttingIntoTetraDlg Description : Modification of orientation of faces.
virtual ~SMESHGUI_CuttingIntoTetraDlg ()

Protected Member Functions

virtual bool process (SMESH::SMESH_MeshEditor_ptr, const SMESH::long_array &, SMESH::SMESH_IDSource_ptr obj)

Detailed Description

Class : SMESHGUI_CuttingIntoTetraDlg Description : Split all volumes into tetrahedrons.

Definition at line 241 of file SMESHGUI_MultiEditDlg.h.


Constructor & Destructor Documentation

Class : SMESHGUI_CuttingIntoTetraDlg Description : Modification of orientation of faces.

Definition at line 1479 of file SMESHGUI_MultiEditDlg.cxx.

  : SMESHGUI_MultiEditDlg(theModule, SMESH::VolumeFilter, false)
{
  setWindowTitle(tr("CAPTION"));
  myHelpFileName = "split_to_tetra_page.html";
  myEntityType = 1;

  myToAllChk->setChecked( true ); //aplly to the whole mesh by default

  bool hasHexa = true;//myMesh->_is_nil() ? false : myMesh->NbHexas();

  if ( hasHexa )
  {
    myGroupChoice->button(0)->setText( tr("SPLIT_HEX_TO_5_TETRA"));
    myGroupChoice->button(1)->setText( tr("SPLIT_HEX_TO_6_TETRA"));
    myGroupChoice->button(2)->setText( tr("SPLIT_HEX_TO_24_TETRA"));

    myCriterionGrp->setTitle( tr("SPLIT_METHOD"));
    myCriterionGrp->show();
    myComboBoxFunctor->hide();
    myChoiceWidget->show();
  }
  setSelectionMode();
  updateButtons();
}

Definition at line 1505 of file SMESHGUI_MultiEditDlg.cxx.

{
}

Member Function Documentation

bool SMESHGUI_CuttingIntoTetraDlg::process ( SMESH::SMESH_MeshEditor_ptr  theEditor,
const SMESH::long_array theIds,
SMESH::SMESH_IDSource_ptr  obj 
) [protected, virtual]

Definition at line 1509 of file SMESHGUI_MultiEditDlg.cxx.

{
  SMESH::SMESH_IDSource_var obj = theObj;
  if ( CORBA::is_nil( obj ))
    obj = theEditor->MakeIDSource( theIds, myEntityType ? SMESH::VOLUME : SMESH::FACE );
  try {
    theEditor->SplitVolumesIntoTetra( obj, myGroupChoice->checkedId()+1 );
  }
  catch ( const SALOME::SALOME_Exception& S_ex ) {
    SalomeApp_Tools::QtCatchCorbaException( S_ex );
    return false;
  }
  return true;
}

The documentation for this class was generated from the following files: