1 -- Created on: 1993-06-11
2 -- Created by: Jean-Louis FRENKEL
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 -- Modified GG : GER61351 01/02/00 Add SetColor() & Aspect() methods
20 class ArrowAspect from Prs3d inherits BasicAspect from Prs3d
21 ---Purpose: A framework for displaying arrows in representations
22 -- of dimensions and relations.
25 PlaneAngle from Quantity,
26 NameOfColor from Quantity,
28 AspectLine3d from Graphic3d
31 InvalidAngle from Prs3d
34 Create returns ArrowAspect from Prs3d;
35 ---Purpose: Constructs an empty framework for displaying arrows
36 -- in representations of lengths. The lengths displayed
37 -- are either on their own or in chamfers, fillets,
38 -- diameters and radii.
39 Create (anAngle: PlaneAngle from Quantity; aLength: Length from Quantity)
40 returns ArrowAspect from Prs3d;
41 --- Purpose: Constructs a framework to display an arrow with a
42 -- shaft of the length aLength and having a head with
43 -- sides at the angle anAngle from each other.
45 SetAngle(me: mutable; anAngle: PlaneAngle from Quantity)
46 ---Purpose: defines the angle of the arrows.
47 raises InvalidAngle from Prs3d
50 Angle(me) returns PlaneAngle from Quantity
51 ---Purpose: returns the current value of the angle used when drawing an arrow.
54 SetLength(me: mutable; aLength: Length from Quantity)
55 ---Purpose: defines the length of the arrows.
58 Length(me) returns Length from Quantity
59 ---Purpose: returns the current value of the length used when drawing an arrow.
62 SetColor(me: mutable; aColor: Color from Quantity);
64 SetColor(me: mutable; aColor: NameOfColor from Quantity);
66 Aspect(me) returns AspectLine3d from Graphic3d;
69 myArrowAspect: AspectLine3d from Graphic3d;
70 myAngle: PlaneAngle from Quantity;
71 myLength: Length from Quantity;
73 end ArrowAspect from Prs3d;