0023663: Removing 2D viewer library
[occt.git] / src / Prs2d / Prs2d_Drawer.cdl
1 -- Created by: Tanya COOL
2 -- Copyright (c) 2000-2012 OPEN CASCADE SAS
3 --
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.
8 --
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.
11 --
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.
18
19
20 class Drawer from Prs2d inherits TShared from MMgt
21
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
26   --           of lines...
27
28 uses
29
30     NameOfColor         from Quantity,
31     TypeOf2DObject      from Prs2d,
32     AspectRoot          from Prs2d,
33     AspectName          from Prs2d,
34     DataMapOfAspectRoot from Prs2d
35     
36 is
37     Create returns mutable Drawer from Prs2d;
38     ---Purpose: Initializes graphic attribute manager
39
40     FindAspect( me; anAspectName: AspectName from Prs2d )
41       returns AspectRoot from Prs2d is virtual;
42     ---Level: Public
43     ---Purpose: Returns a link with Prs2d_Drawer AspectName, 
44     --          which provides settings for object "anAspectName" 
45     --          used to display "anAspectName"
46         
47     SetAspect( me: mutable;
48                anAspectRoot: AspectRoot from Prs2d;
49                anAspectName: AspectName from Prs2d );
50     ---Level: Public
51     ---Purpose: Sets the Aspect <anAspectRoot> of the Drawer
52     
53     InitAspectRootMap( me: mutable ) is private;
54     ---Level: Internal
55     ---Purpose: Initializes Aspect classes data map
56
57    --******************************************************
58
59     SetMaxParameterValue( me: mutable; Value: Real from Standard ) is virtual;
60     ---Level: Public
61     ---Purpose: defines the maximum value allowed for the first and last
62     --          parameters of an infinite line.
63     --          Default value: 500000. 
64     
65     MaxParameterValue( me ) returns Real from Standard is virtual;
66     ---Level: Public
67     ---Purpose: Indicates the maximum value allowed for the first and last
68     --          parameters of an infinite line.
69
70
71 fields
72
73     myDataMapAspectRoot: DataMapOfAspectRoot from Prs2d is protected;
74     myMaxParameterValue: Real from Standard is protected;
75    
76 end Drawer;