Files
OCCT/src/IntSurf/IntSurf_Transition.cdl
abv d5f74e42d6 0024624: Lost word in license statement in source files
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast
Wrong license statements corrected in several files.
Copyright and license statements added in XSD and GLSL files.
Copyright year updated in some files.
Obsolete documentation files removed from DrawResources.
2014-02-20 16:15:17 +04:00

154 lines
4.0 KiB
Plaintext

-- Created on: 1992-05-06
-- Created by: Jacques GOUSSARD
-- Copyright (c) 1992-1999 Matra Datavision
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class Transition from IntSurf
---Purpose: Definition of the transition at the intersection
-- between an intersection line and a restriction curve
-- on a surface.
uses TypeTrans from IntSurf,
Situation from IntSurf
raises DomainError from Standard
is
Create
---Purpose: Empty constructor. Creates an UNDECIDED transition.
returns Transition from IntSurf;
Create(Tangent: Boolean from Standard; Type: TypeTrans from IntSurf)
---Purpose: Create a IN or OUT transition
returns Transition from IntSurf;
Create(Tangent: Boolean from Standard;
Situ: Situation from IntSurf; Oppos: Boolean from Standard)
---Purpose: Create a TOUCH transition.
returns Transition from IntSurf;
SetValue(me: in out; Tangent: Boolean from Standard;
Type: TypeTrans from IntSurf)
---Purpose: Set the values of an IN or OUT transition.
---C++: inline
is static;
SetValue(me: in out; Tangent: Boolean from Standard;
Situ: Situation from IntSurf; Oppos: Boolean from Standard)
---Purpose: Set the values of a TOUCH transition.
---C++: inline
is static;
SetValue(me: in out)
---Purpose: Set the values of an UNDECIDED transition.
---C++: inline
is static;
TransitionType(me)
---Purpose: Returns the type of Transition (in/out/touch/undecided)
-- for the arc given by value. This the transition of
-- the intersection line compared to the Arc of restriction,
-- i-e when the function returns INSIDE for example, it
-- means that the intersection line goes inside the
-- part of plane limited by the arc of restriction.
returns TypeTrans from IntSurf
---C++: inline
is static;
IsTangent(me)
---Purpose: Returns TRUE if the point is tangent to the arc
-- given by Value.
-- An exception is raised if TransitionType returns UNDECIDED.
returns Boolean from Standard
---C++: inline
raises DomainError from Standard
is static;
Situation(me)
---Purpose: Returns a significant value if TransitionType returns
-- TOUCH. In this case, the function returns :
-- INSIDE when the intersection line remains inside the Arc,
-- OUTSIDE when it remains outside the Arc,
-- UNKNOWN when the calsulus cannot give results.
-- If TransitionType returns IN, or OUT, or UNDECIDED, a
-- exception is raised.
returns Situation from IntSurf
---C++: inline
raises DomainError from Standard
is static;
IsOpposite(me)
---Purpose: returns a significant value if TransitionType returns
-- TOUCH.
-- In this case, the function returns true when
-- the 2 curves locally define two different parts of the
-- space.
-- If TransitionType returns IN or OUT or UNDECIDED, an
-- exception is raised.
returns Boolean from Standard
---C++: inline
raises DomainError from Standard
is static;
fields
tangent : Boolean from Standard;
typetra : TypeTrans from IntSurf;
situat : Situation from IntSurf;
oppos : Boolean from Standard;
end Transition;