Back to home page

EIC code displayed by LXR

 
 

    


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

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 
0033   //! Max  Ellipse  radius dimension
0034   //! Shape  can  be  edge  ,  planar  face  or  cylindrical  face
0035   Standard_EXPORT PrsDim_MaxRadiusDimension(const TopoDS_Shape& aShape, const Standard_Real aVal, const TCollection_ExtendedString& aText);
0036   
0037   //! Max  Ellipse  radius dimension with  position
0038   //! Shape  can  be  edge  ,  planar  face  or  cylindrical  face
0039   Standard_EXPORT PrsDim_MaxRadiusDimension(const TopoDS_Shape& aShape, const Standard_Real aVal, const TCollection_ExtendedString& aText, const gp_Pnt& aPosition, const DsgPrs_ArrowSide aSymbolPrs, const Standard_Real anArrowSize = 0.0);
0040 
0041 private:
0042 
0043   Standard_EXPORT virtual void Compute (const Handle(PrsMgr_PresentationManager)& thePrsMgr,
0044                                         const Handle(Prs3d_Presentation)& thePrs,
0045                                         const Standard_Integer theMode) Standard_OVERRIDE;
0046 
0047   Standard_EXPORT virtual void ComputeSelection (const Handle(SelectMgr_Selection)& theSel,
0048                                                  const Standard_Integer theMode) Standard_OVERRIDE;
0049 
0050   Standard_EXPORT void ComputeEllipse (const Handle(Prs3d_Presentation)& aPresentation);
0051 
0052   Standard_EXPORT void ComputeArcOfEllipse (const Handle(Prs3d_Presentation)& aPresentation);
0053 
0054 private:
0055 
0056   gp_Pnt myApexP;
0057   gp_Pnt myApexN;
0058   gp_Pnt myEndOfArrow;
0059 
0060 };
0061 
0062 #endif // _PrsDim_MaxRadiusDimension_HeaderFile