Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-15 09:15:24

0001 // Created on: 1997-01-03
0002 // Created by: Stagiaire Flore Lautheanne
0003 // Copyright (c) 1997-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_IdenticPresentation_HeaderFile
0018 #define _DsgPrs_IdenticPresentation_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 
0023 #include <Prs3d_Drawer.hxx>
0024 #include <Prs3d_Presentation.hxx>
0025 
0026 class TCollection_ExtendedString;
0027 class gp_Pnt;
0028 class gp_Ax2;
0029 class gp_Elips;
0030 
0031 class DsgPrs_IdenticPresentation
0032 {
0033 public:
0034   DEFINE_STANDARD_ALLOC
0035 
0036   //! draws a line between <aPntAttach> and
0037   //! <aPntOffset>.
0038   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0039                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0040                                   const TCollection_ExtendedString&      aText,
0041                                   const gp_Pnt&                          aPntAttach,
0042                                   const gp_Pnt&                          aPntOffset);
0043 
0044   //! draws the 'identic' presentation by
0045   //! drawing a line between <aFAttach> and
0046   //! <aSAttach> , and a linkimg segment
0047   //! between <aPntOffset> and its projection
0048   //! on the precedent line.
0049   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0050                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0051                                   const TCollection_ExtendedString&      aText,
0052                                   const gp_Pnt&                          aFAttach,
0053                                   const gp_Pnt&                          aSAttach,
0054                                   const gp_Pnt&                          aPntOffset);
0055 
0056   //! draws the 'identic' presentation in the case of
0057   //! circles : draws an arc of circle between
0058   //! <aFAttach> and <aSAttach> of center <aCenter>
0059   //! and of radius dist(aCenter, aFAttach), and
0060   //! draws a segment between <aPntOffset> and
0061   //! its projection on the arc.
0062   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0063                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0064                                   const TCollection_ExtendedString&      aText,
0065                                   const gp_Ax2&                          aAx2,
0066                                   const gp_Pnt&                          aCenter,
0067                                   const gp_Pnt&                          aFAttach,
0068                                   const gp_Pnt&                          aSAttach,
0069                                   const gp_Pnt&                          aPntOffset);
0070 
0071   //! draws the 'identic' presentation in the case of
0072   //! circles : draws an arc of circle between
0073   //! <aFAttach> and <aSAttach> of center <aCenter>
0074   //! and of radius dist(aCenter, aFAttach), and
0075   //! draws a segment between <aPntOffset> and <aPntOnCirc>
0076   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0077                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0078                                   const TCollection_ExtendedString&      aText,
0079                                   const gp_Ax2&                          aAx2,
0080                                   const gp_Pnt&                          aCenter,
0081                                   const gp_Pnt&                          aFAttach,
0082                                   const gp_Pnt&                          aSAttach,
0083                                   const gp_Pnt&                          aPntOffset,
0084                                   const gp_Pnt&                          aPntOnCirc);
0085 
0086   //! draws the 'identic' presentation in the case of
0087   //! ellipses: draws an arc of the anEllipse
0088   //! between <aFAttach> and <aSAttach> and
0089   //! draws a segment between <aPntOffset> and <aPntOnElli>
0090   Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation,
0091                                   const occ::handle<Prs3d_Drawer>&       aDrawer,
0092                                   const TCollection_ExtendedString&      aText,
0093                                   const gp_Elips&                        anEllipse,
0094                                   const gp_Pnt&                          aFAttach,
0095                                   const gp_Pnt&                          aSAttach,
0096                                   const gp_Pnt&                          aPntOffset,
0097                                   const gp_Pnt&                          aPntOnElli);
0098 };
0099 
0100 #endif // _DsgPrs_IdenticPresentation_HeaderFile