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
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _PrsDim_EqualRadiusRelation_HeaderFile
18 #define _PrsDim_EqualRadiusRelation_HeaderFile
20 #include <PrsDim_Relation.hxx>
24 DEFINE_STANDARD_HANDLE(PrsDim_EqualRadiusRelation, PrsDim_Relation)
26 class PrsDim_EqualRadiusRelation : public PrsDim_Relation
28 DEFINE_STANDARD_RTTIEXT(PrsDim_EqualRadiusRelation, PrsDim_Relation)
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 PrsDim_EqualRadiusRelation(const TopoDS_Edge& aFirstEdge, const TopoDS_Edge& aSecondEdge, const Handle(Geom_Plane)& aPlane);
38 Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
39 const Handle(Prs3d_Presentation)& thePrs,
40 const Standard_Integer theMode) Standard_OVERRIDE;
42 Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
43 const Standard_Integer theMode) Standard_OVERRIDE;
45 Standard_EXPORT void ComputeRadiusPosition();
50 gp_Pnt mySecondCenter;
56 #endif // _PrsDim_EqualRadiusRelation_HeaderFile