mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-16 06:25:04 +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.
74 lines
2.7 KiB
Plaintext
74 lines
2.7 KiB
Plaintext
-- Created on: 1997-05-14
|
|
-- Created by: Christian CAILLET
|
|
-- Copyright (c) 1997-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 Writer from XSControl
|
|
|
|
---Purpose : This class gives a simple way to create then write a
|
|
-- Model compliant to a given norm, from a Shape
|
|
-- The model can then be edited by tools by other appropriate tools
|
|
|
|
uses CString,
|
|
InterfaceModel from Interface, WorkSession from XSControl,
|
|
ReturnStatus from IFSelect,
|
|
Shape from TopoDS
|
|
|
|
is
|
|
|
|
Create returns Writer;
|
|
---Purpose : Creates a Writer from scratch
|
|
|
|
Create (norm : CString) returns Writer;
|
|
---Purpose : Creates a Writer from scratch, with a norm name which
|
|
-- identifie a Controller
|
|
|
|
Create (WS : WorkSession from XSControl;
|
|
scratch : Boolean = Standard_True) returns Writer;
|
|
---Purpose : Creates a Writer from an already existing Session
|
|
-- If <scratch> is True (D), clears already recorded data
|
|
|
|
SetNorm (me : in out; norm : CString) returns Boolean;
|
|
---Purpose : Sets a specific norm to <me>
|
|
-- Returns True if done, False if <norm> is not available
|
|
|
|
SetWS (me : in out; WS : WorkSession from XSControl;
|
|
scratch : Boolean = Standard_True);
|
|
---Purpose : Sets a specific session to <me>
|
|
|
|
WS (me) returns WorkSession from XSControl;
|
|
---Purpose : Returns the session used in <me>
|
|
|
|
Model (me : in out; newone : Boolean = Standard_False) returns InterfaceModel;
|
|
---Purpose : Returns the produced model. Produces a new one if not yet done
|
|
-- or if <newone> is True
|
|
-- This method allows for instance to edit product or header
|
|
-- data before writing
|
|
|
|
TransferShape (me : in out; sh : Shape from TopoDS; mode : Integer = 0)
|
|
returns ReturnStatus;
|
|
---Purpose : Transfers a Shape according to the mode
|
|
|
|
WriteFile (me : in out; filename : CString) returns ReturnStatus;
|
|
---Purpose : Writes the produced model
|
|
|
|
PrintStatsTransfer (me; what : Integer; mode : Integer = 0);
|
|
---Purpose : Prints Statistics about Transfer
|
|
|
|
fields
|
|
|
|
thesession : WorkSession from XSControl;
|
|
|
|
end Writer;
|