Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:04:40

0001 // Created on: 1998-01-17
0002 // Created by: Julia GERASIMOVA
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _PrsDim_EqualRadiusRelation_HeaderFile
0018 #define _PrsDim_EqualRadiusRelation_HeaderFile
0019 
0020 #include <PrsDim_Relation.hxx>
0021 
0022 class Geom_Plane;
0023 
0024 DEFINE_STANDARD_HANDLE(PrsDim_EqualRadiusRelation, PrsDim_Relation)
0025 
0026 class PrsDim_EqualRadiusRelation : public PrsDim_Relation
0027 {
0028   DEFINE_STANDARD_RTTIEXT(PrsDim_EqualRadiusRelation, PrsDim_Relation)
0029 public:
0030 
0031   //! Creates equal relation of two arc's radiuses.
0032   //! If one of edges is not in the given plane,
0033   //! the presentation method projects it onto the plane.
0034   Standard_EXPORT PrsDim_EqualRadiusRelation(const TopoDS_Edge& aFirstEdge, const TopoDS_Edge& aSecondEdge, const Handle(Geom_Plane)& aPlane);
0035 
0036 private:
0037 
0038   Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0039                                         const Handle(Prs3d_Presentation)& thePrs,
0040                                         const Standard_Integer theMode) Standard_OVERRIDE;
0041 
0042   Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
0043                                                  const Standard_Integer theMode) Standard_OVERRIDE;
0044 
0045   Standard_EXPORT void ComputeRadiusPosition();
0046 
0047 private:
0048 
0049   gp_Pnt myFirstCenter;
0050   gp_Pnt mySecondCenter;
0051   gp_Pnt myFirstPoint;
0052   gp_Pnt mySecondPoint;
0053 
0054 };
0055 
0056 #endif // _PrsDim_EqualRadiusRelation_HeaderFile