b311480e |
1 | // Created on: 1996-09-20 |
2 | // Created by: Jean Yves LEBEY |
3 | // Copyright (c) 1996-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
8 | // This library is free software; you can redistribute it and/or modify it under |
9 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
10 | // by the Free Software Foundation, with special exception defined in the file |
11 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
12 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
17 | #ifndef _TestTopOpeDraw_TTOT_HeaderFile |
18 | #define _TestTopOpeDraw_TTOT_HeaderFile |
19 | |
20 | #include <TCollection_AsciiString.hxx> |
21 | #include <TopOpeBRepDS.hxx> |
22 | #include <TopoDS.hxx> |
23 | #include <TopAbs.hxx> |
24 | #include <GeomAbs_CurveType.hxx> |
25 | #include <GeomAbs_SurfaceType.hxx> |
26 | #include <Geom_Curve.hxx> |
27 | #include <Geom_Surface.hxx> |
28 | #include <Draw.hxx> |
29 | #include <Draw_Color.hxx> |
30 | |
31 | class TestTopOpeDraw_TTOT { |
32 | |
33 | public: |
34 | |
35 | static Standard_EXPORT void ShapeEnumToString |
36 | (const TopAbs_ShapeEnum T, TCollection_AsciiString& N); |
37 | |
38 | static void OrientationToString |
39 | (const TopAbs_Orientation o, TCollection_AsciiString& N); |
40 | |
41 | static Standard_EXPORT Standard_Boolean StringToKind |
42 | (const TCollection_AsciiString& N, TopOpeBRepDS_Kind& T); |
43 | |
44 | static void KindToString |
45 | (const TopOpeBRepDS_Kind T, TCollection_AsciiString& N); |
46 | |
47 | static Standard_Boolean StringToShapeEnum |
48 | (const TCollection_AsciiString& N, TopAbs_ShapeEnum& T); |
49 | |
50 | static Draw_ColorKind ShapeColor |
51 | (const TopoDS_Shape& S); |
52 | |
53 | static Draw_ColorKind KindColor |
54 | (const TopOpeBRepDS_Kind K); |
55 | |
56 | static Standard_EXPORT Draw_ColorKind GeometryColor |
57 | (const TopOpeBRepDS_Kind K); |
58 | |
59 | static void CurveToString |
60 | (const GeomAbs_CurveType t, TCollection_AsciiString& N); |
61 | |
62 | static void SurfaceToString |
63 | (const GeomAbs_SurfaceType t, TCollection_AsciiString& N); |
64 | |
65 | static Standard_EXPORT void GeometryName |
66 | (const Standard_Integer I, const TopOpeBRepDS_Kind K, TCollection_AsciiString& N); |
67 | |
68 | static Standard_EXPORT void CatCurveName |
69 | (const Standard_Integer I, TCollection_AsciiString& N); |
70 | |
71 | static void CatOrientation |
72 | (const TopAbs_Orientation o,TCollection_AsciiString& N); |
73 | |
74 | static void CatOrientation |
75 | (const TopoDS_Shape& S,TCollection_AsciiString& N); |
76 | |
77 | static void CatCurve |
78 | (const Handle(Geom_Curve) GC, TCollection_AsciiString& N); |
79 | |
80 | static void CatSurface |
81 | (const Handle(Geom_Surface) GS, TCollection_AsciiString& N); |
82 | |
83 | static void CatGeometry |
84 | (const TopoDS_Shape& S, TCollection_AsciiString& N); |
85 | |
86 | static Standard_EXPORT void CatCurveDisplayName |
87 | (const Standard_Integer I, const Handle(Geom_Curve) GC, TCollection_AsciiString& N); |
88 | |
89 | static Standard_EXPORT void CurveDisplayName |
90 | (const Standard_Integer I, const Handle(Geom_Curve) GC, TCollection_AsciiString& N); |
91 | |
92 | static Standard_Boolean Standard_EXPORT ShapeKind |
93 | (const TopoDS_Shape& S,const TopAbs_ShapeEnum TS); |
94 | |
95 | }; |
96 | |
97 | |
98 | #endif |