#include <vector>
#include <set>
+using namespace std;
+
#define SPACING 5
#define MARGIN 10
void onEditGroup();
void FindGravityCenter(TColStd_MapOfInteger & ElemsIdMap,
- list< gp_XYZ > & GrCentersXYZ);
+ std::list< gp_XYZ > & GrCentersXYZ);
// add the centers of gravity of ElemsIdMap elements to the GrCentersXYZ list
private:
#include <TopoDS_Shape.hxx>
#include <TopExp_Explorer.hxx>
+using namespace std;
+
//================================================================================
/*!
* \brief Constructor
QString name = baseName;
while ( !aStudy->FindObjectByName( name.latin1(), "SMESH" ).empty() ) {
int nb = 0;
- if ( name[ name.length()-1 ].isNumber() ) {
+ if ( name.at( name.length()-1 ).isNumber() ) {
int nbBeg = name.findRev("_");
nb = name.right( name.length() - nbBeg - 1 ).toInt();
name = name.left( nbBeg );
#include <qapplication.h>
#include <qstringlist.h>
+using namespace std;
+
#define SPACING 5
#define MARGIN 10
#include <qmessagebox.h>
#include <qvalidator.h>
+using namespace std;
#define SPACING 5
#define MARGIN 10
namespace SMESH {
//----------------------------------------------------------------------------
- typedef pair<int,string> TKeyOfVisualObj;
+ typedef std::pair<int,std::string> TKeyOfVisualObj;
SMESHGUI_EXPORT
TVisualObjPtr GetVisualObj(int theStudyId,
int _numberOfAttribute;
int * _attributeIdentifier;
int * _attributeValue;
- string * _attributeDescription;
+ std::string * _attributeDescription;
int _numberOfGroup ;
- string * _groupName ;
+ std::string * _groupName ;
public :
// Constructors and associated internal methods
SMESH_MEDFamily_i(int identifier, SMESH_subMesh_i* sm,
- string name, string description, SALOME_MED::medEntityMesh entity );
+ std::string name, std::string description, SALOME_MED::medEntityMesh entity );
SMESH_MEDFamily_i(const SMESH_MEDFamily_i & f);
// IDL Methods
::SMESH_Mesh_i * _mesh_i;
SMESHDS_Mesh *_meshDS;
- string _meshId;
+ std::string _meshId;
bool _compte;
bool _creeFamily;
int _indexElts;
int _indexEnts;
int _famIdent;
- map < SALOME_MED::medGeometryElement, int >_mapIndToSeqElts;
+ std::map < SALOME_MED::medGeometryElement, int >_mapIndToSeqElts;
SALOME_MED::long_array_var _seq_elemId[MED_NBR_GEOMETRIE_MAILLE];
- map < SALOME_MED::medEntityMesh, int >_mapNbTypes;
- map < SALOME_MED::medEntityMesh, int >_mapIndToVectTypes;
- vector < SALOME_MED::medGeometryElement >
+ std::map < SALOME_MED::medEntityMesh, int >_mapNbTypes;
+ std::map < SALOME_MED::medEntityMesh, int >_mapIndToVectTypes;
+ std::vector < SALOME_MED::medGeometryElement >
_TypesId[MED_NBR_GEOMETRIE_MAILLE];
- vector < SALOME_MED::FAMILY_ptr > _families;
+ std::vector < SALOME_MED::FAMILY_ptr > _families;
public:
// Constructors and associated internal methods
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(MED)
-#include <string>
#include "SMESHDS_Mesh.hxx"
#include "SMESHDS_SubMesh.hxx"
#include "SMESH_MEDSupport_i.hxx"
#include "SALOME_GenericObj_i.hh"
+#include <string>
class SMESH_subMesh_i;
class SMESH_I_EXPORT SMESH_MEDSupport_i:
// Constructors and associated internal methods
SMESH_MEDSupport_i(SMESH_subMesh_i * sm,
- string name, string description, SALOME_MED::medEntityMesh entity);
+ std::string name, std::string description, SALOME_MED::medEntityMesh entity);
SMESH_MEDSupport_i(const SMESH_MEDSupport_i & s);
// IDL Methods
::SMESH_subMesh_i * _subMesh_i;
SMESHDS_Mesh * _meshDS;
- string _name;
- string _description;
+ std::string _name;
+ std::string _description;
bool _isOnAllElements;
bool _seqNumber;
int _seqLength;
SMESH::SMESH_subMesh_ptr getSubMesh(int shapeID);
// return an existing subMesh object for the shapeID. shapeID == submeshID.
- const map<int, SMESH::SMESH_GroupBase_ptr>& getGroups() { return _mapGroups; }
+ const std::map<int, SMESH::SMESH_GroupBase_ptr>& getGroups() { return _mapGroups; }
// return an existing group object.
/*!
SMESH::double_array* BaryCenter(CORBA::Long id);
- map<int, SMESH_subMesh_i*> _mapSubMesh_i; //NRI
- map<int, ::SMESH_subMesh*> _mapSubMesh; //NRI
+ std::map<int, SMESH_subMesh_i*> _mapSubMesh_i; //NRI
+ std::map<int, ::SMESH_subMesh*> _mapSubMesh; //NRI
private:
SMESH_Gen_i* _gen_i;
int _id; // id given by creator (unique within the creator instance)
int _studyId;
- map<int, SMESH::SMESH_subMesh_ptr> _mapSubMeshIor;
- map<int, SMESH::SMESH_GroupBase_ptr> _mapGroups;
- map<int, SMESH::SMESH_Hypothesis_ptr> _mapHypo;
+ std::map<int, SMESH::SMESH_subMesh_ptr> _mapSubMeshIor;
+ std::map<int, SMESH::SMESH_GroupBase_ptr> _mapGroups;
+ std::map<int, SMESH::SMESH_Hypothesis_ptr> _mapHypo;
};
#endif
#include <Standard_ErrorHandler.hxx>
#endif
+using namespace std;
+
Function::Function( const int conv )
: myConv( conv )
{
bool buildDistribution( const Function& f,
const double start, const double end,
const int nbSeg,
- vector<double>& data,
+ std::vector<double>& data,
const double eps );
STDMESHERS_EXPORT
bool buildDistribution( const TCollection_AsciiString& f, const int conv, const double start, const double end,
- const int nbSeg, vector<double>& data, const double eps );
+ const int nbSeg, std::vector<double>& data, const double eps );
STDMESHERS_EXPORT
bool buildDistribution( const std::vector<double>& f, const int conv, const double start, const double end,
- const int nbSeg, vector<double>& data, const double eps );
+ const int nbSeg, std::vector<double>& data, const double eps );
#endif
TopTools_IndexedMapOfOrientedShape myShapeIDMap;
SMESH_Block myTBlock;
TopoDS_Shape myEmptyShape;
- vector<int> myIsEdgeForward;
+ std::vector<int> myIsEdgeForward;
//
int myErrorStatus;
};
void MakeNodes();
- double SetHorizEdgeXYZ(const gp_XYZ& aBNXYZ,
- const int aFaceID,
- vector<const SMDS_MeshNode*>*& aCol1,
- vector<const SMDS_MeshNode*>*& aCol2);
+ double SetHorizEdgeXYZ(const gp_XYZ& aBNXYZ,
+ const int aFaceID,
+ std::vector<const SMDS_MeshNode*>*& aCol1,
+ std::vector<const SMDS_MeshNode*>*& aCol2);
void ShapeSupportID(const bool theIsUpperLayer,
const SMESH_Block::TShapeID theBNSSID,
void * myMesh;
SMESH_ComputeErrorPtr myErrorStatus;
//
- vector <StdMeshers_TNode> myTNodes;
+ std::vector <StdMeshers_TNode> myTNodes;
int myISize;
int myJSize;
double myTol3D; // Tolerance value
std::map < int, int > myConnectingMap;
//
- vector<StdMeshers_IJNodeMap> myWallNodesMaps; // nodes on a face
- vector<gp_XYZ> myShapeXYZ; // point on each sub-shape
+ std::vector<StdMeshers_IJNodeMap> myWallNodesMaps; // nodes on a face
+ std::vector<gp_XYZ> myShapeXYZ; // point on each sub-shape
bool myCreateQuadratic;
SMESH_MesherHelper* myTool; // tool building quadratic elements
#include <TopTools_DataMapIteratorOfDataMapOfShapeShape.hxx>
#include <TopTools_DataMapIteratorOfDataMapOfShapeListOfShape.hxx>
+using namespace std;
+
#define RETURN_BAD_RESULT(msg) { MESSAGE(")-: Error: " << msg); return false; }
#define SHOW_VERTEX(v,msg) // { \
TopoDS_Vertex VV1[2],
const TopoDS_Face& face2,
TopoDS_Vertex VV2[2],
- list< TopoDS_Edge > & edges1,
- list< TopoDS_Edge > & edges2);
+ std::list< TopoDS_Edge > & edges1,
+ std::list< TopoDS_Edge > & edges2);
/*!
* \brief Insert vertex association defined by a hypothesis into a map
};
-class StdMeshers_UseExisting_1D: public SMESH_1D_Algo
+class STDMESHERS_EXPORT StdMeshers_UseExisting_1D: public SMESH_1D_Algo
{
public:
StdMeshers_UseExisting_1D(int hypId, int studyId, SMESH_Gen* gen);
#include "SALOME_ListIO.hxx"
#include "SALOMEDSClient_SObject.hxx"
+using namespace std;
+
//================================================================================
/*!
* \brief Constructor initialized by filter
// Module : SMESH
// $Header$
-using namespace std;
#include "StdMeshers_NumberOfSegments_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "SMESH_Gen.hxx"
#include <TCollection_AsciiString.hxx>
+using namespace std;
+
//=============================================================================
/*!
* StdMeshers_NumberOfSegments_i::StdMeshers_NumberOfSegments_i
// Module : SMESH
// $Header$
-using namespace std;
-
#include "StdMeshers_ProjectionSource1D_i.hxx"
#include "SMESH_Gen_i.hxx"
#include "StdMeshers_ObjRefUlils.hxx"
+using namespace std;
+
//=============================================================================
/*!
* StdMeshers_ProjectionSource1D_i::StdMeshers_ProjectionSource1D_i