1 -- Created on: 1991-09-02
2 -- Created by: NW,JPB,CAL
3 -- Copyright (c) 1991-1999 Matra Datavision
4 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
6 -- This file is part of Open CASCADE Technology software library.
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
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.
14 -- Alternatively, this file may be used under the terms of Open CASCADE
15 -- commercial license or contractual agreement.
17 deferred class AspectMarker from Aspect
23 ---Purpose: This class allows the definition of a group
24 -- of attributes for the primitive MARKER.
25 -- the attributes are:
29 -- When any value of the group is modified
30 -- all graphic objects using the group are modified
36 TypeOfMarker from Aspect
40 AspectMarkerDefinitionError from Aspect
46 ---Purpose: Initialise the constructor for Graphic3d_AspectMarker3d.
50 -- Color = Quantity_NOC_YELLOW;
51 -- Type = Aspect_TOM_X;
54 Initialize ( AColor : Color from Quantity;
55 AType : TypeOfMarker from Aspect;
56 AScale : Real from Standard )
58 ---Purpose: Initialise the values for the
59 -- constructor of Graphic3d_AspectMarker3d.
60 -- Warning: Raises AspectMarkerDefinitionError if the
61 -- scale is a negative value.
62 raises AspectMarkerDefinitionError from Aspect;
64 ---------------------------------------------------
65 -- Category: Methods to modify the class definition
66 ---------------------------------------------------
68 SetColor ( me : mutable;
69 AColor : Color from Quantity );
71 ---Purpose: Modifies the colour of <me>.
72 ---Category: Methods to modify the class definition
74 SetScale ( me : mutable;
75 AScale : Real from Standard )
77 ---Purpose: Modifies the scale factor of <me>.
78 -- Marker type Aspect_TOM_POINT is not affected
79 -- by the marker size scale factor. It is always
80 -- the smallest displayable dot.
81 -- Warning: Raises AspectMarkerDefinitionError if the
82 -- scale is a negative value.
83 raises AspectMarkerDefinitionError from Aspect;
85 SetType ( me : mutable;
86 AType : TypeOfMarker from Aspect );
88 ---Purpose: Modifies the type of marker <me>.
89 ---Category: Methods to modify the class definition
91 ----------------------------
92 -- Category: Inquire methods
93 ----------------------------
96 AColor : out Color from Quantity;
97 AType : out TypeOfMarker from Aspect;
98 AScale : out Real from Standard );
100 ---Purpose: Returns the current values of the group <me>.
101 ---Category: Inquire methods
108 -- Class : Aspect_AspectMarker
110 -- Purpose : Declaration of variables specific to the context of
113 -- Reminder : A drawing context for markers is defined by :
120 MyColor : Color from Quantity;
123 MyType : TypeOfMarker from Aspect;
126 MyScale : Real from Standard;