42cf5bc1 |
1 | // File: HLRAppli_ReflectLines.cdl |
2 | // Created: 05.12.12 15:53:35 |
3 | // Created by: Julia GERASIMOVA |
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 _HLRAppli_ReflectLines_HeaderFile |
18 | #define _HLRAppli_ReflectLines_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <HLRAlgo_Projector.hxx> |
601b1c8d |
25 | #include <HLRBRep_Algo.hxx> |
26 | #include <HLRBRep_TypeOfResultingEdge.hxx> |
42cf5bc1 |
27 | #include <TopoDS_Shape.hxx> |
28 | #include <Standard_Real.hxx> |
42cf5bc1 |
29 | |
30 | |
31 | //! This class builds reflect lines on a shape |
32 | //! according to the axes of view defined by user. |
33 | //! Reflect lines are represented by edges in 3d. |
34 | class HLRAppli_ReflectLines |
35 | { |
36 | public: |
37 | |
38 | DEFINE_STANDARD_ALLOC |
39 | |
40 | |
41 | //! Constructor |
42 | Standard_EXPORT HLRAppli_ReflectLines(const TopoDS_Shape& aShape); |
43 | |
44 | //! Sets the normal to the plane of visualisation, |
45 | //! the coordinates of the view point and |
46 | //! the coordinates of the vertical direction vector. |
47 | Standard_EXPORT void SetAxes (const Standard_Real Nx, const Standard_Real Ny, const Standard_Real Nz, const Standard_Real XAt, const Standard_Real YAt, const Standard_Real ZAt, const Standard_Real XUp, const Standard_Real YUp, const Standard_Real ZUp); |
48 | |
49 | Standard_EXPORT void Perform(); |
50 | |
51 | //! returns resulting compound of reflect lines |
52 | //! represented by edges in 3d |
e7b01db7 |
53 | Standard_EXPORT TopoDS_Shape GetResult() const; |
42cf5bc1 |
54 | |
601b1c8d |
55 | //! returns resulting compound of lines |
56 | //! of specified type and visibility |
5ae6e53d |
57 | //! represented by edges in 3d or 2d |
601b1c8d |
58 | Standard_EXPORT TopoDS_Shape GetCompoundOf3dEdges(const HLRBRep_TypeOfResultingEdge type, |
5ae6e53d |
59 | const Standard_Boolean visible, |
e7b01db7 |
60 | const Standard_Boolean In3d) const; |
42cf5bc1 |
61 | |
62 | |
63 | |
64 | protected: |
65 | |
66 | |
67 | |
68 | |
69 | |
70 | private: |
71 | |
72 | |
73 | |
74 | HLRAlgo_Projector myProjector; |
601b1c8d |
75 | Handle(HLRBRep_Algo) myHLRAlgo; |
42cf5bc1 |
76 | TopoDS_Shape myShape; |
601b1c8d |
77 | //TopoDS_Shape myCompound; |
42cf5bc1 |
78 | |
79 | |
80 | }; |
81 | |
82 | |
83 | |
84 | |
85 | |
86 | |
87 | |
88 | #endif // _HLRAppli_ReflectLines_HeaderFile |