mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-05-21 10:55:33 +03: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.
97 lines
4.0 KiB
Plaintext
97 lines
4.0 KiB
Plaintext
-- Created on: 1992-04-07
|
|
-- Created by: Christian CAILLET
|
|
-- 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 UndefinedEntity from IGESData inherits IGESEntity
|
|
|
|
---Purpose : undefined (unknown or error) entity specific of IGES
|
|
-- DirPart can be correct or not : if it is not, a flag indicates
|
|
-- it, and each corrupted field has an associated error flag
|
|
|
|
uses OStream, Check, UndefinedContent, CopyTool,
|
|
DefType, DefList, IGESReaderData, DirPart, ParamReader, IGESWriter
|
|
|
|
is
|
|
|
|
Create returns UndefinedEntity;
|
|
---Purpose : creates an unknown entity
|
|
|
|
UndefinedContent (me) returns UndefinedContent;
|
|
---Purpose : Returns own data as an UndefinedContent
|
|
|
|
ChangeableContent (me : mutable) returns UndefinedContent;
|
|
---Purpose : Returns own data as an UndefinedContent, in order to touch it
|
|
|
|
SetNewContent (me : mutable; cont : UndefinedContent);
|
|
---Purpose : Redefines a completely new UndefinedContent
|
|
-- Used by a Copy which begins by ShallowCopy, for instance
|
|
|
|
IsOKDirPart (me) returns Boolean;
|
|
---Purpose : says if DirPart is OK or not (if not, it is erroneous)
|
|
-- Note that if it is not, Def* methods can return Error status
|
|
|
|
DirStatus (me) returns Integer;
|
|
---Purpose : returns Directory Error Status (used for Copy)
|
|
|
|
SetOKDirPart (me : mutable);
|
|
---Purpose : Erases the Directory Error Status
|
|
-- Warning : Be sure that data are consistent to call this method ...
|
|
|
|
|
|
DefLineFont (me) returns DefType is redefined;
|
|
---Purpose : returns Error status if necessary, else calls original method
|
|
|
|
DefLevel (me) returns DefList is redefined;
|
|
---Purpose : returns Error status if necessary, else calls original method
|
|
|
|
DefView (me) returns DefList is redefined;
|
|
---Purpose : returns Error status if necessary, else calls original method
|
|
|
|
DefColor (me) returns DefType is redefined;
|
|
---Purpose : returns Error status if necessary, else calls original method
|
|
|
|
HasSubScriptNumber (me) returns Boolean is redefined;
|
|
---Purpose : returns Error status if necessary, else calls original method
|
|
-- (that is, if SubScript field is not blank or positive integer)
|
|
|
|
|
|
ReadDir (me : mutable; IR : IGESReaderData; DP : in out DirPart;
|
|
ach : in out Check)
|
|
returns Boolean is virtual;
|
|
---Purpose : Computes the Directory Error Status, to be called before
|
|
-- standard ReadDir from IGESReaderTool
|
|
-- Returns True if OK (hence, Directory can be loaded),
|
|
-- Else returns False and the DirPart <DP> is modified
|
|
-- (hence, Directory Error Status is non null; and standard Read
|
|
-- will work with an acceptable DirectoryPart)
|
|
|
|
ReadOwnParams (me : mutable; IR : IGESReaderData; PR : in out ParamReader)
|
|
is virtual;
|
|
---Purpose : reads own parameters from file; PR gives access to them, IR
|
|
-- detains parameter types and values
|
|
-- Here, reads all parameters, integers are considered as entity
|
|
-- reference unless they cannot be; no list interpretation
|
|
-- No property or associativity list is managed
|
|
|
|
WriteOwnParams (me; IW : in out IGESWriter) is virtual;
|
|
---Purpose : writes parameters to IGESWriter, taken from UndefinedContent
|
|
|
|
fields
|
|
|
|
thedstat : Integer; -- DirPart error bitwise flags (none set -> OK)
|
|
thecont : UndefinedContent;
|
|
|
|
end UndefinedEntity;
|