mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-14 17:48:34 +05:00
021382: EDF 1985 SMESH: Read/write of .mesh files (GMF format)
when setting myName, call myGroupDS->SetStoreName( myName )
This commit is contained in:
parent
dce6fb4fd7
commit
2974c0b8ab
@ -24,7 +24,6 @@
|
||||
// File : SMESH_Group.cxx
|
||||
// Author : Michael Sazonov (OCC)
|
||||
// Module : SMESH
|
||||
// $Header$
|
||||
//
|
||||
#include "SMESH_Group.hxx"
|
||||
#include "SMESH_Mesh.hxx"
|
||||
@ -60,6 +59,7 @@ SMESH_Group::SMESH_Group (int theID,
|
||||
myGroupDS = new SMESHDS_Group (theID,
|
||||
const_cast<SMESH_Mesh*>(theMesh)->GetMeshDS(),
|
||||
theType);
|
||||
myGroupDS->SetStoreName( theName );
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
@ -76,7 +76,7 @@ SMESH_Group::SMESH_Group (SMESHDS_GroupBase* groupDS): myGroupDS( groupDS )
|
||||
|
||||
//=============================================================================
|
||||
/*!
|
||||
*
|
||||
* Destructor deletes myGroupDS
|
||||
*/
|
||||
//=============================================================================
|
||||
|
||||
@ -84,3 +84,15 @@ SMESH_Group::~SMESH_Group ()
|
||||
{
|
||||
delete myGroupDS; myGroupDS=0;
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
/*!
|
||||
* \brief Sets a new name
|
||||
*/
|
||||
//================================================================================
|
||||
|
||||
void SMESH_Group::SetName (const char* theName)
|
||||
{
|
||||
myName = theName;
|
||||
myGroupDS->SetStoreName( theName );
|
||||
}
|
||||
|
@ -52,7 +52,7 @@ class SMESH_EXPORT SMESH_Group
|
||||
SMESH_Group (SMESHDS_GroupBase* groupDS);
|
||||
~SMESH_Group ();
|
||||
|
||||
void SetName (const char* theName) { myName = theName; }
|
||||
void SetName (const char* theName);
|
||||
|
||||
const char* GetName () const { return myName.c_str(); }
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user