-- Created on: 1996-12-16 -- Created by: Yves FRICAUD -- Copyright (c) 1996-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 OldShapeIterator from TNaming ---Purpose: Iterates on all the ascendants of a shape uses Shape from TopoDS, NamedShape from TNaming, UsedShapes from TNaming, Iterator from TNaming, Label from TDF, PtrNode from TNaming raises NoMoreObject from Standard, NoSuchObject from Standard is Create(aShape : Shape from TopoDS; Transaction : Integer from Standard; Shapes : UsedShapes from TNaming) returns OldShapeIterator from TNaming is private; Create(aShape : Shape from TopoDS; Shapes : UsedShapes from TNaming) returns OldShapeIterator from TNaming is private; Create(aShape : Shape from TopoDS; Transaction : Integer from Standard; access : Label from TDF) returns OldShapeIterator from TNaming; Create(aShape : Shape from TopoDS; access : Label from TDF) returns OldShapeIterator from TNaming; Create(anIterator : OldShapeIterator from TNaming) returns OldShapeIterator from TNaming; ---Purpose: Iterates from the current Shape in Create(anIterator : Iterator from TNaming) returns OldShapeIterator from TNaming; ---Purpose: Iterates from the current Shape in More(me) returns Boolean; ---C++: inline Next(me : in out) raises NoMoreObject from Standard; Label(me) returns Label from TDF raises NoSuchObject from Standard; NamedShape(me) returns NamedShape from TNaming raises NoSuchObject from Standard; Shape(me) returns Shape from TopoDS ---C++: return const& raises NoSuchObject from Standard; IsModification(me) returns Boolean; ---Purpose: True if the new shape is a modification (split, -- fuse,etc...) of the old shape. fields myNode : PtrNode from TNaming; myTrans : Integer from Standard; -- is < 0 means in Current Transaction. friends class Tool from TNaming, class Localizer from TNaming, class Naming from TNaming end OldShapeIterator;