0023024: Update headers of OCCT files
[occt.git] / src / IGESDimen / IGESDimen_FlagNote.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-13
2-- Created by: CKY / Contract Toubro-Larsen ( Deepak PRABHU )
3-- Copyright (c) 1993-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
7fd59977 5--
b311480e 6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
7fd59977 10--
b311480e 11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
7fd59977 13--
b311480e 14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22class FlagNote from IGESDimen inherits IGESEntity
23
24 ---Purpose: defines FlagNote, Type <208> Form <0>
25 -- in package IGESDimen
26 -- Is label information formatted in different ways
27
28uses
29
30 GeneralNote from IGESDimen,
31 LeaderArrow from IGESDimen,
32 Pnt from gp,
33 XYZ from gp,
34 HArray1OfLeaderArrow from IGESDimen
35
36raises OutOfRange
37
38is
39
40 Create returns mutable FlagNote;
41
42 -- Specific Methods pertaining to the class
43
44 Init (me : mutable;
45 leftCorner : XYZ;
46 anAngle : Real;
47 aNote : GeneralNote;
48 someLeaders : HArray1OfLeaderArrow);
49 ---Purpose : This method is used to set the fields of the class
50 -- FlagNote
51 -- - leftCorner : Lower left corner of the Flag
52 -- - anAngle : Rotation angle in radians
53 -- - aNote : General Note Entity
54 -- - someLeaders : Leader Entities
55
56 LowerLeftCorner (me) returns Pnt;
57 ---Purpose : returns Lower Left coordinate of Flag as Pnt from package gp
58
59 TransformedLowerLeftCorner (me) returns Pnt;
60 ---Purpose : returns Lower Left coordinate of Flag as Pnt from package gp
61 -- after Transformation.
62
63 Angle (me) returns Real;
64 ---Purpose : returns Rotation angle in radians
65
66 Note (me) returns GeneralNote;
67 ---Purpose : returns General Note Entity
68
69 NbLeaders (me) returns Integer;
70 ---Purpose : returns number of Arrows (Leaders) or zero
71
72 Leader (me; Index : Integer) returns LeaderArrow
73 raises OutOfRange;
74 ---Purpose : returns Leader Entity
75 -- raises exception if Index <= 0 or Index > NbLeaders()
76
77 -- The below provided methods do not have corresponding fields.
78 -- They are provided as mentioned in the IGES specs.
79
80 Height (me) returns Real;
81 ---Purpose : returns Height computed by the formula :
82 -- Height = 2 * CH where CH is from theNote
83
84 CharacterHeight (me) returns Real;
85 ---Purpose : returns the Character Height (from General Note)
86
87 Length (me) returns Real;
88 ---Purpose : returns Length computed by the formula :
89 -- Length = TW + 0.4*CH where CH is from theNote
90 -- and TW is from theNote
91
92 TextWidth (me) returns Real;
93 ---Purpose : returns the Text Width (from General Note)
94
95 TipLength (me) returns Real;
96 ---Purpose : returns TipLength computed by the formula :
97 -- TipLength = 0.5 * H / tan 35(deg) where H is Height()
98
99fields
100
101--
102-- Class : IGESDimen_FlagNote
103--
104-- Purpose : Declaration of variables specific to the definition
105-- of the Class FlagNote.
106--
107-- Reminder : A FlagNote instance is defined by :
108-- - Lower left corner of the Flag
109-- - Rotation angle in radians
110-- - General Note Entity
111-- - Leader Entities
112-- A FlagNote Entity is label information formatted. The rotation angle and
113-- Lower Left Corner override the General Note Entity rotation angle and
114-- placement.
115
116 theLowerLeftcorner : XYZ;
117 theAngle : Real;
118 theNote : GeneralNote;
119 theLeaders : HArray1OfLeaderArrow;
120
121end FlagNote;