0023024: Update headers of OCCT files
[occt.git] / src / Aspect / Aspect_WidthMapEntry.cdl
CommitLineData
b311480e 1-- Created on: 1993-09-09
2-- Created by: GG
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
21
22-- Updated by JLF (Reason : Width MUST be given in METER 2 Mars 94)
7fd59977 23
24class WidthMapEntry from Aspect
25
26 ---Version: 0.0
27
28 ---Purpose: This class defines a widthmap entry.
29 -- A widthmap entry is an association between
30 -- a LineStyle object and an index in the widthmap.
31 ---Keywords:
32 ---Warning:
33 ---References:
34
35uses
36 WidthOfLine from Aspect,
37 Length from Quantity
38
39raises
40 OutOfRange from Standard,
41 BadAccess from Aspect
42
43is
44 Create
45 returns WidthMapEntry from Aspect;
46 ---Level: Public
47 ---Purpose: Creates an unallocated widthmap entry
48
49 Create ( index : Integer from Standard;
50 style : WidthOfLine from Aspect)
51 returns WidthMapEntry;
52 ---Level: Public
53 ---Purpose: Creates an allocated widthmap entry from width style
54
55 Create ( index : Integer from Standard;
56 width : Length from Quantity)
57 returns WidthMapEntry;
58 ---Level: Public
59 ---Purpose: Creates an allocated widthmap entry from width value
60
61 Create ( entry : WidthMapEntry from Aspect )
62 returns WidthMapEntry
63 ---Level: Public
64 ---Purpose: Creates an allocated widthmap entry.
65 ---Warning: Raises error if the widthmap entry <entry>
66 -- is unallocated.
67 raises BadAccess from Aspect;
68
69 SetValue ( me: in out; index : Integer from Standard;
70 style : WidthOfLine from Aspect );
71 ---Level: Public
72 ---Purpose: Sets widthmap entry value from width style
73 -- and allocates it.
74
75 SetValue ( me: in out; index : Integer from Standard;
76 width : Length from Quantity);
77 ---Level: Public
78 ---Purpose: Sets widthmap entry value from width value
79 -- and allocates it.
80
81 SetValue ( me: in out; entry : WidthMapEntry from Aspect);
82 ---Level: Public
83 ---Purpose: Sets widthmap entry value and allocates it.
84 ---C++: alias operator =
85
86 SetIndex ( me: in out; index : Integer from Standard);
87 ---Level: Public
88 ---Purpose: Sets index value of a widthmap entry.
89
90 SetType ( me: in out; Style : WidthOfLine from Aspect );
91 ---Level: Public
92 ---Purpose: Sets width style of widthmap entry.
93
94 SetWidth ( me: in out; Width : Length from Quantity);
95 ---Level: Public
96 ---Purpose: Sets width value of widthmap entry.
97
98 Type ( me ) returns WidthOfLine from Aspect
99 ---Level: Public
100 ---Warning: Raises error if the widthmap entry is unallocated .
101 raises BadAccess from Aspect;
102
103 Width ( me ) returns Length from Quantity
104 ---Level: Public
105 ---Purpose: Returns width value of widthmap entry.
106 -- Warning: Raises error if the widthmap entry is unallocated .
107 raises BadAccess from Aspect;
108
109 Index ( me ) returns Integer from Standard
110 ---Level: Public
111 ---Purpose: Returns index value of a widthmap entry.
112 -- Warning: Raises error if the widthmap entry is unallocated .
113 raises BadAccess from Aspect;
114
115 Free ( me : in out );
116 ---Level: Public
117 ---Purpose: Unallocates the widthmap entry.
118
119 IsAllocated ( me ) returns Boolean from Standard;
120 ---Level: Public
121 ---Purpose: Returns True if the widthmap entry is allocated.
122 -- Warning: A widthmap entry is allocated when the width and
123 -- the index is defined.
124
125 Dump( me );
126 ---Level: Internal
127
128 ----------------------------
129 -- Category: Private methods
130 ----------------------------
131
132 SetPredefinedStyle ( me : in out;
133 Type : WidthOfLine from Aspect )
134 ---Level: Internal
135 ---Purpose: Set Line Width with the predefined style values
136 -- according of type
137 -- Warning: Raises error if the Width style is USER_DEFINED
138 raises BadAccess from Aspect is private;
139 ---Category: Private methods
140
141fields
142 MyType : WidthOfLine from Aspect;
143 MyWidth : Real from Standard;
144 MyIndex : Integer from Standard;
145 MyTypeIsDef : Boolean from Standard;
146 MyIndexIsDef : Boolean from Standard;
147
148end WidthMapEntry from Aspect;