Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-07-28 09:19:28

0001 // Created on: 1998-01-22
0002 // Created by: Sergey ZARITCHNY
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_MaxRadiusDimension_HeaderFile
0018 #define _PrsDim_MaxRadiusDimension_HeaderFile
0019 
0020 #include <PrsDim_EllipseRadiusDimension.hxx>
0021 #include <DsgPrs_ArrowSide.hxx>
0022 
0023 DEFINE_STANDARD_HANDLE(PrsDim_MaxRadiusDimension, PrsDim_EllipseRadiusDimension)
0024 
0025 //! Ellipse  Max  radius  dimension  of  a  Shape  which  can  be  Edge
0026 //! or  Face  (planar  or  cylindrical(surface  of  extrusion  or
0027 //! surface  of  offset))
0028 class PrsDim_MaxRadiusDimension : public PrsDim_EllipseRadiusDimension
0029 {
0030   DEFINE_STANDARD_RTTIEXT(PrsDim_MaxRadiusDimension, PrsDim_EllipseRadiusDimension)
0031 public:
0032   //! Max  Ellipse  radius dimension
0033   //! Shape  can  be  edge  ,  planar  face  or  cylindrical  face
0034   Standard_EXPORT PrsDim_MaxRadiusDimension(const TopoDS_Shape&               aShape,
0035                                             const Standard_Real               aVal,
0036                                             const TCollection_ExtendedString& aText);
0037 
0038   //! Max  Ellipse  radius dimension with  position
0039   //! Shape  can  be  edge  ,  planar  face  or  cylindrical  face
0040   Standard_EXPORT PrsDim_MaxRadiusDimension(const TopoDS_Shape&               aShape,
0041                                             const Standard_Real               aVal,
0042                                             const TCollection_ExtendedString& aText,
0043                                             const gp_Pnt&                     aPosition,
0044                                             const DsgPrs_ArrowSide            aSymbolPrs,
0045                                             const Standard_Real               anArrowSize = 0.0);
0046 
0047 private:
0048   Standard_EXPORT virtual void Compute(const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0049                                        const Handle(Prs3d_Presentation)&         thePrs,
0050                                        const Standard_Integer theMode) Standard_OVERRIDE;
0051 
0052   Standard_EXPORT virtual void ComputeSelection(const Handle(SelectMgr_Selection)& theSel,
0053                                                 const Standard_Integer theMode) Standard_OVERRIDE;
0054 
0055   Standard_EXPORT void ComputeEllipse(const Handle(Prs3d_Presentation)& aPresentation);
0056 
0057   Standard_EXPORT void ComputeArcOfEllipse(const Handle(Prs3d_Presentation)& aPresentation);
0058 
0059 private:
0060   gp_Pnt myApexP;
0061   gp_Pnt myApexN;
0062   gp_Pnt myEndOfArrow;
0063 };
0064 
0065 #endif // _PrsDim_MaxRadiusDimension_HeaderFile