geom/src/GEOMAlgo/GEOMAlgo_FinderShapeOn.hxx

122 lines
3.3 KiB
C++
Raw Normal View History

2012-08-09 13:58:02 +06:00
2013-04-01 18:25:01 +06:00
// Copyright (C) 2007-2013 CEA/DEN, EDF R&D, OPEN CASCADE
//
2012-08-09 13:58:02 +06:00
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
2012-08-09 13:58:02 +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.
//
2012-08-09 13:58:02 +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
//
2012-08-09 13:58:02 +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
//
2012-08-09 13:58:02 +06:00
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
2005-06-02 15:34:45 +06:00
//
2012-08-09 13:58:02 +06:00
// File: GEOMAlgo_FinderShapeOn.hxx
// Created: Tue Jan 11 14:44:31 2005
// Author: Peter KURNEV
2005-06-02 15:34:45 +06:00
#ifndef _GEOMAlgo_FinderShapeOn_HeaderFile
#define _GEOMAlgo_FinderShapeOn_HeaderFile
2012-08-09 13:58:02 +06:00
#include <Standard.hxx>
#include <Standard_Macro.hxx>
2005-06-02 15:34:45 +06:00
#include <Handle_Geom_Surface.hxx>
#include <TopAbs_ShapeEnum.hxx>
#include <GEOMAlgo_State.hxx>
#include <TopoDS_Shape.hxx>
#include <TopTools_ListOfShape.hxx>
#include <TopTools_DataMapOfShapeShape.hxx>
#include <GEOMAlgo_IndexedDataMapOfShapeState.hxx>
#include <Standard_Boolean.hxx>
#include <GEOMAlgo_ShapeAlgo.hxx>
2012-08-09 13:58:02 +06:00
#include <Geom_Surface.hxx>
#include <TopoDS_Shape.hxx>
2012-08-09 13:58:02 +06:00
//=======================================================================
//function : GEOMAlgo_FinderShapeOn
//purpose :
//=======================================================================
class GEOMAlgo_FinderShapeOn : public GEOMAlgo_ShapeAlgo
{
public:
Standard_EXPORT
GEOMAlgo_FinderShapeOn();
2012-08-09 13:58:02 +06:00
Standard_EXPORT
virtual ~GEOMAlgo_FinderShapeOn();
2012-08-09 13:58:02 +06:00
Standard_EXPORT
virtual void Perform() ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void SetSurface(const Handle(Geom_Surface)& aS) ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void SetShapeType(const TopAbs_ShapeEnum aST) ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void SetState(const GEOMAlgo_State aSF) ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
const Handle_Geom_Surface& Surface() const;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Standard_EXPORT
TopAbs_ShapeEnum ShapeType() const;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Standard_EXPORT
GEOMAlgo_State State() const;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Standard_EXPORT
const TopTools_ListOfShape& Shapes() const;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Standard_EXPORT
static void CopySource(const TopoDS_Shape& aS,
2013-06-17 18:15:50 +06:00
TopTools_DataMapOfShapeShape& aImages,
TopTools_DataMapOfShapeShape& aOriginals,
TopoDS_Shape& aSC) ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
static Standard_Boolean BuildTriangulation(const TopoDS_Shape& aS) ;
2005-06-02 15:34:45 +06:00
protected:
2012-08-09 13:58:02 +06:00
Standard_EXPORT
virtual void CheckData() ;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void MakeArgument1() ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void MakeArgument2() ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void Find() ;
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void Find(const TopoDS_Shape& aS) ;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Standard_EXPORT
void FindVertices() ;
2005-06-02 15:34:45 +06:00
2012-08-09 13:58:02 +06:00
Handle_Geom_Surface mySurface;
TopAbs_ShapeEnum myShapeType;
GEOMAlgo_State myState;
TopoDS_Shape myArg1;
TopoDS_Shape myArg2;
TopTools_ListOfShape myLS;
TopTools_DataMapOfShapeShape myImages;
GEOMAlgo_IndexedDataMapOfShapeState myMSS;
Standard_Boolean myIsAnalytic;
2005-06-02 15:34:45 +06:00
};
#endif