X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH%2FSMESH_Group.hxx;h=72ee80a79c43b446cd3200388eb5664f3abf0956;hb=e406de3c309fb99a0d9034c3a2ecb5fd4d406e44;hp=5147a44d79bb1fa32df646ab5dfe9bf648495b8a;hpb=bc37f0b49f9713347749b6325e1c7062de8857ae;p=modules%2Fsmesh.git diff --git a/src/SMESH/SMESH_Group.hxx b/src/SMESH/SMESH_Group.hxx index 5147a44d7..72ee80a79 100644 --- a/src/SMESH/SMESH_Group.hxx +++ b/src/SMESH/SMESH_Group.hxx @@ -16,7 +16,7 @@ // 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 : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -30,25 +30,31 @@ #include #include -using namespace std; +#include -class SMESHDS_Group; + +class SMESHDS_GroupBase; class SMESH_Mesh; class SMESH_Group { public: - SMESH_Group (const SMESH_Mesh* theMesh, + SMESH_Group (int theID, + const SMESH_Mesh* theMesh, const SMDSAbs_ElementType theType, - const char* theName); + const char* theName, + const TopoDS_Shape& theShape = TopoDS_Shape()); ~SMESH_Group (); void SetName (const char* theName) { myName = theName; } const char* GetName () const { return myName.c_str(); } - SMESHDS_Group * GetGroupDS () { return myGroupDS; } + SMESHDS_GroupBase * GetGroupDS () { return myGroupDS; } + + void SetColorNumber (int theColorNumber) { myColorNumber = theColorNumber; } + int GetColorNumber() const { return myColorNumber; } private: SMESH_Group (const SMESH_Group& theOther); @@ -56,9 +62,9 @@ class SMESH_Group SMESH_Group& operator = (const SMESH_Group& theOther); // prohibited assign operator - SMESHDS_Group * myGroupDS; - string myName; - + SMESHDS_GroupBase * myGroupDS; + std::string myName; + int myColorNumber; }; #endif