1 -- Created on: 1996-01-05
2 -- Created by: Jean Yves LEBEY
3 -- Copyright (c) 1996-1999 Matra Datavision
4 -- Copyright (c) 1999-2012 OPEN CASCADE SAS
6 -- The content of this file is subject to the Open CASCADE Technology Public
7 -- License Version 6.5 (the "License"). You may not use the content of this file
8 -- except in compliance with the License. Please obtain a copy of the License
9 -- at http://www.opencascade.org and read it completely before using this file.
11 -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12 -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
14 -- The Original Code and all software distributed under the License is
15 -- distributed on an "AS IS" basis, without warranty of any kind, and the
16 -- Initial Developer hereby disclaims all such warranties, including without
17 -- limitation, any warranties of merchantability, fitness for a particular
18 -- purpose or non-infringement. Please see the License for the specific terms
19 -- and conditions governing the rights and limitations under the License.
22 deferred class CompositeClassifier from BOP inherits LoopClassifier from BOP
25 -- The Root class for algorithms
26 -- to classify composite Loops, i.e, Loops that
27 -- can be either a Shape, or a block of Elements.
32 ShapeEnum from TopAbs,
41 Initialize(BB : BlockBuilder from BOP);
43 --- Initializing the object with BlockBuilder;
48 returns State from TopAbs
51 --- Classify loop <L1> with <L2>
53 CompareShapes(me :out;
54 B1 : Shape from TopoDS;
55 B2 : Shape from TopoDS)
57 --- Classify shape <B1> with shape <B2>
59 returns State from TopAbs
62 CompareElementToShape(me :out;
63 E : Shape from TopoDS;
64 B : Shape from TopoDS)
65 returns State from TopAbs
68 --- Classify element <E> with shape <B>
71 B : Shape from TopoDS)
74 --- Prepare classification involving shape <B>
75 --- Calls ResetElement on first element of <B>
79 E : Shape from TopoDS)
82 --- Prepare classification involving element <E>.
84 CompareElement(me :out;
85 E : Shape from TopoDS)
88 --- Add element <E> in the set of elements used in classification.
91 returns State from TopAbs
94 --- Returns state of classification of 2D point, defined by
95 --- ResetElement, with the current set of elements,
96 --- defined by Compare.
100 myBlockBuilder : Address
103 end CompositeClassifier;