mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-23 22:25:36 +05:00
187 lines
4.0 KiB
C++
187 lines
4.0 KiB
C++
![]() |
// File generated by CPPExt (Value)
|
||
|
//
|
||
|
// Copyright (C) 1991 - 2000 by
|
||
|
// Matra Datavision SA. All rights reserved.
|
||
|
//
|
||
|
// Copyright (C) 2001 - 2004 by
|
||
|
// Open CASCADE SA. All rights reserved.
|
||
|
//
|
||
|
// This file is part of the Open CASCADE Technology software.
|
||
|
//
|
||
|
// This software may be distributed and/or modified under the terms and
|
||
|
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
|
||
|
// and appearing in the file LICENSE included in the packaging of this file.
|
||
|
//
|
||
|
// This software is distributed on an "AS IS" basis, without warranty of any
|
||
|
// kind, and Open CASCADE SA hereby disclaims all such warranties,
|
||
|
// including without limitation, any warranties of merchantability, fitness
|
||
|
// for a particular purpose or non-infringement. Please see the License for
|
||
|
// the specific terms and conditions governing rights and limitations under the
|
||
|
// License.
|
||
|
|
||
|
#ifndef _GEOMAlgo_ShapeInfoFiller_HeaderFile
|
||
|
#define _GEOMAlgo_ShapeInfoFiller_HeaderFile
|
||
|
|
||
|
#ifndef _TopoDS_Shape_HeaderFile
|
||
|
#include <TopoDS_Shape.hxx>
|
||
|
#endif
|
||
|
#ifndef _GEOMAlgo_ShapeInfo_HeaderFile
|
||
|
#include <GEOMAlgo_ShapeInfo.hxx>
|
||
|
#endif
|
||
|
#ifndef _GEOMAlgo_IndexedDataMapOfShapeShapeInfo_HeaderFile
|
||
|
#include <GEOMAlgo_IndexedDataMapOfShapeShapeInfo.hxx>
|
||
|
#endif
|
||
|
#ifndef _Standard_Real_HeaderFile
|
||
|
#include <Standard_Real.hxx>
|
||
|
#endif
|
||
|
#ifndef _GEOMAlgo_Algo_HeaderFile
|
||
|
#include <GEOMAlgo_Algo.hxx>
|
||
|
#endif
|
||
|
class TopoDS_Shape;
|
||
|
class GEOMAlgo_ShapeInfo;
|
||
|
class TopoDS_Face;
|
||
|
class gp_Pln;
|
||
|
class gp_Sphere;
|
||
|
class gp_Cylinder;
|
||
|
class gp_Cone;
|
||
|
class gp_Torus;
|
||
|
class TopoDS_Solid;
|
||
|
|
||
|
|
||
|
#ifndef _Standard_HeaderFile
|
||
|
#include <Standard.hxx>
|
||
|
#endif
|
||
|
#ifndef _Standard_Macro_HeaderFile
|
||
|
#include <Standard_Macro.hxx>
|
||
|
#endif
|
||
|
|
||
|
|
||
|
class GEOMAlgo_ShapeInfoFiller : public GEOMAlgo_Algo {
|
||
|
|
||
|
public:
|
||
|
|
||
|
void* operator new(size_t,void* anAddress)
|
||
|
{
|
||
|
return anAddress;
|
||
|
}
|
||
|
void* operator new(size_t size)
|
||
|
{
|
||
|
return Standard::Allocate(size);
|
||
|
}
|
||
|
void operator delete(void *anAddress)
|
||
|
{
|
||
|
if (anAddress) Standard::Free((Standard_Address&)anAddress);
|
||
|
}
|
||
|
// Methods PUBLIC
|
||
|
//
|
||
|
|
||
|
|
||
|
Standard_EXPORT GEOMAlgo_ShapeInfoFiller();
|
||
|
Standard_EXPORT virtual ~GEOMAlgo_ShapeInfoFiller();
|
||
|
|
||
|
|
||
|
Standard_EXPORT void SetShape(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT const TopoDS_Shape& Shape() const;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void SetTolerance(const Standard_Real aT) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT Standard_Real Tolerance() const;
|
||
|
|
||
|
|
||
|
Standard_EXPORT const GEOMAlgo_ShapeInfo& Info() const;
|
||
|
|
||
|
|
||
|
Standard_EXPORT const GEOMAlgo_ShapeInfo& Info(const TopoDS_Shape& aS) const;
|
||
|
|
||
|
|
||
|
Standard_EXPORT virtual void Perform() ;
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
protected:
|
||
|
|
||
|
// Methods PROTECTED
|
||
|
//
|
||
|
|
||
|
|
||
|
Standard_EXPORT virtual void CheckData() ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillNbSubShapes(const TopoDS_Shape& aS,GEOMAlgo_ShapeInfo& aInfo) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillSubShapes(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillShape(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillVertex(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillEdge(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillFace(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillSolid(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillContainer(const TopoDS_Shape& aS) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillDetails(const TopoDS_Face& aF,const gp_Pln& aPln) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillDetails(const TopoDS_Face& aF,const gp_Sphere& aSph) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillDetails(const TopoDS_Face& aF,const gp_Cylinder& aCyl) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillDetails(const TopoDS_Face& aF,const gp_Cone& aCone) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillDetails(const TopoDS_Face& aF,const gp_Torus& aTorus) ;
|
||
|
|
||
|
|
||
|
Standard_EXPORT void FillDetails(const TopoDS_Solid& aS) ;
|
||
|
|
||
|
|
||
|
// Fields PROTECTED
|
||
|
//
|
||
|
TopoDS_Shape myShape;
|
||
|
GEOMAlgo_ShapeInfo myEmptyInfo;
|
||
|
GEOMAlgo_IndexedDataMapOfShapeShapeInfo myMapInfo;
|
||
|
Standard_Real myTolerance;
|
||
|
|
||
|
|
||
|
private:
|
||
|
|
||
|
// Methods PRIVATE
|
||
|
//
|
||
|
|
||
|
|
||
|
// Fields PRIVATE
|
||
|
//
|
||
|
|
||
|
|
||
|
};
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
// other Inline functions and methods (like "C++: function call" methods)
|
||
|
//
|
||
|
|
||
|
|
||
|
#endif
|