Back to index

salome-geom  6.5.0
NMTDS_Tools.hxx
Go to the documentation of this file.
00001 // Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00002 //
00003 // This library is free software; you can redistribute it and/or
00004 // modify it under the terms of the GNU Lesser General Public
00005 // License as published by the Free Software Foundation; either
00006 // version 2.1 of the License.
00007 //
00008 // This library is distributed in the hope that it will be useful,
00009 // but WITHOUT ANY WARRANTY; without even the implied warranty of
00010 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00011 // Lesser General Public License for more details.
00012 //
00013 // You should have received a copy of the GNU Lesser General Public
00014 // License along with this library; if not, write to the Free Software
00015 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00016 //
00017 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00018 //
00019 
00020 // File:        NMTDS_Tools.hxx
00021 // Created:     
00022 // Author:      Peter KURNEV
00023 
00024 #ifndef _NMTDS_Tools_HeaderFile
00025 #define _NMTDS_Tools_HeaderFile
00026 
00027 #include <Standard.hxx>
00028 #include <Standard_Macro.hxx>
00029 #include <Standard_Integer.hxx>
00030 #include <TopAbs_ShapeEnum.hxx>
00031 #include <Standard_Boolean.hxx>
00032 #include <TopoDS_Vertex.hxx>
00033 #include <TopoDS_Shape.hxx>
00034 #include <TopTools_IndexedDataMapOfShapeShape.hxx>
00035 
00036 //=======================================================================
00037 //function : NMTDS_Tools
00038 //purpose  : 
00039 //=======================================================================
00040 class NMTDS_Tools 
00041 {
00042  public:
00043   Standard_EXPORT
00044     static  Standard_Integer TypeToInteger(const TopAbs_ShapeEnum aT1,
00045                                       const TopAbs_ShapeEnum aT2) ;
00046   
00047   Standard_EXPORT
00048     static  Standard_Boolean HasBRep(const TopAbs_ShapeEnum aT) ;
00049   
00050   Standard_EXPORT
00051     static  Standard_Integer ComputeVV(const TopoDS_Vertex& aV1,
00052                                    const TopoDS_Vertex& aV2) ;
00053   
00054   Standard_EXPORT
00055     static  void CopyShape(const TopoDS_Shape& aS,
00056                         TopoDS_Shape& aSC) ;
00057   
00058   Standard_EXPORT
00059     static  void CopyShape(const TopoDS_Shape& aS,
00060                         TopoDS_Shape& aSC,
00061                         TopTools_IndexedDataMapOfShapeShape& aMSS) ;
00062 };
00063 #endif