0024624: Lost word in license statement in source files
[occt.git] / src / Aspect / Aspect_MarkerStyle.cdl
CommitLineData
b311480e 1-- Created on: 1995-01-13
2-- Created by: GG
3-- Copyright (c) 1995-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 MarkerStyle from Aspect
18
19 ---Version:
20
21 ---Purpose: This class defines a Marker Style.
22 -- The Style can be Predefined or defined by the user
23 -- A user defined style must be described in the space <-1,+1>
24
25 ---Keywords: MarkerStyle
26
27 ---Warning:
28 ---References:
29
30uses
31 TypeOfMarker from Aspect,
32 Array1OfReal from TColStd,
33 Array1OfBoolean from TColStd,
34 HArray1OfBoolean from TColStd,
35 Array1OfShortReal from TShort,
36 HArray1OfShortReal from TShort
37
38raises
39 MarkerStyleDefinitionError from Aspect
40
41is
42 Create returns MarkerStyle from Aspect;
43 ---Level: Public
44 ---Purpose: Creates a marker style with the default value of
45 -- MarkerStyle type : POINT
46 --
47
48 Create ( aType : TypeOfMarker ) returns MarkerStyle from Aspect ;
49 ---Level: Public
50 ---Purpose: Creates the marker style <aType>.
51
52 Create ( aXpoint : Array1OfReal ;
53 aYpoint : Array1OfReal )
54 returns MarkerStyle from Aspect
55 ---Level: Public
56 ---Purpose: Creates a marker style from a implicit draw point
57 --descriptor .
58 -- Each coordinate <aXpoint(i),aYpoint(i)> must be defined
59 --in the space -1,+1.
60 raises MarkerStyleDefinitionError;
61 ---Trigger:
62 -- if <aXpoint>,<aYpoint> have different length.
63 -- if one coordinate is <-1 or >+1.
64
65 Create ( aXpoint : Array1OfReal ;
66 aYpoint : Array1OfReal ;
67 aSpoint : Array1OfBoolean )
68 returns MarkerStyle from Aspect
69 ---Level: Public
70 ---Purpose: Creates a marker style from a move-draw point descriptor .
71 -- Each coordinate <aXpoint(i),aYpoint(i)> must be defined
72 --in the space -1,+1.
73 -- Each status point <aSpoint(i)> must be TRUE for drawing
74 --or FALSE for moving to the last at this point .
75 raises MarkerStyleDefinitionError;
76 ---Trigger:
77 -- if <aXpoint>,<aYpoint>,<aSpoint> have different length.
78 -- if one coordinate is <-1 or >+1
79
80 ---------------------------------------------------
81 -- Category: Methods to modify the class definition
82 ---------------------------------------------------
83
84 Assign ( me : in out ;
85 Other : MarkerStyle from Aspect )
86 returns MarkerStyle from Aspect is static;
87 ---Level: Public
88 ---Purpose: Updates the marker style <me> from the definition of the
89 -- marker style <Other>.
90 ---Category: Methods to modify the class definition
91 ---C++: alias operator =
92 ---C++: return &
93
94 ----------------------------
95 -- Category: Inquire methods
96 ----------------------------
97
98 Type ( me ) returns TypeOfMarker is static;
99 ---Level: Public
100 ---Purpose: Returns the type of the marker style <me>
101 ---Category: Inquire methods
102
103 Length ( me ) returns Integer is static;
104 ---Level: Public
105 ---Purpose: Returns the components length of the marker descriptors
106 ---Category: Inquire methods
107
108 Values ( me ; aRank : Integer ;
109 aX,aY : out Real ) returns Boolean
110 ---Level: Public
111 ---Purpose: Returns the point and status of a marker style
112 --descriptor of rank <aRank>.
113 raises MarkerStyleDefinitionError is static;
114 ---Trigger:
115 -- If aRank is < 1 or > Length()
116 ---Category: Inquire methods
117
118 XValues ( me ) returns Array1OfShortReal is static;
119 ---Level: Public
120 ---Purpose: Returns the X vector of a marker style descriptor
121 ---Category: Inquire methods
122 ---C++: return const &
123
124 YValues ( me ) returns Array1OfShortReal is static;
125 ---Level: Public
126 ---Purpose: Returns the Y vector of a marker style descriptor
127 ---Category: Inquire methods
128 ---C++: return const &
129
130 SValues ( me ) returns Array1OfBoolean is static;
131 ---Level: Public
132 ---Purpose: Returns the State vector of a marker style descriptor
133 ---Category: Inquire methods
134 ---C++: return const &
135
136 IsEqual(me; Other : MarkerStyle from Aspect) returns Boolean;
137 ---C++: alias operator==
138
139 IsNotEqual(me; Other : MarkerStyle from Aspect) returns Boolean;
140 ---C++: alias operator!=
141
142 ----------------------------
143 -- Category: Private methods
144 ----------------------------
145
146 SetPredefinedStyle ( me : in out ) is static private;
147 ---Level: Internal
148 ---Purpose: Set MyMarkerDescriptor with the predefined style values
149 -- according of current type
150 ---Category: Private methods
151
152--\f
153
154fields
155
156--
157-- Class : Aspect_MarkerStyle
158--
159-- Purpose : Declaration of variables specific to marker styles
160--
161
162 MyMarkerType : TypeOfMarker;
163 MyXpoint : HArray1OfShortReal;
164 MyYpoint : HArray1OfShortReal;
165 MySpoint : HArray1OfBoolean;
166
167end MarkerStyle;