File indexing completed on 2025-01-18 10:03:25
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _DrawTrSurf_HeaderFile
0018 #define _DrawTrSurf_HeaderFile
0019
0020 #include <Draw_Interpretor.hxx>
0021 #include <Geom_Geometry.hxx>
0022 #include <Geom_Surface.hxx>
0023 #include <Geom2d_Curve.hxx>
0024
0025 class Geom_BezierCurve;
0026 class Geom_BezierSurface;
0027 class Geom_BSplineCurve;
0028 class Geom_BSplineSurface;
0029 class Geom2d_BezierCurve;
0030 class Geom2d_BSplineCurve;
0031 class Poly_Polygon2D;
0032 class Poly_Polygon3D;
0033 class Poly_Triangulation;
0034 struct DrawTrSurf_Params;
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048 class DrawTrSurf
0049 {
0050 public:
0051
0052 DEFINE_STANDARD_ALLOC
0053
0054
0055
0056 Standard_EXPORT static void Set (const Standard_CString Name, const gp_Pnt& G);
0057
0058
0059
0060 Standard_EXPORT static void Set (const Standard_CString Name, const gp_Pnt2d& G);
0061
0062
0063
0064
0065
0066 Standard_EXPORT static void Set (const Standard_CString Name, const Handle(Geom_Geometry)& G, const Standard_Boolean isSenseMarker = Standard_True);
0067 template <class T> static void Set (const Standard_CString Name, const Handle(T)& Arg, typename opencascade::std::enable_if<opencascade::std::is_base_of<Geom_Geometry, T>::value>::type * = 0) { Set (Name, (const Handle(Geom_Geometry)&)Arg); }
0068
0069
0070
0071
0072
0073 Standard_EXPORT static void Set (const Standard_CString Name, const Handle(Geom2d_Curve)& C, const Standard_Boolean isSenseMarker = Standard_True);
0074 template <class T> static void Set (const Standard_CString Name, const Handle(T)& Arg, typename opencascade::std::enable_if<opencascade::std::is_base_of<Geom2d_Curve, T>::value>::type * = 0) { Set (Name, (const Handle(Geom2d_Curve)&)Arg); }
0075
0076
0077
0078 Standard_EXPORT static void Set (const Standard_CString Name, const Handle(Poly_Triangulation)& T);
0079
0080
0081
0082 Standard_EXPORT static void Set (const Standard_CString Name, const Handle(Poly_Polygon3D)& P);
0083
0084
0085
0086 Standard_EXPORT static void Set (const Standard_CString Name, const Handle(Poly_Polygon2D)& P);
0087
0088
0089
0090 Standard_EXPORT static Handle(Geom_Geometry) Get (Standard_CString& Name);
0091
0092
0093
0094 Standard_EXPORT static Standard_Boolean GetPoint (Standard_CString& Name, gp_Pnt& P);
0095
0096
0097
0098 Standard_EXPORT static Standard_Boolean GetPoint2d (Standard_CString& Name, gp_Pnt2d& P);
0099
0100
0101
0102 Standard_EXPORT static Handle(Geom_Curve) GetCurve (Standard_CString& Name);
0103
0104
0105
0106 Standard_EXPORT static Handle(Geom_BezierCurve) GetBezierCurve (Standard_CString& Name);
0107
0108
0109
0110 Standard_EXPORT static Handle(Geom_BSplineCurve) GetBSplineCurve (Standard_CString& Name);
0111
0112
0113
0114 Standard_EXPORT static Handle(Geom2d_Curve) GetCurve2d (Standard_CString& Name);
0115
0116
0117
0118 Standard_EXPORT static Handle(Geom2d_BezierCurve) GetBezierCurve2d (Standard_CString& Name);
0119
0120
0121
0122 Standard_EXPORT static Handle(Geom2d_BSplineCurve) GetBSplineCurve2d (Standard_CString& Name);
0123
0124
0125
0126 Standard_EXPORT static Handle(Geom_Surface) GetSurface (Standard_CString& Name);
0127
0128
0129
0130 Standard_EXPORT static Handle(Geom_BezierSurface) GetBezierSurface (Standard_CString& Name);
0131
0132
0133
0134 Standard_EXPORT static Handle(Geom_BSplineSurface) GetBSplineSurface (Standard_CString& Name);
0135
0136
0137
0138 Standard_EXPORT static Handle(Poly_Triangulation) GetTriangulation (Standard_CString& Name);
0139
0140
0141
0142 Standard_EXPORT static Handle(Poly_Polygon3D) GetPolygon3D (Standard_CString& Name);
0143
0144
0145
0146 Standard_EXPORT static Handle(Poly_Polygon2D) GetPolygon2D (Standard_CString& Name);
0147
0148
0149 Standard_EXPORT static DrawTrSurf_Params& Parameters();
0150
0151
0152 Standard_EXPORT static void BasicCommands (Draw_Interpretor& I);
0153
0154 };
0155
0156 #endif