// SMESH SMESHDS : idl implementation based on 'SMESH' unit's classes
// File : SMESHDS_GroupOnGeom.cxx
// Module : SMESH
-// $Header$
//
#include "SMESHDS_GroupOnGeom.hxx"
#include "SMESHDS_Mesh.hxx"
const SMESHDS_Mesh* theMesh,
const SMDSAbs_ElementType theType,
const TopoDS_Shape& theShape)
- : SMESHDS_GroupBase(theID,theMesh,theType), myShape(theShape)
+ : SMESHDS_GroupBase(theID,theMesh,theType)
{
- SMESHDS_Mesh* aMesh = const_cast<SMESHDS_Mesh*>(theMesh);
+ SetShape( theShape );
+}
+
+void SMESHDS_GroupOnGeom::SetShape( const TopoDS_Shape& theShape)
+{
+ SMESHDS_Mesh* aMesh = const_cast<SMESHDS_Mesh*>( GetMesh() );
mySubMesh = aMesh->MeshElements( aMesh->AddCompoundSubmesh( theShape ));
+ myShape = theShape;
}
// =====================
// SMESH SMESHDS : management of mesh data and SMESH document
// File : SMESHDS_GroupOnGeom.hxx
// Module : SMESH
-// $Header$
//
#ifndef _SMESHDS_GroupOnGeom_HeaderFile
#define _SMESHDS_GroupOnGeom_HeaderFile
const SMDSAbs_ElementType theType,
const TopoDS_Shape& theShape);
+ void SetShape( const TopoDS_Shape& theShape);
+
TopoDS_Shape GetShape() const { return myShape; }
virtual bool Contains (const int theID);