0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / IGESGeom / IGESGeom_Flash.cdl
CommitLineData
b311480e 1-- Created on: 1993-01-09
2-- Created by: CKY / Contract Toubro-Larsen ( TCD )
3-- Copyright (c) 1993-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
7fd59977 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
7fd59977 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.
7fd59977 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class Flash from IGESGeom inherits IGESEntity
18
19 ---Purpose: defines IGESFlash, Type <125> Form <0 - 4>
20 -- in package IGESGeom
21 -- A flash entity is a point in the ZT=0 plane that locates
22 -- a particular closed area. That closed area can be defined
23 -- in one of two ways. First, it can be an arbitrary closed
24 -- area defined by any entity capable of defining a closed
25 -- area. The points of this entity must all lie in the ZT=0
26 -- plane. Second, it can be a member of a predefined set of
27 -- flash shapes.
28
29uses
30
31 Pnt from gp,
32 Pnt2d from gp,
33 XY from gp
34
35raises OutOfRange
36
37is
38
6e33d3ce 39 Create returns Flash;
7fd59977 40
41 -- Specific Methods pertaining to the class
42
43 Init (me : mutable;
44 aPoint : XY;
45 aDim : Real;
46 anotherDim : Real;
47 aRotation : Real;
48 aReference : IGESEntity);
49 ---Purpose : This method is used to set the fields of the class Flash
50 -- - aPoint : Reference of flash
51 -- - aDim : First flash sizing parameter
52 -- - anotherDim : Second flash sizing parameter
53 -- - aRotation : Rotation of flash about reference point
54 -- in radians
55 -- - aReference : Pointer to the referenced entity or Null
56
57 SetFormNumber (me : mutable; form : Integer) raises OutOfRange;
58 ---Purpose : Changes FormNumber (indicates the Nature of the Flash :
59 -- 0 Unspecified, then given by Reference, 1->4 various
60 -- Specialisations (Circle,Rectangle, etc...) )
61 -- Error if not in range [0-4]
62
63
64 ReferencePoint (me) returns Pnt2d;
65 ---Purpose : returns the referenced point, Z = 0 always
66
67 TransformedReferencePoint (me) returns Pnt;
68 ---Purpose : returns the referenced point after applying Transf. Matrix
69
70 Dimension1 (me) returns Real;
71 ---Purpose : returns first flash sizing parameter
72
73 Dimension2 (me) returns Real;
74 ---Purpose : returns second flash sizing parameter
75
76 Rotation (me) returns Real;
77 ---Purpose : returns the angle in radians of the rotation of flash about the
78 -- reference point
79
80 ReferenceEntity (me) returns IGESEntity;
81 ---Purpose : returns the referenced entity or Null handle.
82
83 HasReferenceEntity (me) returns Boolean;
84 ---Purpose : returns True if referenced entity is present.
85
86fields
87
88--
89-- Class : IGESGeom_Flash
90--
91-- Purpose : Declaration of variables specific to the definition
92-- of the Class Flash.
93--
94-- Reminder : A Flash instance is defined by :
95-- A reference position, sizing and orientation parameters
96-- and an optional referenced entity
97
98 thePoint : XY;
99 theDim1 : Real;
100 theDim2 : Real;
101 theRotation : Real;
102 theReference : IGESEntity;
103
104end Flash;