<commit_before>// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
//
// See http://www.salome-platform.org/ or email : <EMAIL>
//

//  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
//  File   : SMESH_MeshEditor_i.hxx
//  Author : <NAME>
//  Module : SMESH
//
#ifndef _SMESH_MESHEDITOR_I_HXX_
#define _SMESH_MESHEDIOTR_I_HXX_

#include "SMESH.hxx"

#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)

#include "SMESH_Mesh.hxx"
#include "SMESH_PythonDump.hxx"
#include "SMESH_MeshEditor.hxx"
#include <list>

class SMESH_Mesh_i;

namespace MeshEditor_I {
  struct TPreviewMesh;
}

class SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor
{
public:
  SMESH_MeshEditor_i(SMESH_Mesh_i * theMesh, bool isPreview);

  virtual ~ SMESH_MeshEditor_i();
  /*!
   * \brief Return edited mesh ID
   * \retval int - mesh ID
   */
  int GetMeshId() const { return myMesh->GetId(); }

  // --- CORBA

  /*!
   * Return data of mesh edition preview
   */
  SMESH::MeshPreviewStruct* GetPreviewData() throw (SALOME::SALOME_Exception);
  /*!
   * If during last operation of MeshEditor some nodes were
   * created this method returns list of their IDs, if new nodes
   * not created - returns an empty list
   */
  SMESH::long_array* GetLastCreatedNodes() throw (SALOME::SALOME_Exception);
  /*!
   * If during last operation of MeshEditor some elements were
   * created this method returns list of their IDs, if new elements
   * not created - returns an empty list
   */
  SMESH::long_array* GetLastCreatedElems() throw (SALOME::SALOME_Exception);
  /*!
   * \brief Clears sequences of last created elements and nodes 
   */
  void ClearLastCreated() throw (SALOME::SALOME_Exception);
  /*!
   * \brief Returns description of an error/warning occured during the last operation
   */
  SMESH::ComputeError* GetLastError() throw (SALOME::SALOME_Exception);

  /*!
   * \brief Wrap a sequence of ids in a SMESH_IDSource
   */
  SMESH::SMESH_IDSource_ptr MakeIDSource(const SMESH::long_array& IDsOfElements,
                                         SMESH::ElementType       type);
  static bool               IsTemporaryIDSource( SMESH::SMESH_IDSource_ptr& idSource );

  CORBA::Boolean RemoveElements(const SMESH::long_array & IDsOfElements)
    throw (SALOME::SALOME_Exception);
  CORBA::Boolean RemoveNodes   (const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long    RemoveOrphanNodes()
    throw (SALOME::SALOME_Exception);

  /*!
   * Methods for creation new elements.
   * Returns ID of created element or 0 if element not created
   */
  CORBA::Long AddNode(CORBA::Double x, CORBA::Double y, CORBA::Double z)
    throw (SALOME::SALOME_Exception);
  CORBA::Long Add0DElement(CORBA::Long IDOfNode)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddBall(CORBA::Long IDOfNodem, CORBA::Double diameter)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddEdge(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddFace(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddPolygonalFace(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddVolume(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddPolyhedralVolume(const SMESH::long_array & IDsOfNodes,
                                  const SMESH::long_array & Quantities)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddPolyhedralVolumeByFaces(const SMESH::long_array & IdsOfFaces)
    throw (SALOME::SALOME_Exception);<commit_msg>1) 0020976: EDF 1471 SMESH: New ergonomy to display quality controls<commit_after>// Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
//
// See http://www.salome-platform.org/ or email : <EMAIL>
//

//  SMESH SMESH_I : idl implementation based on 'SMESH' unit's calsses
//  File   : SMESH_MeshEditor_i.hxx
//  Author : <NAME>
//  Module : SMESH
//
#ifndef _SMESH_MESHEDITOR_I_HXX_
#define _SMESH_MESHEDIOTR_I_HXX_

#include "SMESH.hxx"

#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SMESH_MeshEditor)

#include "SMESH_Mesh.hxx"
#include "SMESH_PythonDump.hxx"
#include "SMESH_MeshEditor.hxx"
#include <list>

class SMESH_Mesh_i;

namespace MeshEditor_I {
  struct TPreviewMesh;
}

class SMESH_MeshEditor_i: public POA_SMESH::SMESH_MeshEditor
{
public:
  SMESH_MeshEditor_i(SMESH_Mesh_i * theMesh, bool isPreview);

  virtual ~ SMESH_MeshEditor_i();
  /*!
   * \brief Return edited mesh ID
   * \retval int - mesh ID
   */
  int GetMeshId() const { return myMesh->GetId(); }

  // --- CORBA

  /*!
   * Return data of mesh edition preview
   */
  SMESH::MeshPreviewStruct* GetPreviewData() throw (SALOME::SALOME_Exception);
  /*!
   * If during last operation of MeshEditor some nodes were
   * created this method returns list of their IDs, if new nodes
   * not created - returns an empty list
   */
  SMESH::long_array* GetLastCreatedNodes() throw (SALOME::SALOME_Exception);
  /*!
   * If during last operation of MeshEditor some elements were
   * created this method returns list of their IDs, if new elements
   * not created - returns an empty list
   */
  SMESH::long_array* GetLastCreatedElems() throw (SALOME::SALOME_Exception);
  /*!
   * \brief Clears sequences of last created elements and nodes 
   */
  void ClearLastCreated() throw (SALOME::SALOME_Exception);
  /*!
   * \brief Returns description of an error/warning occured during the last operation
   */
  SMESH::ComputeError* GetLastError() throw (SALOME::SALOME_Exception);

  /*!
   * \brief Wrap a sequence of ids in a SMESH_IDSource
   */
  SMESH::SMESH_IDSource_ptr MakeIDSource(const SMESH::long_array& IDsOfElements,
                                         SMESH::ElementType       type);
  static bool               IsTemporaryIDSource( SMESH::SMESH_IDSource_ptr& idSource );
  static CORBA::Long*       GetTemporaryIDs( SMESH::SMESH_IDSource_ptr& idSource, int& nbIds );

  CORBA::Boolean RemoveElements(const SMESH::long_array & IDsOfElements)
    throw (SALOME::SALOME_Exception);
  CORBA::Boolean RemoveNodes   (const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long    RemoveOrphanNodes()
    throw (SALOME::SALOME_Exception);

  /*!
   * Methods for creation new elements.
   * Returns ID of created element or 0 if element not created
   */
  CORBA::Long AddNode(CORBA::Double x, CORBA::Double y, CORBA::Double z)
    throw (SALOME::SALOME_Exception);
  CORBA::Long Add0DElement(CORBA::Long IDOfNode)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddBall(CORBA::Long IDOfNodem, CORBA::Double diameter)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddEdge(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddFace(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddPolygonalFace(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddVolume(const SMESH::long_array & IDsOfNodes)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddPolyhedralVolume(const SMESH::long_array & IDsOfNodes,
                                  const SMESH::long_array & Quantities)
    throw (SALOME::SALOME_Exception);
  CORBA::Long AddPolyhedralVolumeByFaces(const SMESH::long_array & IdsOfFaces)
    throw (SALOME::SALOME_Exception);
{'fraction_non_alphanumeric': 0.10212859821330098, 'fraction_numerical': 0.009043785154957538, 'mean_word_length': 3.930940728656879, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1192805', 'n_tokens_mistral': 3227, 'n_tokens_neox': 2911, 'n_words': 846}