mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-12 02:40:22 +08:00
Redundant keyword 'mutable' removed in CDL files. In IGESConvGeom_GeomBuilder, unused methods MakeXY() and MakeXYZ() removed. Method StepAP214_AutoDesignGroupAssignment::Init() replicating same method of the base class is removed as it causes CDL extraction error after above (seemingly irrelevant) changes.
159 lines
7.5 KiB
Plaintext
159 lines
7.5 KiB
Plaintext
-- Created on: 1994-12-21
|
|
-- Created by: Dieter THIEMANN
|
|
-- 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 ActorRead from STEPControl
|
|
inherits ActorOfTransientProcess from Transfer
|
|
|
|
---Purpose : This class performs the transfer of an Entity from
|
|
-- AP214 and AP203, either Geometric or Topologic.
|
|
--
|
|
-- I.E. for each type of Entity, it invokes the appropriate Tool
|
|
-- then returns the Binder which contains the Result
|
|
|
|
uses
|
|
|
|
TransientProcess from Transfer,
|
|
Binder from Transfer,
|
|
Trsf from gp,
|
|
Axis2Placement3d from StepGeom,
|
|
Representation from StepRepr,
|
|
RepresentationRelationship from StepRepr,
|
|
ProductDefinition from StepBasic,
|
|
NextAssemblyUsageOccurrence from StepRepr,
|
|
ShapeRepresentation from StepShape,
|
|
ContextDependentShapeRepresentation from StepShape,
|
|
ShapeRepresentationRelationship from StepRepr,
|
|
GeometricRepresentationItem from StepGeom,
|
|
MappedItem from StepRepr,
|
|
FaceSurface from StepShape,
|
|
ShapeBinder from TransferBRep,
|
|
NMTool from StepToTopoDS, -- To proceed with non-manifold cases (ssv; 13.11.2010)
|
|
Shell from TopoDS,
|
|
ListOfShape from TopTools,
|
|
Compound from TopoDS,
|
|
IndexedDataMapOfShapeListOfShape from TopTools
|
|
|
|
is
|
|
|
|
Create returns ActorRead from STEPControl;
|
|
|
|
Recognize (me : mutable; start : Transient) returns Boolean is redefined;
|
|
|
|
Transfer (me : mutable; start : Transient;
|
|
TP : TransientProcess from Transfer)
|
|
returns Binder from Transfer is redefined;
|
|
-- calls TransferShape
|
|
|
|
TransferShape (me : mutable;
|
|
start : Transient;
|
|
TP : TransientProcess from Transfer;
|
|
isManifold : Boolean = Standard_True)
|
|
returns Binder from Transfer;
|
|
|
|
---Private: unit and uncertainty context management
|
|
|
|
PrepareUnits (me : mutable; rep: Representation from StepRepr;
|
|
TP: TransientProcess from Transfer);
|
|
---Purpose: set units and tolerances context by given ShapeRepresentation
|
|
|
|
ResetUnits (me: mutable);
|
|
---Purpose: reset units and tolerances context to default
|
|
--- (mm, radians, read.precision.val, etc.)
|
|
|
|
ComputeTransformation (me: mutable; Origin, Target: Axis2Placement3d from StepGeom;
|
|
OrigContext, TargContext: Representation from StepRepr;
|
|
TP: TransientProcess from Transfer;
|
|
Trsf: out Trsf from gp)
|
|
returns Boolean;
|
|
---Purpose: Computes transformation defined by two axis placements (in MAPPED_ITEM
|
|
-- or ITEM_DEFINED_TRANSFORMATION) taking into account their
|
|
-- representation contexts (i.e. units, which may be different)
|
|
-- Returns True if transformation is computed and is not an identity.
|
|
|
|
ComputeSRRWT (me: mutable; SRR: RepresentationRelationship from StepRepr;
|
|
TP: TransientProcess from Transfer;
|
|
Trsf: out Trsf from gp)
|
|
returns Boolean;
|
|
---Purpose: Computes transformation defined by given
|
|
-- REPRESENTATION_RELATIONSHIP_WITH_TRANSFORMATION
|
|
|
|
TransferEntity(me: mutable; PD : ProductDefinition from StepBasic;
|
|
TP : TransientProcess from Transfer) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers product definition entity
|
|
|
|
|
|
TransferEntity(me: mutable; NAUO : NextAssemblyUsageOccurrence from StepRepr;
|
|
TP : TransientProcess from Transfer) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers next assembly usage occurence entity
|
|
|
|
TransferEntity(me: mutable; sr : ShapeRepresentation from StepShape;
|
|
TP : TransientProcess from Transfer;
|
|
isBound : out Boolean ) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers shape representation entity
|
|
|
|
|
|
TransferEntity(me: mutable; CDSR : ContextDependentShapeRepresentation from StepShape;
|
|
TP : TransientProcess from Transfer) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers context dependent shape representation entity
|
|
|
|
TransferEntity(me: mutable; und : ShapeRepresentationRelationship from StepRepr;
|
|
TP : TransientProcess from Transfer;
|
|
nbrep : Integer =0) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers shape representation relationship entity
|
|
|
|
|
|
TransferEntity(me : mutable;
|
|
git : GeometricRepresentationItem from StepGeom;
|
|
TP : TransientProcess from Transfer;
|
|
isManifold : Boolean) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers geometric representation item entity such as ManifoldSolidBRep ,...etc
|
|
|
|
TransferEntity(me: mutable; mapit : MappedItem from StepRepr;
|
|
TP : TransientProcess from Transfer) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers mapped item
|
|
|
|
TransferEntity(me: mutable; fs : FaceSurface from StepShape;
|
|
TP : TransientProcess from Transfer) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Transfers FaceSurface entity
|
|
|
|
OldWay(me: mutable; start : Transient;
|
|
TP : TransientProcess from Transfer) returns ShapeBinder from TransferBRep is protected;
|
|
---Purpose:Tranlates file by old way when CDSR are roots . Acts only if "read.step.product_mode" is equal Off.
|
|
|
|
closeIDEASShell(me : mutable;
|
|
shell : in Shell from TopoDS;
|
|
closingShells : in ListOfShape from TopTools)
|
|
returns Shell from TopoDS
|
|
is private;
|
|
|
|
computeIDEASClosings(me : mutable;
|
|
comp : in Compound from TopoDS;
|
|
shellClosingMap : in out IndexedDataMapOfShapeListOfShape from TopTools)
|
|
is private;
|
|
|
|
fields
|
|
|
|
-- theUnitFactor : Real; -- Conversion unit factor.
|
|
-- theVTol : Real; -- Tolerance for Vertices
|
|
-- theETol : Real; -- Tolerance for Edges
|
|
-- theFTol : Real; -- Tolerance for Faces
|
|
myNMTool : NMTool from StepToTopoDS; -- To proceed with non-manifold cases (ssv; 13.11.2010)
|
|
myPrecision : Real;
|
|
myMaxTol : Real;
|
|
mySRContext: Representation from StepRepr; -- context for unuts
|
|
|
|
end ActorRead;
|