1 -- Created on: 1993-02-22
2 -- Created by: Jacques GOUSSARD
3 -- Copyright (c) 1993-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
23 class LineOn2S from IntSurf
27 inherits TShared from MMgt
30 uses Allocator from IntSurf,
32 SequenceOfPntOn2S from IntSurf
34 raises OutOfRange from Standard
38 Create (theAllocator: Allocator from IntSurf = 0)
40 returns mutable LineOn2S from IntSurf;
43 Add(me: mutable; P: PntOn2S from IntSurf)
45 ---Purpose: Adds a point in the line.
54 ---Purpose: Returns the number of points in the line.
56 returns Integer from Standard
62 Value(me; Index: Integer from Standard)
64 ---Purpose: Returns the point of range Index in the line.
66 returns PntOn2S from IntSurf
70 raises OutOfRange from Standard
71 --- The exception OutOfRange is raised when Index <= 0 or
79 ---Purpose: Reverses the order of points of the line.
87 Split(me: mutable;Index: Integer from Standard)
89 ---Purpose: Keeps in <me> the points 1 to Index-1, and returns
90 -- the items Index to the end.
92 returns mutable LineOn2S from IntSurf
94 raises OutOfRange from Standard
95 --- The exception OutOfRange is raised when Index <= 0 or
101 Value(me: mutable; Index: Integer from Standard; P: PntOn2S from IntSurf)
103 ---Purpose: Replaces the point of range Index in the line.
105 raises OutOfRange from Standard
106 --- The exception OutOfRange is raised when Index <= 0 or
114 SetUV(me: mutable; Index: Integer from Standard;
115 OnFirst: Boolean from Standard;
116 U,V: Real from Standard)
118 ---Purpose: Sets the parametric coordinates on one of the surfaces
119 -- of the point of range Index in the line.
123 raises OutOfRange from Standard
124 --- The exception OutOfRange is raised when Index <= 0 or
137 InsertBefore(me:mutable; I: Integer from Standard; P: PntOn2S from IntSurf)
141 RemovePoint(me:mutable; I: Integer from Standard)
148 mySeq: SequenceOfPntOn2S from IntSurf;