mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-06-05 11:24:17 +03:00
123 lines
4.8 KiB
Plaintext
Executable File
123 lines
4.8 KiB
Plaintext
Executable File
-- Created on: 1995-01-31
|
|
-- Created by: Dieter THIEMANN
|
|
-- Copyright (c) 1995-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.
|
|
|
|
|
|
|
|
class ActorWrite from STEPControl
|
|
inherits ActorOfFinderProcess from Transfer
|
|
|
|
---Purpose : This class performs the transfer of a Shape from TopoDS
|
|
-- to AP203 or AP214 (CD2 or DIS)
|
|
|
|
|
|
uses FinderProcess, TransientProcess, Binder, Finder, StepModel from StepData,
|
|
Shape from TopoDS,
|
|
StepModelType from STEPControl,
|
|
Axis2Placement3d from StepGeom,
|
|
ShapeRepresentation from StepShape,
|
|
ShapeDefinitionRepresentation from StepShape,
|
|
HAsciiString from TCollection,
|
|
ContextTool from STEPConstruct,
|
|
Part from STEPConstruct,
|
|
HSequenceOfShape from TopTools, -- For non-manifold topology processing (ssv; 13.11.2010)
|
|
NonManifoldSurfaceShapeRepresentation from StepShape -- For non-manifold topology processing (ssv; 13.11.2010)
|
|
|
|
is
|
|
|
|
Create returns mutable ActorWrite from STEPControl;
|
|
|
|
Recognize (me : mutable; start : Finder) returns Boolean is redefined;
|
|
|
|
Transfer (me : mutable; start : Finder; FP : mutable FinderProcess)
|
|
returns mutable Binder is redefined;
|
|
-- enchains : TransferShape , MakeProductData , and manages mode
|
|
-- "simple" or in Assembly
|
|
|
|
TransferSubShape (me : mutable; start : Finder;
|
|
SDR : ShapeDefinitionRepresentation from StepShape;
|
|
AX1 : out Axis2Placement3d from StepGeom;
|
|
FP : mutable FinderProcess;
|
|
shapeGroup : HSequenceOfShape from TopTools = NULL;
|
|
isManifold : Boolean = Standard_True)
|
|
returns mutable Binder;
|
|
|
|
TransferShape (me : mutable; start : Finder;
|
|
SDR : ShapeDefinitionRepresentation from StepShape;
|
|
FP : mutable FinderProcess;
|
|
shapeGroup : HSequenceOfShape from TopTools = NULL;
|
|
isManifold : Boolean = Standard_True)
|
|
returns mutable Binder;
|
|
|
|
TransferCompound (me : mutable; start : Finder;
|
|
SDR : ShapeDefinitionRepresentation from StepShape;
|
|
FP : mutable FinderProcess)
|
|
returns mutable Binder;
|
|
|
|
-- InitProductData (me: mutable) returns Part from STEPConstruct;
|
|
|
|
-- MakeProductData (me : mutable;
|
|
-- SR : ShapeRepresentation from StepShape;
|
|
-- SDRTool : Part from STEPConstruct;
|
|
-- model : StepModel from StepData;
|
|
-- addPRPC : Boolean)
|
|
-- returns mutable Binder;
|
|
|
|
|
|
SetMode (me : mutable; M : StepModelType from STEPControl);
|
|
|
|
Mode (me) returns StepModelType from STEPControl;
|
|
|
|
SetGroupMode (me : mutable; mode : Integer);
|
|
-- Default is 0 (no group item)
|
|
-- 1 for REPRESENTATION_RELATIONSHIP with ITEM_DEFINED_TRANSFORMATION
|
|
-- other positive values if needed (not implemented)
|
|
|
|
GroupMode (me) returns Integer;
|
|
|
|
SetTolerance (me : mutable; Tol : Real);
|
|
-- Tol <= 0 means Unset
|
|
|
|
IsAssembly (me; S: in out Shape from TopoDS) returns Boolean is virtual;
|
|
---Purpose: Customizable method to check whether shape S should
|
|
-- be written as assembly or not
|
|
-- Default implementation uses flag GroupMode and analyses
|
|
-- the shape itself
|
|
-- NOTE: this method can modify shape
|
|
|
|
getNMSSRForGroup (me;
|
|
shapeGroup : HSequenceOfShape from TopTools;
|
|
FP : mutable FinderProcess;
|
|
isNMSSRCreated : in out Boolean)
|
|
returns NonManifoldSurfaceShapeRepresentation from StepShape
|
|
is private;
|
|
---Purpose: Non-manifold shapes are stored in NMSSR group
|
|
-- (NON_MANIFOLD_SURFACE_SHAPE_REPRESENTATION).
|
|
-- Use this method to get the corresponding NMSSR (or
|
|
-- to create a new one if doesn't exist yet)
|
|
-- (ssv; 13.11.2010)
|
|
|
|
fields
|
|
|
|
mygroup : Integer;
|
|
mytoler : Real;
|
|
myContext: ContextTool from STEPConstruct;
|
|
|
|
end ActorWrite;
|