2012-06-05 17:33:32 +06:00
|
|
|
// Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2011-06-06 13:23:11 +06:00
|
|
|
// This library is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of the GNU Lesser General Public
|
|
|
|
// License as published by the Free Software Foundation; either
|
|
|
|
// version 2.1 of the License.
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2011-06-06 13:23:11 +06:00
|
|
|
// This library is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
// Lesser General Public License for more details.
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2011-06-06 13:23:11 +06:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
// License along with this library; if not, write to the Free Software
|
|
|
|
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
2009-02-13 17:16:39 +05:00
|
|
|
//
|
2011-06-06 13:23:11 +06:00
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2008-03-07 12:45:34 +05:00
|
|
|
//
|
|
|
|
#ifndef _GEOMAlgo_ShapeInfoFiller_HeaderFile
|
|
|
|
#define _GEOMAlgo_ShapeInfoFiller_HeaderFile
|
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
#include <Standard.hxx>
|
|
|
|
#include <Standard_Macro.hxx>
|
2008-03-07 12:45:34 +05:00
|
|
|
#include <TopoDS_Shape.hxx>
|
|
|
|
#include <GEOMAlgo_ShapeInfo.hxx>
|
|
|
|
#include <GEOMAlgo_IndexedDataMapOfShapeShapeInfo.hxx>
|
|
|
|
#include <Standard_Real.hxx>
|
|
|
|
#include <GEOMAlgo_Algo.hxx>
|
2012-06-05 17:33:32 +06:00
|
|
|
#include <TopoDS_Face.hxx>
|
|
|
|
#include <gp_Pln.hxx>
|
|
|
|
#include <gp_Sphere.hxx>
|
|
|
|
#include <gp_Cylinder.hxx>
|
|
|
|
#include <gp_Cone.hxx>
|
|
|
|
#include <gp_Torus.hxx>
|
|
|
|
#include <TopoDS_Solid.hxx>
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
//=======================================================================
|
|
|
|
//class : GEOMAlgo_ShapeInfoFiller
|
|
|
|
//purpose :
|
|
|
|
//=======================================================================
|
|
|
|
class GEOMAlgo_ShapeInfoFiller : public GEOMAlgo_Algo
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Standard_EXPORT
|
|
|
|
GEOMAlgo_ShapeInfoFiller();
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
virtual ~GEOMAlgo_ShapeInfoFiller();
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void SetShape(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
const TopoDS_Shape& Shape() const;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void SetTolerance(const Standard_Real aT) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
Standard_Real Tolerance() const;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
const GEOMAlgo_ShapeInfo& Info() const;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
const GEOMAlgo_ShapeInfo& Info(const TopoDS_Shape& aS) const;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
virtual void Perform() ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
protected:
|
|
|
|
Standard_EXPORT
|
|
|
|
virtual void CheckData() ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillNbSubShapes(const TopoDS_Shape& aS,GEOMAlgo_ShapeInfo& aInfo) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillSubShapes(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillShape(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillVertex(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillEdge(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillFace(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillSolid(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillContainer(const TopoDS_Shape& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillDetails(const TopoDS_Face& aF,const gp_Pln& aPln) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillDetails(const TopoDS_Face& aF,const gp_Sphere& aSph) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillDetails(const TopoDS_Face& aF,const gp_Cylinder& aCyl) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillDetails(const TopoDS_Face& aF,const gp_Cone& aCone) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillDetails(const TopoDS_Face& aF,const gp_Torus& aTorus) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
Standard_EXPORT
|
|
|
|
void FillDetails(const TopoDS_Solid& aS) ;
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
|
2012-06-05 17:33:32 +06:00
|
|
|
TopoDS_Shape myShape;
|
|
|
|
GEOMAlgo_ShapeInfo myEmptyInfo;
|
|
|
|
GEOMAlgo_IndexedDataMapOfShapeShapeInfo myMapInfo;
|
|
|
|
Standard_Real myTolerance;
|
2008-03-07 12:45:34 +05:00
|
|
|
};
|
|
|
|
#endif
|