X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMDS%2FSMDS_Position.cxx;h=bd9a7a24b0e03673c7d107c8cb293a15e6a54f6f;hb=0aa84210cf7da3868cc8eb26b17a2da8e046b3ae;hp=dfba3ca63a75ae9db4b660ccf1a5322707e45692;hpb=4791f5b30ea7a9c1247aa551750dc71cb83b99aa;p=modules%2Fsmesh.git diff --git a/src/SMDS/SMDS_Position.cxx b/src/SMDS/SMDS_Position.cxx index dfba3ca63..bd9a7a24b 100644 --- a/src/SMDS/SMDS_Position.cxx +++ b/src/SMDS/SMDS_Position.cxx @@ -17,7 +17,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.opencascade.org/SALOME/ or email : webmaster.salome@opencascade.org +// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com // // // @@ -25,16 +25,52 @@ // 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(); +} + +