1 -- Created by: Tanya COOL
2 -- Copyright (c) 2000-2012 OPEN CASCADE SAS
4 -- The content of this file is subject to the Open CASCADE Technology Public
5 -- License Version 6.5 (the "License"). You may not use the content of this file
6 -- except in compliance with the License. Please obtain a copy of the License
7 -- at http://www.opencascade.org and read it completely before using this file.
9 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
10 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12 -- The Original Code and all software distributed under the License is
13 -- distributed on an "AS IS" basis, without warranty of any kind, and the
14 -- Initial Developer hereby disclaims all such warranties, including without
15 -- limitation, any warranties of merchantability, fitness for a particular
16 -- purpose or non-infringement. Please see the License for the specific terms
17 -- and conditions governing the rights and limitations under the License.
20 class Drawer from Prs2d inherits TShared from MMgt
22 --- Purpose: Graphic attributes management
23 -- Qualifies how the presentation algorithms compute
24 -- the presentation of a specific kind of object.
25 -- This includes for example color, width and type
30 NameOfColor from Quantity,
31 TypeOf2DObject from Prs2d,
32 AspectRoot from Prs2d,
33 AspectName from Prs2d,
34 DataMapOfAspectRoot from Prs2d
37 Create returns mutable Drawer from Prs2d;
38 ---Purpose: Initializes graphic attribute manager
40 FindAspect( me; anAspectName: AspectName from Prs2d )
41 returns AspectRoot from Prs2d is virtual;
43 ---Purpose: Returns a link with Prs2d_Drawer AspectName,
44 -- which provides settings for object "anAspectName"
45 -- used to display "anAspectName"
47 SetAspect( me: mutable;
48 anAspectRoot: AspectRoot from Prs2d;
49 anAspectName: AspectName from Prs2d );
51 ---Purpose: Sets the Aspect <anAspectRoot> of the Drawer
53 InitAspectRootMap( me: mutable ) is private;
55 ---Purpose: Initializes Aspect classes data map
57 --******************************************************
59 SetMaxParameterValue( me: mutable; Value: Real from Standard ) is virtual;
61 ---Purpose: defines the maximum value allowed for the first and last
62 -- parameters of an infinite line.
63 -- Default value: 500000.
65 MaxParameterValue( me ) returns Real from Standard is virtual;
67 ---Purpose: Indicates the maximum value allowed for the first and last
68 -- parameters of an infinite line.
73 myDataMapAspectRoot: DataMapOfAspectRoot from Prs2d is protected;
74 myMaxParameterValue: Real from Standard is protected;