Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/PrsDim_EqualRadiusRelation.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

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 class PrsDim_EqualRadiusRelation : public PrsDim_Relation
0025 {
0026   DEFINE_STANDARD_RTTIEXT(PrsDim_EqualRadiusRelation, PrsDim_Relation)
0027 public:
0028   //! Creates equal relation of two arc's radiuses.
0029   //! If one of edges is not in the given plane,
0030   //! the presentation method projects it onto the plane.
0031   Standard_EXPORT PrsDim_EqualRadiusRelation(const TopoDS_Edge&             aFirstEdge,
0032                                              const TopoDS_Edge&             aSecondEdge,
0033                                              const occ::handle<Geom_Plane>& aPlane);
0034 
0035 private:
0036   Standard_EXPORT void Compute(const occ::handle<PrsMgr_PresentationManager>& thePrsMgr,
0037                                const occ::handle<Prs3d_Presentation>&         thePrs,
0038                                const int                                      theMode) override;
0039 
0040   Standard_EXPORT void ComputeSelection(const occ::handle<SelectMgr_Selection>& theSel,
0041                                         const int                               theMode) override;
0042 
0043   Standard_EXPORT void ComputeRadiusPosition();
0044 
0045 private:
0046   gp_Pnt myFirstCenter;
0047   gp_Pnt mySecondCenter;
0048   gp_Pnt myFirstPoint;
0049   gp_Pnt mySecondPoint;
0050 };
0051 
0052 #endif // _PrsDim_EqualRadiusRelation_HeaderFile