1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-21 10:13:43 +03:00
occt/src/ShapeExtend/ShapeExtend_ComplexCurve.cdl
bugmaster b311480ed5 0023024: Update headers of OCCT files
Added appropriate copyright and license information in source files
2012-03-21 19:43:04 +04:00

122 lines
4.0 KiB
Plaintext
Executable File

-- Created on: 1999-06-22
-- Created by: Roman LYGIN
-- Copyright (c) 1999 Matra Datavision
-- Copyright (c) 1999-2012 OPEN CASCADE SAS
--
-- The content of this file is subject to the Open CASCADE Technology Public
-- License Version 6.5 (the "License"). You may not use the content of this file
-- except in compliance with the License. Please obtain a copy of the License
-- at http://www.opencascade.org and read it completely before using this file.
--
-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
--
-- The Original Code and all software distributed under the License is
-- distributed on an "AS IS" basis, without warranty of any kind, and the
-- Initial Developer hereby disclaims all such warranties, including without
-- limitation, any warranties of merchantability, fitness for a particular
-- purpose or non-infringement. Please see the License for the specific terms
-- and conditions governing the rights and limitations under the License.
deferred class ComplexCurve from ShapeExtend inherits Curve from Geom
---Purpose: Defines a curve which consists of several segments.
-- Implements basic interface to it.
uses
Pnt from gp,
Vec from gp,
Trsf from gp,
Shape from GeomAbs,
Curve from Geom
is
Initialize returns mutable ComplexCurve from ShapeExtend;
---Purpose:
NbCurves (me) returns Integer is deferred;
---Purpose: Returns number of curves
Curve (me; index: Integer) returns Curve from Geom is deferred;
---C++: return const &
---Purpose: Returns curve given by its index
LocateParameter (me; U : Real;
UOut: out Real)
returns Integer is deferred;
---Purpose: Returns number of the curve for the given parameter U
-- and local paramete r UOut for the found curve
LocalToGlobal (me; index : Integer;
Ulocal: Real)
returns Real is deferred;
---Purpose: Returns global parameter for the whole curve according
-- to the segment and local parameter on it
Transform (me: mutable; T: Trsf) is redefined;
---Purpose: Applies transformation to each curve
ReversedParameter(me; U: Real) returns Real is redefined;
---C++: inline
---Purpose: Returns 1 - U
FirstParameter (me) returns Real is redefined;
---C++: inline
---Purpose: Returns 0
LastParameter (me) returns Real is redefined;
---C++: inline
---Purpose: Returns 1
IsClosed (me) returns Boolean is redefined;
---C++: inline
---Purpose: Returns True if the curve is closed
IsPeriodic (me) returns Boolean is redefined;
---C++: inline
---Purpose: Returns False
Continuity (me) returns Shape from GeomAbs is redefined;
---C++: inline
---Purpose: Returns GeomAbs_C0
IsCN (me; N: Integer) returns Boolean is redefined;
---C++: inline
---Purpose: Returns False if N > 0
D0 (me; U: Real; P: out Pnt) is redefined;
---Purpose: Returns point at parameter U.
-- Finds appropriate curve and local parameter on it.
D1 (me; U: Real; P: out Pnt; V1: out Vec) is redefined;
D2 (me; U: Real; P: out Pnt; V1, V2: out Vec) is redefined;
D3 (me; U: Real; P: out Pnt; V1, V2, V3: out Vec) is redefined;
DN (me; U: Real; N: Integer) returns Vec is redefined;
GetScaleFactor(me; ind: Integer) returns Real is deferred;
---Purpose: Returns scale factor for recomputing of deviatives.
---Level: Internal
CheckConnectivity (me: mutable; Preci: Real) returns Boolean;
---Purpose: Checks geometrical connectivity of the curves, including
-- closure (sets fields myClosed)
TransformDN (me; V: in out Vec; ind: Integer; N: Integer)
is protected;
---Purpose: Transform the derivative according to its order
fields
myClosed: Boolean is protected;
end ComplexCurve;