|
|
|||
File indexing completed on 2026-09-28 09:21:34
0001 // Created on: 1995-08-04 0002 // Created by: Modelistation 0003 // Copyright (c) 1995-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 _StdPrs_Curve_HeaderFile 0018 #define _StdPrs_Curve_HeaderFile 0019 0020 #include <Prs3d_Root.hxx> 0021 #include <Prs3d_Drawer.hxx> 0022 #include <gp_Pnt.hxx> 0023 #include <NCollection_Sequence.hxx> 0024 0025 class Adaptor3d_Curve; 0026 0027 //! A framework to define display of lines, arcs of circles 0028 //! and conic sections. 0029 //! This is done with a fixed number of points, which can be modified. 0030 class StdPrs_Curve : public Prs3d_Root 0031 { 0032 public: 0033 DEFINE_STANDARD_ALLOC 0034 0035 //! Adds to the presentation aPresentation the drawing of the curve aCurve. 0036 //! The aspect is defined by LineAspect in aDrawer. 0037 //! If drawCurve equals false the curve will not be displayed, 0038 //! it is used if the curve is a part of some shape and PrimitiveArray 0039 //! visualization approach is activated (it is activated by default). 0040 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0041 const Adaptor3d_Curve& aCurve, 0042 const occ::handle<Prs3d_Drawer>& aDrawer, 0043 const bool drawCurve = true); 0044 0045 //! Adds to the presentation aPresentation the drawing of the curve aCurve. 0046 //! The aspect is defined by LineAspect in aDrawer. 0047 //! The drawing will be limited between the points of parameter U1 and U2. 0048 //! If drawCurve equals false the curve will not be displayed, 0049 //! it is used if the curve is a part of some shape and PrimitiveArray 0050 //! visualization approach is activated (it is activated by default). 0051 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0052 const Adaptor3d_Curve& aCurve, 0053 const double U1, 0054 const double U2, 0055 const occ::handle<Prs3d_Drawer>& aDrawer, 0056 const bool drawCurve = true); 0057 0058 //! adds to the presentation aPresentation the drawing of the curve aCurve. 0059 //! The aspect is the current aspect. 0060 //! aDeflection is used in the circle case. 0061 //! Points give a sequence of curve points. 0062 //! If drawCurve equals false the curve will not be displayed, 0063 //! it is used if the curve is a part of some shape and PrimitiveArray 0064 //! visualization approach is activated (it is activated by default). 0065 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0066 const Adaptor3d_Curve& aCurve, 0067 const occ::handle<Prs3d_Drawer>& aDrawer, 0068 NCollection_Sequence<gp_Pnt>& Points, 0069 const bool drawCurve = true); 0070 0071 //! adds to the presentation aPresentation the drawing of the curve 0072 //! aCurve. 0073 //! The aspect is the current aspect. 0074 //! The drawing will be limited between the points of parameter 0075 //! U1 and U2. 0076 //! aDeflection is used in the circle case. 0077 //! Points give a sequence of curve points. 0078 //! If drawCurve equals false the curve will not be displayed, 0079 //! it is used if the curve is a part of some shape and PrimitiveArray 0080 //! visualization approach is activated (it is activated by default). 0081 Standard_EXPORT static void Add(const occ::handle<Prs3d_Presentation>& aPresentation, 0082 const Adaptor3d_Curve& aCurve, 0083 const double U1, 0084 const double U2, 0085 NCollection_Sequence<gp_Pnt>& Points, 0086 const int aNbPoints = 30, 0087 const bool drawCurve = true); 0088 0089 //! returns true if the distance between the point (X,Y,Z) and the 0090 //! drawing of the curve is less than aDistance. 0091 Standard_EXPORT static bool Match(const double X, 0092 const double Y, 0093 const double Z, 0094 const double aDistance, 0095 const Adaptor3d_Curve& aCurve, 0096 const occ::handle<Prs3d_Drawer>& aDrawer); 0097 0098 //! returns true if the distance between the point (X,Y,Z) and the 0099 //! drawing of the curve is less than aDistance. 0100 Standard_EXPORT static bool Match(const double X, 0101 const double Y, 0102 const double Z, 0103 const double aDistance, 0104 const Adaptor3d_Curve& aCurve, 0105 const double aDeflection, 0106 const double aLimit, 0107 const int aNbPoints); 0108 0109 //! returns true if the distance between the point (X,Y,Z) and the 0110 //! drawing of the curve aCurve is less than aDistance. 0111 //! The drawing is considered between the points 0112 //! of parameter U1 and U2; 0113 Standard_EXPORT static bool Match(const double X, 0114 const double Y, 0115 const double Z, 0116 const double aDistance, 0117 const Adaptor3d_Curve& aCurve, 0118 const double U1, 0119 const double U2, 0120 const occ::handle<Prs3d_Drawer>& aDrawer); 0121 0122 //! returns true if the distance between the point (X,Y,Z) and the 0123 //! drawing of the curve aCurve is less than aDistance. 0124 //! The drawing is considered between the points 0125 //! of parameter U1 and U2; 0126 Standard_EXPORT static bool Match(const double X, 0127 const double Y, 0128 const double Z, 0129 const double aDistance, 0130 const Adaptor3d_Curve& aCurve, 0131 const double U1, 0132 const double U2, 0133 const double aDeflection, 0134 const int aNbPoints); 0135 }; 0136 0137 #endif // _StdPrs_Curve_HeaderFile
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|