--- /dev/null
+// Copyright (C) 2007-2014 CEA/DEN, EDF R&D, OPEN CASCADE
+//
+// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
+// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
+//
+// 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, or (at your option) any later version.
+//
+// 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.
+//
+// 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
+//
+
+#ifndef _AdvancedEngine_DividedDiskDriver_HXX
+#define _AdvancedEngine_DividedDiskDriver_HXX
+
+#include "AdvancedEngine.hxx"
+
+#include "GEOM_BaseDriver.hxx"
+
+#include <TFunction_Driver.hxx>
+
+class TopoDS_Shape;
+class TopoDS_Shell;
+class gp_Pnt;
+class gp_Dir;
+class gp_Ax3;
+
+DEFINE_STANDARD_HANDLE( AdvancedEngine_DividedDiskDriver, GEOM_BaseDriver );
+
+class ADVANCEDENGINE_EXPORT AdvancedEngine_DividedDiskDriver : public GEOM_BaseDriver
+{
+public:
+ // Methods PUBLIC
+ //
+ AdvancedEngine_DividedDiskDriver();
+ virtual Standard_Integer Execute(TFunction_Logbook& log) const;
+ virtual void Validate(TFunction_Logbook&) const {}
+ Standard_Boolean MustExecute(const TFunction_Logbook&) const
+ {
+ return Standard_True;
+ }
+ static const Standard_GUID& GetID();
+ ~AdvancedEngine_DividedDiskDriver() {};
+
+ virtual bool GetCreationInformation(std::string& theOperationName,
+ std::vector<GEOM_Param>& params);
+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;
+
+ DEFINE_STANDARD_RTTI( AdvancedEngine_DividedDiskDriver )
+};
+
+#endif // _AdvancedEngine_DividedDiskDriver_HXX