| 1 | // Created on: 1998-01-17 |
| 2 | // Created by: Julia GERASIMOVA |
| 3 | // Copyright (c) 1998-1999 Matra Datavision |
| 4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
| 5 | // |
| 6 | // This file is part of Open CASCADE Technology software library. |
| 7 | // |
| 8 | // This library is free software; you can redistribute it and/or modify it under |
| 9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
| 10 | // by the Free Software Foundation, with special exception defined in the file |
| 11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
| 12 | // distribution for complete text of the license and disclaimer of any warranty. |
| 13 | // |
| 14 | // Alternatively, this file may be used under the terms of Open CASCADE |
| 15 | // commercial license or contractual agreement. |
| 16 | |
| 17 | #ifndef _AIS_EqualRadiusRelation_HeaderFile |
| 18 | #define _AIS_EqualRadiusRelation_HeaderFile |
| 19 | |
| 20 | #include <AIS_Relation.hxx> |
| 21 | |
| 22 | class Geom_Plane; |
| 23 | |
| 24 | DEFINE_STANDARD_HANDLE(AIS_EqualRadiusRelation, AIS_Relation) |
| 25 | |
| 26 | class AIS_EqualRadiusRelation : public AIS_Relation |
| 27 | { |
| 28 | DEFINE_STANDARD_RTTIEXT(AIS_EqualRadiusRelation, AIS_Relation) |
| 29 | public: |
| 30 | |
| 31 | //! Creates equal relation of two arc's radiuses. |
| 32 | //! If one of edges is not in the given plane, |
| 33 | //! the presentation method projects it onto the plane. |
| 34 | Standard_EXPORT AIS_EqualRadiusRelation(const TopoDS_Edge& aFirstEdge, const TopoDS_Edge& aSecondEdge, const Handle(Geom_Plane)& aPlane); |
| 35 | |
| 36 | private: |
| 37 | |
| 38 | Standard_EXPORT void Compute (const Handle(PrsMgr_PresentationManager3d)& aPresentationManager, const Handle(Prs3d_Presentation)& aPresentation, const Standard_Integer aMode = 0) Standard_OVERRIDE; |
| 39 | |
| 40 | Standard_EXPORT void ComputeSelection (const Handle(SelectMgr_Selection)& aSelection, const Standard_Integer aMode) Standard_OVERRIDE; |
| 41 | |
| 42 | Standard_EXPORT void ComputeRadiusPosition(); |
| 43 | |
| 44 | gp_Pnt myFirstCenter; |
| 45 | gp_Pnt mySecondCenter; |
| 46 | gp_Pnt myFirstPoint; |
| 47 | gp_Pnt mySecondPoint; |
| 48 | |
| 49 | }; |
| 50 | |
| 51 | #endif // _AIS_EqualRadiusRelation_HeaderFile |