Salome HOME
activateModule/deactivateModule functions are made "bool".
[modules/smesh.git] / src / SMDS / SMDS_Position.cxx
index dfba3ca63a75ae9db4b660ccf1a5322707e45692..926aa4bf97d7efa266ac2f6564b15fa2cc38c952 100644 (file)
 //  Author : Jean-Michel BOULCOURT
 //  Module : SMESH
 
-using namespace std;
-#include "SMDS_Position.ixx"
+#include "SMDS_Position.hxx"
 
 //=======================================================================
 //function : SMDS_Position
 //purpose  : 
 //=======================================================================
 
-SMDS_Position::SMDS_Position(const Standard_Integer aShapeId, 
-                            const SMDS_TypeOfPosition aType)
-  :myShapeId(aShapeId),myType(aType)
+SMDS_Position::SMDS_Position(int aShapeId) :myShapeId(aShapeId)
 {
 }
+
+//=======================================================================
+//function : SetShapeId
+//purpose  : 
+//=======================================================================
+
+void SMDS_Position::SetShapeId(int aShapeId)
+{
+       myShapeId = aShapeId;
+}
+
+//=======================================================================
+//function : GetShapeId
+//purpose  : 
+//=======================================================================
+
+int SMDS_Position::GetShapeId() const
+{
+       return myShapeId;
+}
+
+//=======================================================================
+//function : GetDim
+//purpose  : 
+//=======================================================================
+
+int SMDS_Position::GetDim() const
+{
+//   switch ( GetTypeOfPosition() ) {
+//   case SMDS_TOP_UNSPEC:  return -1;
+//   case SMDS_TOP_VERTEX:  return 0;
+//   case SMDS_TOP_EDGE:    return 1;
+//   case SMDS_TOP_FACE:    return 2;
+//   case SMDS_TOP_3DSPACE: return 3;
+//   }
+  return GetTypeOfPosition();
+}
+
+