bda83605 |
1 | -- File: HLRAppli_ReflectLines.cdl |
2 | -- Created: 05.12.12 15:53:35 |
3 | -- Created by: Julia GERASIMOVA |
973c2be1 |
4 | -- Copyright (c) 1999-2014 OPEN CASCADE SAS |
bda83605 |
5 | -- |
973c2be1 |
6 | -- This file is part of Open CASCADE Technology software library. |
bda83605 |
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. |
bda83605 |
13 | -- |
973c2be1 |
14 | -- Alternatively, this file may be used under the terms of Open CASCADE |
15 | -- commercial license or contractual agreement. |
bda83605 |
16 | |
17 | class ReflectLines from HLRAppli |
18 | |
19 | ---Purpose : This class builds reflect lines on a shape |
20 | -- according to the axes of view defined by user. |
21 | -- Reflect lines are represented by edges in 3d. |
22 | |
23 | |
24 | uses |
25 | Shape from TopoDS, |
26 | Projector from HLRAlgo |
27 | |
28 | is |
29 | Create(aShape : Shape from TopoDS) |
30 | ---Purpose: Constructor |
31 | -- |
32 | returns ReflectLines from HLRAppli; |
33 | |
34 | SetAxes(me: in out; |
35 | Nx, Ny, Nz : Real from Standard; |
36 | XAt, YAt, ZAt : Real from Standard; |
37 | XUp, YUp, ZUp : Real from Standard); |
38 | ---Purpose: Sets the normal to the plane of visualisation, |
39 | -- the coordinates of the view point and |
40 | -- the coordinates of the vertical direction vector. |
41 | |
42 | Perform(me: in out); |
43 | |
44 | GetResult(me) |
45 | returns Shape from TopoDS; |
46 | ---Purpose: returns resulting compound of reflect lines |
47 | -- represented by edges in 3d |
48 | |
49 | fields |
50 | |
51 | myProjector : Projector from HLRAlgo; |
52 | myShape : Shape from TopoDS; |
53 | myCompound : Shape from TopoDS; |
54 | |
55 | end ReflectLines; |