|
|
|||
File indexing completed on 2026-09-20 09:17:21
0001 // Created on: 1993-06-03 0002 // Created by: Jean-Louis FRENKEL 0003 // Copyright (c) 1993-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_LengthPresentation_HeaderFile 0018 #define _DsgPrs_LengthPresentation_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_Dir; 0030 class gp_Pln; 0031 class Geom_Surface; 0032 0033 //! Framework for displaying lengths. 0034 //! The length displayed is indicated by line segments 0035 //! and text alone or by a combination of line segment, 0036 //! text and arrows at either or both of its ends. 0037 class DsgPrs_LengthPresentation 0038 { 0039 public: 0040 DEFINE_STANDARD_ALLOC 0041 0042 //! Draws a line segment representing a length in the 0043 //! display aPresentation. 0044 //! This segment joins the points AttachmentPoint1 and 0045 //! AttachmentPoint2, along the direction aDirection. 0046 //! The text aText will be displayed at the offset point OffsetPoint. 0047 //! The line and text attributes are specified by the 0048 //! attribute manager aDrawer. 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& AttachmentPoint1, 0053 const gp_Pnt& AttachmentPoint2, 0054 const gp_Dir& aDirection, 0055 const gp_Pnt& OffsetPoint); 0056 0057 //! Draws a line segment representing a length in the 0058 //! display aPresentation. 0059 //! This segment joins the points AttachmentPoint1 and 0060 //! AttachmentPoint2, along the direction aDirection. 0061 //! The text aText will be displayed at the offset point 0062 //! OffsetPoint. The value of the enumeration ArrowSide 0063 //! controls whether arrows will be displayed at either or 0064 //! both ends of the length. 0065 //! The line, text and arrow attributes are specified by the 0066 //! attribute manager aDrawer. 0067 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0068 const occ::handle<Prs3d_Drawer>& aDrawer, 0069 const TCollection_ExtendedString& aText, 0070 const gp_Pnt& AttachmentPoint1, 0071 const gp_Pnt& AttachmentPoint2, 0072 const gp_Dir& aDirection, 0073 const gp_Pnt& OffsetPoint, 0074 const DsgPrs_ArrowSide ArrowSide); 0075 0076 //! Draws a line segment representing a length in the 0077 //! display aPresentation. 0078 //! This segment joins the points AttachmentPoint1 and 0079 //! AttachmentPoint2, along the direction aDirection. 0080 //! The text aText will be displayed at the offset point 0081 //! OffsetPoint. The value of the enumeration ArrowSide 0082 //! controls whether arrows will be displayed at either or 0083 //! both ends of the length. 0084 //! The plane PlaneOfFaces is used if length is null. 0085 //! The line, text and arrow attributes are specified by the 0086 //! attribute manager aDrawer. 0087 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0088 const occ::handle<Prs3d_Drawer>& aDrawer, 0089 const TCollection_ExtendedString& aText, 0090 const gp_Pnt& AttachmentPoint1, 0091 const gp_Pnt& AttachmentPoint2, 0092 const gp_Pln& PlaneOfFaces, 0093 const gp_Dir& aDirection, 0094 const gp_Pnt& OffsetPoint, 0095 const DsgPrs_ArrowSide ArrowSide); 0096 0097 //! Draws a line segment representing a length in the 0098 //! display aPresentation. 0099 //! This segment joins the points AttachmentPoint1 and 0100 //! AttachmentPoint2, along the direction 0101 //! aDirection. AttachmentPoint2 lies on the curvilinear 0102 //! faces SecondSurf. The text aText will be displayed at 0103 //! the offset point OffsetPoint. The value of the 0104 //! enumeration ArrowSide controls whether arrows will 0105 //! be displayed at either or both ends of the length. 0106 //! The line, text and arrow attributes are specified by the 0107 //! attribute manager aDrawer. 0108 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0109 const occ::handle<Prs3d_Drawer>& aDrawer, 0110 const TCollection_ExtendedString& aText, 0111 const occ::handle<Geom_Surface>& SecondSurf, 0112 const gp_Pnt& AttachmentPoint1, 0113 const gp_Pnt& AttachmentPoint2, 0114 const gp_Dir& aDirection, 0115 const gp_Pnt& OffsetPoint, 0116 const DsgPrs_ArrowSide ArrowSide); 0117 0118 //! Draws a line segment representing a length in the 0119 //! display aPresentation. 0120 //! This segment joins the points AttachmentPoint1 and 0121 //! AttachmentPoint2, along the direction aDirection. 0122 //! The value of the enumeration ArrowSide controls 0123 //! whether arrows will be displayed at either or both ends of the length. 0124 //! The line and arrow attributes are specified by the attribute manager aDrawer. 0125 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0126 const occ::handle<Prs3d_Drawer>& aDrawer, 0127 const gp_Pnt& Pt1, 0128 const gp_Pnt& Pt2, 0129 const DsgPrs_ArrowSide ArrowSide); 0130 }; 0131 0132 #endif // _DsgPrs_LengthPresentation_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|