mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-30 07:21:44 +08:00
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.
133 lines
4.6 KiB
Plaintext
133 lines
4.6 KiB
Plaintext
-- Created on: 1994-11-15
|
|
-- Created by: Marie Jose MARTZ
|
|
-- Copyright (c) 1994-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 BREntity from BRepToIGES
|
|
|
|
|
|
---Purpose : provides methods to transfer BRep entity from CASCADE to IGES.
|
|
|
|
uses
|
|
Geometry from Geom,
|
|
Shape from TopoDS,
|
|
IGESEntity from IGESData,
|
|
IGESModel from IGESData,
|
|
FinderProcess from Transfer
|
|
|
|
is
|
|
|
|
Create
|
|
returns BREntity from BRepToIGES;
|
|
---Purpose : Creates a tool BREntity
|
|
|
|
Init(me : in out);
|
|
---Purpose : Initializes the field of the tool BREntity with
|
|
-- default creating values.
|
|
|
|
SetModel(me : in out; model : IGESModel from IGESData);
|
|
---Purpose : Set the value of "TheModel"
|
|
|
|
GetModel(me)
|
|
returns IGESModel from IGESData;
|
|
---Purpose : Returns the value of "TheModel"
|
|
|
|
GetUnit(me)
|
|
returns Real from Standard;
|
|
---Purpose : Returns the value of the UnitFlag of the header of the model
|
|
-- in meters.
|
|
|
|
SetTransferProcess(me : in out; TP : FinderProcess from Transfer);
|
|
---Purpose : Set the value of "TheMap"
|
|
|
|
GetTransferProcess(me)
|
|
returns FinderProcess from Transfer;
|
|
---Purpose : Returns the value of "TheMap"
|
|
|
|
TransferShape(me : in out; start : Shape from TopoDS)
|
|
returns IGESEntity from IGESData is virtual;
|
|
---Purpose : Returns the result of the transfert of any Shape
|
|
-- If the transfer has failed, this member return a NullEntity.
|
|
|
|
AddFail (me : in out; start : Shape from TopoDS; amess : CString)
|
|
is static;
|
|
---Purpose : Records a new Fail message
|
|
|
|
AddWarning (me : in out; start : Shape from TopoDS; amess : CString)
|
|
is static;
|
|
---Purpose : Records a new Warning message
|
|
|
|
AddFail (me : in out; start : Transient from Standard; amess : CString)
|
|
is static;
|
|
---Purpose : Records a new Fail message
|
|
|
|
AddWarning (me : in out; start : Transient from Standard; amess : CString)
|
|
is static;
|
|
---Purpose : Records a new Warning message
|
|
|
|
HasShapeResult (me ; start : Shape from TopoDS)
|
|
returns Boolean;
|
|
---Purpose : Returns True if start was already treated and has a result in "TheMap"
|
|
-- else returns False.
|
|
|
|
GetShapeResult (me ; start : Shape from TopoDS)
|
|
returns Transient from Standard;
|
|
---Purpose : Returns the result of the transfer of the Shape "start" contained
|
|
-- in "TheMap" . (if HasShapeResult is True).
|
|
|
|
SetShapeResult (me : in out;
|
|
start : Shape from TopoDS;
|
|
result : Transient from Standard);
|
|
---Purpose : set in "TheMap" the result of the transfer of the Shape "start".
|
|
|
|
|
|
HasShapeResult (me ; start : Transient from Standard)
|
|
returns Boolean;
|
|
---Purpose : Returns True if start was already treated and has a result in "TheMap"
|
|
-- else returns False.
|
|
|
|
GetShapeResult (me ; start : Transient from Standard)
|
|
returns Transient from Standard;
|
|
---Purpose : Returns the result of the transfer of the Transient "start" contained
|
|
-- in "TheMap" . (if HasShapeResult is True).
|
|
|
|
SetShapeResult (me : in out;
|
|
start : Transient from Standard;
|
|
result : Transient from Standard);
|
|
---Purpose : set in "TheMap" the result of the transfer of the Transient "start".
|
|
|
|
GetConvertSurfaceMode (me) returns Boolean;
|
|
---Purpose: Returns mode for conversion of surfaces
|
|
-- (value of parameter write.convertsurface.mode)
|
|
|
|
GetPCurveMode (me) returns Boolean;
|
|
---Purpose: Returns mode for writing pcurves
|
|
-- (value of parameter write.surfacecurve.mode)
|
|
|
|
Delete (me:out) is virtual;
|
|
---C++: alias "Standard_EXPORT virtual ~BRepToIGES_BREntity() { Delete(); }"
|
|
|
|
fields
|
|
|
|
TheModel : IGESModel from IGESData ;
|
|
|
|
TheUnitFactor : Real from Standard;
|
|
|
|
myConvSurface : Boolean;
|
|
myPCurveMode : Boolean;
|
|
|
|
TheMap : FinderProcess from Transfer;
|
|
|
|
end BREntity;
|