Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-27 09:17:22

0001 // Created on: 1998-01-26
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 _DsgPrs_EllipseRadiusPresentation_HeaderFile
0018 #define _DsgPrs_EllipseRadiusPresentation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <Prs3d_Drawer.hxx>
0024 #include <DsgPrs_ArrowSide.hxx>
0025 #include <Prs3d_Presentation.hxx>
0026 
0027 class TCollection_ExtendedString;
0028 class gp_Pnt;
0029 class gp_Elips;
0030 class Geom_OffsetCurve;
0031 
0032 class DsgPrs_EllipseRadiusPresentation
0033 {
0034 public:
0035   DEFINE_STANDARD_ALLOC
0036 
0037   //! draws a Radius (Major or Minor)
0038   //! representation for whole ellipse case
0039   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0040                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0041                                   const double                           theval,
0042                                   const TCollection_ExtendedString&      aText,
0043                                   const gp_Pnt&                          AttachmentPoint,
0044                                   const gp_Pnt&                          anEndOfArrow,
0045                                   const gp_Pnt&                          aCenter,
0046                                   const bool                             IsMaxRadius,
0047                                   const DsgPrs_ArrowSide                 ArrowSide);
0048 
0049   //! draws a Radius (Major or Minor) representation
0050   //! for arc of an ellipse case
0051   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0052                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0053                                   const double                           theval,
0054                                   const TCollection_ExtendedString&      aText,
0055                                   const gp_Elips&                        anEllipse,
0056                                   const gp_Pnt&                          AttachmentPoint,
0057                                   const gp_Pnt&                          anEndOfArrow,
0058                                   const gp_Pnt&                          aCenter,
0059                                   const double                           uFirst,
0060                                   const bool                             IsInDomain,
0061                                   const bool                             IsMaxRadius,
0062                                   const DsgPrs_ArrowSide                 ArrowSide);
0063 
0064   //! draws a Radius (Major or Minor) representation
0065   //! for arc of an offset curve from ellipse
0066   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0067                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0068                                   const double                           theval,
0069                                   const TCollection_ExtendedString&      aText,
0070                                   const occ::handle<Geom_OffsetCurve>&   aCurve,
0071                                   const gp_Pnt&                          AttachmentPoint,
0072                                   const gp_Pnt&                          anEndOfArrow,
0073                                   const gp_Pnt&                          aCenter,
0074                                   const double                           uFirst,
0075                                   const bool                             IsInDomain,
0076                                   const bool                             IsMaxRadius,
0077                                   const DsgPrs_ArrowSide                 ArrowSide);
0078 };
0079 
0080 #endif // _DsgPrs_EllipseRadiusPresentation_HeaderFile