42cf5bc1 |
1 | // Created on: 1997-04-23 |
2 | // Created by: Alexander BRIVIN |
3 | // Copyright (c) 1997-1999 Matra Datavision |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
5 | // |
6 | // This file is part of Open CASCADE Technology software library. |
7 | // |
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 |
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. |
13 | // |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
16 | |
17 | #ifndef _VrmlConverter_Curve_HeaderFile |
18 | #define _VrmlConverter_Curve_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <Standard_OStream.hxx> |
25 | #include <Standard_Real.hxx> |
26 | #include <Standard_Integer.hxx> |
27 | class Adaptor3d_Curve; |
28 | class VrmlConverter_Drawer; |
29 | |
30 | |
31 | //! Curve - computes the presentation of objects to be |
32 | //! seen as curves (the computation will be made |
33 | //! with a constant number of points), converts this one |
34 | //! into VRML objects and writes (adds) them into |
35 | //! anOStream. All requested properties of the |
36 | //! representation are specify in aDrawer of Drawer |
37 | //! class (VrmlConverter). |
38 | //! This kind of the presentation is converted into |
39 | //! IndexedLineSet ( VRML ). |
40 | class VrmlConverter_Curve |
41 | { |
42 | public: |
43 | |
44 | DEFINE_STANDARD_ALLOC |
45 | |
46 | |
47 | //! adds to the OStream the drawing of the curve aCurve. |
48 | //! The aspect is defined by LineAspect in aDrawer. |
49 | Standard_EXPORT static void Add (const Adaptor3d_Curve& aCurve, const Handle(VrmlConverter_Drawer)& aDrawer, Standard_OStream& anOStream); |
50 | |
51 | //! adds to the OStream the drawing of the curve aCurve. |
52 | //! The aspect is defined by LineAspect in aDrawer. |
53 | //! The drawing will be limited between the points of parameter |
54 | //! U1 and U2. |
55 | Standard_EXPORT static void Add (const Adaptor3d_Curve& aCurve, const Standard_Real U1, const Standard_Real U2, const Handle(VrmlConverter_Drawer)& aDrawer, Standard_OStream& anOStream); |
56 | |
57 | //! adds to the OStream the drawing of the curve aCurve. |
58 | //! The aspect is the current aspect. |
59 | //! The drawing will be limited between the points of parameter |
60 | //! U1 and U2. aNbPoints defines number of points on one interval. |
61 | Standard_EXPORT static void Add (const Adaptor3d_Curve& aCurve, const Standard_Real U1, const Standard_Real U2, Standard_OStream& anOStream, const Standard_Integer aNbPoints); |
62 | |
63 | |
64 | |
65 | |
66 | protected: |
67 | |
68 | |
69 | |
70 | |
71 | |
72 | private: |
73 | |
74 | |
75 | |
76 | |
77 | |
78 | }; |
79 | |
80 | |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | #endif // _VrmlConverter_Curve_HeaderFile |