2020-04-15 16:11:00 +03:00
|
|
|
// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
|
2012-08-09 07:58:02 +00:00
|
|
|
//
|
2013-04-01 12:25:01 +00: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 07:58:02 +00:00
|
|
|
//
|
2013-04-01 12:25:01 +00: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
|
2014-02-18 10:44:41 +04:00
|
|
|
// version 2.1 of the License, or (at your option) any later version.
|
2012-08-09 07:58:02 +00:00
|
|
|
//
|
2013-04-01 12:25:01 +00: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.
|
2012-08-09 07:58:02 +00:00
|
|
|
//
|
2013-04-01 12:25:01 +00: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
|
|
|
|
//
|
|
|
|
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
|
2012-08-09 07:58:02 +00:00
|
|
|
//
|
|
|
|
|
2014-06-04 15:17:38 +04:00
|
|
|
#ifndef _AdvancedEngine_DividedDiskDriver_HXX
|
|
|
|
#define _AdvancedEngine_DividedDiskDriver_HXX
|
|
|
|
|
|
|
|
#include "GEOM_BaseDriver.hxx"
|
2012-08-09 07:58:02 +00:00
|
|
|
|
|
|
|
#include <TFunction_Driver.hxx>
|
|
|
|
|
|
|
|
class TopoDS_Shape;
|
|
|
|
class TopoDS_Shell;
|
|
|
|
class gp_Pnt;
|
|
|
|
class gp_Dir;
|
|
|
|
class gp_Ax3;
|
|
|
|
|
2020-08-19 10:06:02 +03:00
|
|
|
DEFINE_STANDARD_HANDLE( AdvancedEngine_DividedDiskDriver, GEOM_BaseDriver )
|
2012-08-09 07:58:02 +00:00
|
|
|
|
2014-09-23 15:48:25 +04:00
|
|
|
class AdvancedEngine_DividedDiskDriver : public GEOM_BaseDriver
|
2014-06-04 15:17:38 +04:00
|
|
|
{
|
2012-08-09 07:58:02 +00:00
|
|
|
public:
|
2013-06-17 12:44:32 +00:00
|
|
|
// Methods PUBLIC
|
2012-08-09 07:58:02 +00:00
|
|
|
//
|
2014-06-04 15:17:38 +04:00
|
|
|
AdvancedEngine_DividedDiskDriver();
|
2017-06-26 11:49:43 +03:00
|
|
|
virtual Standard_Integer Execute(Handle(TFunction_Logbook)& log) const;
|
|
|
|
virtual void Validate(Handle(TFunction_Logbook)&) const {}
|
|
|
|
Standard_Boolean MustExecute(const Handle(TFunction_Logbook)&) const { return Standard_True; }
|
2014-06-04 15:17:38 +04:00
|
|
|
static const Standard_GUID& GetID();
|
|
|
|
~AdvancedEngine_DividedDiskDriver() {};
|
2013-06-17 12:44:32 +00:00
|
|
|
|
2014-06-04 15:17:38 +04:00
|
|
|
virtual bool GetCreationInformation(std::string& theOperationName,
|
|
|
|
std::vector<GEOM_Param>& params);
|
2012-08-09 07:58:02 +00:00
|
|
|
private:
|
|
|
|
TopoDS_Shape TransformShape (TopoDS_Shape aShape, int theOrientation) const;
|
|
|
|
TopoDS_Shape TransformShape (TopoDS_Shape aShape, gp_Pnt P, gp_Dir V) const;
|
|
|
|
TopoDS_Shape WPlaneTransform (TopoDS_Shape aShape, gp_Ax3 theWPlane) const;
|
|
|
|
TopoDS_Shell MakeDiskHexagon (double R, double Ratio) const;
|
|
|
|
TopoDS_Shape MakeDiskSquare (double R, double Ratio) const;
|
2013-06-17 12:44:32 +00:00
|
|
|
|
2017-06-26 11:49:43 +03:00
|
|
|
DEFINE_STANDARD_RTTIEXT(AdvancedEngine_DividedDiskDriver,GEOM_BaseDriver)
|
2012-08-09 07:58:02 +00:00
|
|
|
};
|
|
|
|
|
2014-06-04 15:17:38 +04:00
|
|
|
#endif // _AdvancedEngine_DividedDiskDriver_HXX
|